Continuous Integration should be a highway, not a parking lot. But that’s what happens sometimes when developers end up competing for limited Continuous Integration capacity. Developers working on critical and time-senstive work like production bugfixes can struggle to get their builds serviced promptly; they can be fighting a tide of checkins from their colleagues working on new functionality. Also, functional tests can jam up the available build agents while short builds queue up. This delays the feedback to the developers that they have integrated their code properly.
What to do? Dedicate some capacity to those builds that could actually take priority. How you implement depends on your continuous integration system. On CruiseControl (the original one), I made a seperate server for this. I’m implementing the same thing on Team City at the moment and I’ve added an environment variable to the build agents that I want to reserve for fast builds. Any build that is longer than 15 minutes is told not to use it if the variable exists.
One might argue that I’m not making best use of the CI server by doing this. That doesn’t matter. People are more expensive than Continuous Integration servers; let’s optimise the system for them.
(image from Ted Percival)
Related posts:
- Build Pattern: Facade Let’s face it: Build scripts can age as badly...
- Continuous Integration in the cloud: good idea? Continuous Integration can be tricky to provision. It’s IO...
- Continuous Integration is an attitude Question: How do we prevent integration pain? Answer: Continuous...
- Justifying Continuous Integration Expenditure Banos commented on my last post: So why, oh...
Related posts brought to you by Yet Another Related Posts Plugin.
