2022 Developer Survey is open! Take survey.

Questions tagged [builds]

The simplest type of build is a process that converts (source) code to a compiled binary file that can then be run. More complex builds can also run unit or integration tests and can use tools to generate reports about the quality of the code. Lastly, builds are often triggered automatically by Continuous Integration (CI) systems.

Filter by
Sorted by
Tagged with
1 vote
1 answer
51 views

Should I use different Buildspec files for branch builds and deployment builds?

Very recently a discussion came up regarding the usage of different buildspec.yaml files, one for branch builds and the other for deployment builds and I was wondering, since after some research I ...
user avatar
  • 13
0 votes
0 answers
40 views

How could i reduce compilation time without using less templates? [duplicate]

I am part of a small project that is doing some research code in C++. Our work involves a lot of mathematics and due to its nature we often need to temporarily use other people's code/libraries. To ...
user avatar
  • 241
1 vote
3 answers
970 views

When to increment build number?

I'm reading a book which says: The third number, 719, indicates the build of the assembly. If your company builds its assembly every day, you should increment the build number each day as well. so ...
user avatar
  • 129
2 votes
1 answer
53 views

Single Build Command / Continuous Integration

I was reading the Continuous Integration by Martin Fowler article yesterday, the article is from 2006 but I think it is still very applicable today, the statement around a single command stuck in my ...
user avatar
2 votes
1 answer
458 views

Should a large number of system tests be part of the build?

I believe extensive automated unit tests should be part of the build. However the testing pyramid suggests that there should be a much smaller number of system tests. Should an automatic build include ...
user avatar
  • 155
4 votes
1 answer
1k views

Best way to go about including C/C++ dependencies in Python packages?

I would like to include fastparquet as a dependency in a Python library I am working on but it requires Microsoft Visual C++ to build. The goal here is for the end user to be able to easily install my ...
user avatar
2 votes
0 answers
168 views

How to separate a serialization code from application in a large c++ project

I'm working on a fairly large c++ project which uses boost's serialization. The issue that I have with the way it is currently organized is that serialization is weaved into the main source code on ...
user avatar
  • 129
0 votes
1 answer
9k views

What is difference between 'mvn install" and "mvn clean install" in maven?

I know that "mvn clean install" cleans everything that has already been built by maven and rebuilds everything as specified by pom.xml. However, if things have already been installed, and I just run "...
user avatar
  • 119
0 votes
1 answer
113 views

Is it considered a good practice to hardcode package versions in something as high-level as a Dockerfile?

We had an application break in production during a deployment because a load-balancer package in our top-level Dockerfile had pulled its latest version, which happened to have a new API. Our app broke ...
user avatar
23 votes
8 answers
5k views

Detect manual changes to an autogenerated C header [closed]

I have a C header that is generated from a CSV file and a Python script. The C header mainly contains a list of #define constants. I want to be able to detect manual changes to this header during ...
user avatar
  • 2,093
16 votes
5 answers
4k views

How can we avoid showing the literal path in the exception's stack trace?

