My Distributed Build System
Join the DZone community and get the full member experience.Join For Free
yes, i know that you are probably getting geared up to hear about some crazy setup, and in some manner, it is crazy. my distributed build system is this:
yep, that is me manually distributing the build to do a cross check on a reasonable time frame.
i’ve mentioned before that our build time is atrocious. with over 3,500 tests, this is no longer a feasible alternative to just run them normally. so we started parallel efforts (pun intended), to reduce the time it takes the system to build and reduce individual test times as well as the ability to parallelize things.
we are actually at the point where we can run concurrent tests, even those we previously had to distribute. and we can even do that with replicated tests, which are the ones usually taking the longest. but what we’ll probably have in the end is just a bunch of test projects (currently we have ~5) that we will run on different machines at the same time.
we are using team city for build system, and i know that it has capabilities in this regard, but i’ve never actually looked into that. we’re going to be pretty busy in the next couple of weeks, so i thought that this would be a good time to ask.
my current thinking is:
- one build that would actually do the compilation, etc.
- then branch off that to a build per test project, which can run on different agents
- then a build on top of that that can actually deploy the build.
any recommendations on that? we are going to need 5 – 7 agents to run the tests in parallel. any recommendations on how to get those? ideally i would like to avoid having to pay for those machines to sit idle 60% – 80% of the time.
any other alternatives?
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.