When our in-house developed application (C#, ASP.NET) is throwing an exception, it displays a stack trace that contains path information like C:\users\DEVELOPER_FULL_NAME\path\some-module.cs. So it ...
user avatar
21 votes
10 answers
11k views

What are the benefits of multi-file programming? [closed]

I have been told by another fellow C programmer to write large applications in several different .c and .h files, and then compile them together. They say it will run faster. Does a multifile ...
user avatar
5 votes
4 answers
1k views

When building time takes so long, how to improve engineer's efficiency?

The project is using C++ and the code takes around half an hour to build on a 32 core box. That time can be longer, e.g. 1 hour+ on a developer's local machine. I notice the efficiency is low when ...
user avatar
  • 193
0 votes
1 answer
197 views

Change semver versioning after dropping node eninge versions

I doubt about to which semver version I should update my public NPM package. I didn't change any code, but I had to drop some node engine versions due to a dependency package which had a major update ...
user avatar
  • 111
3 votes
2 answers
139 views

Build pipeline, dependency on unreleased package

My team is currently making some changes to our solution structure. Before the change we basically had a single solution file with about 40 different projects. Most of these projects are libraries ...
user avatar
  • 3,458
0 votes
5 answers
333 views

Does the Scrum Guide Specify How Often to Release QA/Test Builds?

See https://www.scrumguides.org/scrum-guide.html I've read through this several times and can't find anything about how often to do QA/Test builds during a sprint. There is a section called increment....
user avatar
2 votes
2 answers
170 views

Any patterns for extracting tooling from multiple repositories?

I'm working on a project where an increasing number of small mini apps all share nearly the same tooling - makefiles, dockerfiles, jenkinsfiles and webpack configs, along with a couple of scripts, are ...
user avatar
-1 votes
1 answer
225 views

How to organize the build system of a project as it starts including multiple languages across multiple operating systems and compilers?

I wrote a Music Player and Library in Java for GNU/Linux and Windows. My build process is currently in ANT, but I intend to migrate away from that to something more modern after the next release. I'...
user avatar
  • 189
2 votes
1 answer
1k views

Best practice of c/C++ dependency management on build servers?

I develop largely in java which has maven or ant/ivy. Is there a recommended way to manage build dependencies for c++ projects? I'm setting up the build on our build server right now but the thing ...
user avatar
  • 139
14 votes
1 answer
617 views

Redundant code sent down the pipe with Micro-frontends

My understanding of Micro-frontends is that the key problem they solve is in helping enterprises have multiple, possible disparate teams, work on individual components/small-apps that will be used to ...
user avatar
  • 251
2 votes
3 answers
735 views

What advantages do daily builds provide specifically over continuous builds in practice?

I have seen this question and do not believe this to be a duplicate What software models are appropriate for daily builds and continuous integration? . I don't fully understand what advantage ...
user avatar
-1 votes
1 answer
45 views

When should you use config transforms rather than compiler directives?

I'm currently working on an application which uses compiler directives to vary settings between environments. Would it be worth refactoring these to use settings in the web.config which will be ...
user avatar
-1 votes
2 answers
152 views

Solutions for preventing build breakage

Some background to my question: We have a traditionally windows-only C++ code-base which we are in the process of porting to linux. Parts of the system have been running on linux for many years, but ...
user avatar
  • 1,664
17 votes
1 answer
7k views

In-Source Build vs. Out-Of-Source Build

In my (primarily C++) development, I have long adhered to using out-of-source builds. That is, my source usually sits in a /project/src directory and the builds live in a /project/build/bin/release, /...
user avatar
  • 447
2 votes
1 answer
109 views

Application build needs external "resources" to work: is this bad or... normal?

I was talking with some coworkers about the application build and we have some divergences about what each one consider a good practice or something to worry about. I learn that a good application ...
user avatar
  • 2,257
4 votes
1 answer
1k views

Webpack and Lazy Load for large-scale Web Application

Background I am trying to develop with Webpack and JavaScript. Webpack would bundle all source code into one single file. When application becomes large, the file would be very large and cause ...
user avatar
  • 349
4 votes
1 answer
245 views

What is the purpose of build for language like PHP?

I apologise in advance if this question seems obvious to some or whether this question should not even be asked. I have done research about the build process and I do understand the purpose of ...
user avatar
  • 159
-3 votes
1 answer
306 views

Build Environment [closed]

In my current organisation, we have several different build environments (like toolset etc.) which are needed for compiling the code of different modules within the same product. I found this a big ...
user avatar
  • 9
2 votes
1 answer
143 views

How to test a build tool?

For ease of use, I will use a build too to automate the various steps required to build my project on a new computer - like installing dependancies and so forth. Once I've got that all automated, how ...
user avatar
2 votes
5 answers
6k views

Should automated unit tests be part of the build?

Should automated unit tests be a part of the build process, or should they be manually run when someone makes changes to the code instead? To me it seems like making it part of the build rather than ...
user avatar
1 vote
1 answer
272 views

Practices to build test vs release versions of code?

I've written an application which reads a list of filenames and does stuff on those files. Dynamic allocation is not allowed and our language of choice is C. The app has an array to hold the ...
user avatar
3 votes
2 answers
387 views

how to improve build stability in a team

We are working on a software project, a team of 5-10 developers. The code base is continuously integrated using Bamboo. We have a build plan running also unit and integration tests and then a ...
user avatar
  • 141
0 votes
1 answer
2k views

Why are unity builds faster given modern compilers?

Consider (using Visual C++ as an example): cl /EHsc a.cpp b.cpp c.cpp versus cat a.cpp b.cpp c.cpp > unity.cpp cl /EHsc unity.cpp Why is the first variant slower given a modern compiler? I've ...
user avatar
1 vote
1 answer
221 views

Are there valid reasons for modifying the code of an application between build and release?

In a question on stackoverflow the answer I received was basically "It happens if you replace a .dll file in an already built application". That seems very dirty to me. I understand the need for ...
user avatar
  • 2,598
3 votes
2 answers
3k views

How can I reduce the build time from once a day to once every 15 minutes?

I have a large codebase of Java/JSP files that needs to be compiled and checked for errors. The compilation time is long enough that we only run it once a day. However, I'd like it to be more frequent ...
user avatar
76 votes
7 answers
19k views

What is the purpose of a dedicated build machine?

Due to a number of circumstances leading to a poor deployment last build cycle, I campaigned in our office to perform all future deployments with a dedicated build machine, and my boss accepted this ...
user avatar
  • 1,492
2 votes
1 answer
81 views

Communicating warnings in CI context - Nodejs, Grunt, Slack

We have a fairly complex Gruntfile.js that performs numerous things to process a bunch of EPUBs. It's part of our CI process being run regularly on Jenkins. Sometimes we want to notify the person who ...
user avatar
1 vote
1 answer
97 views

How to share new features in a large multi module project [duplicate]

I have been working in large multi module projects over a period of time. One major issue I faced is, how to communicate to other teams of a new feature which they may be interested in. Consider this ...
user avatar
1 vote
1 answer
154 views

"Nightly" a good place for experimental features?

In my day job I work on a tightly controlled project with features and overall scope ultimately decided on by committee. Often the final features are the result of a single (or multiple) member's ...
user avatar
0 votes
2 answers
83 views

Is changing the PATH in C comparable to `source` a virtualenv in Python?

Virtualenv appends its own path to $PATH, effectively overwriting the Python to the one picked when the virtualenv is created. Would changing the $PATH work equivalently as virtualenv in a compiled ...
user avatar
13 votes
2 answers
6k views

How to properly manage dependencies for C/C++ project?

I have a project which uses 3-4 different open source C/C++ libraries. I built these libraries for several platforms and checked in include files and static libs for different platforms in my project....
user avatar
0 votes
0 answers
723 views

Is it a good practice to build multiple web app war files from one source repo?

I have been asked to do the following: Take a project within a repo (repo has multiple projects inside) Build ant build script that will build two separate tomcat webapp war files. They are two web ...
user avatar
  • 2,939
0 votes
1 answer
383 views

What is the proper way to track my build versions in Qt?

Basically what I need in my project is a number of some sort that iterates itself every time I build my project, and that I can output by my program. So for example, when generating audio, I need to ...
user avatar
  • 3,319
1 vote
1 answer
227 views

Build and Deployment Strategies In House Software

We are currently building applications that will run in house and not be rolled out to any customers. We are the only customer. We are using c# and the latest .Net platform. We are also using Team ...
user avatar
  • 127
3 votes
1 answer
387 views

How can we improve our build process?

The company I work at has a (in my opinion) slow build process. We use TFS, and checking in code takes several hours. It goes like this: (Assuming change is made and code review has been approved) ...
user avatar
4 votes
1 answer
2k views

Is it good practice to check in updated assemblyinfo.cs files after build

Our build process changes the version number of all AssemlyInfo.cs files, so that the version number can be managed completely by the build server. Right now, we commit the changed AssemblyInfo.cs ...
user avatar
  • 286
0 votes
1 answer
309 views

Visual Studio Online CI Builds and Gated Check ins

I'm looking for a way to achieve something like this using VS online ... I have a lot of small solutions in the root of the repo that are structured a bit like ... Foo.sln "/Framework/xxx" "/...
user avatar
  • 111
0 votes
1 answer
366 views

Considerations when using Gulp to compile typescript vs using Visual Studio [closed]

We are a Microsoft shop, developing with Visual Studio. We are building a single page app, and we have elected to use Gulp to handle a lot of the script build tasks (javascript minification, css ...
user avatar
  • 351
5 votes
2 answers
2k views

Organizing maven modules and spring profiles

I'm facing a design problem with Spring's profile and Maven multimodule project from which i'm building a product, as a web as application that can be customized for differents clients. For this i ...
user avatar
  • 3,456
12 votes
3 answers
3k views

Why incremental builds in "make" don't use hashing algorithms?

I am a beginner with make and I'm wondering about when to use make clean. One colleague told me that incremental builds with make are based on the files timestamps. So, if you checkout an old version ...
user avatar
  • 289