Testing blogging from my iPhone, this seems to work ok. Yay.
Keep an eye on this blog if you are interested in continous integration methods for improving your software team. I am preparing a post on the subject....
Wednesday, February 17, 2010
Tuesday, February 16, 2010
Improving upon continuous integration
I am quite a big fan of continuous integration and other automatable "agile practices" for improving performance in software teams. Roughly half a year ago the team I am the scrum master of started improving upon our practices, one of the first tasks was to create a script that made it able to create a release with a single command. With this done we added a continuous integration server (CruiseControl) and started down the path of automated tests & tasks. A couple of months later this has had measurable impact on the time it takes to make releases and as we've added compile & test tasks that run for each commit to SVN, this makes us more confident about the quality of the software we make.
I also hold the believe that nothing is ever perfect and it's always possible to improve and tune your software process. The problem I've been seeing lately is that, yes the continuous server helps us easily find compilation errors, bugs and broken tests. But once the code is in our SVN the damage is already done, we are working on a product with multiple teams in multiple time zones. It's very easy for someone to make a commit that breaks the build and then leave for the day, national holidays, other work assignments etc. I'll shortly outline our current process:
TeamCity allows us to have the following process:
A couple of minor caveats:
I also hold the believe that nothing is ever perfect and it's always possible to improve and tune your software process. The problem I've been seeing lately is that, yes the continuous server helps us easily find compilation errors, bugs and broken tests. But once the code is in our SVN the damage is already done, we are working on a product with multiple teams in multiple time zones. It's very easy for someone to make a commit that breaks the build and then leave for the day, national holidays, other work assignments etc. I'll shortly outline our current process:
- Write code & test
- Check in your changes to the version control system (VCS), such as SVN, GIT etc.
- Continuous integration server sees a change in the VCS and starts a build, tests and so on.
- If your code fails to compile or have broken some tests you will be notified and hopefully you are able to fix it before other developers update from the VCS.
- Other developers update from the VCS. They might update before you have had time to fix problems in the code you checked in.
- The bad code propagates to the whole team or the team might be sitting idle waiting for a fix for the bad code that is already in the VCS.
TeamCity allows us to have the following process:
- Write code & test
- Send your code to TeamCity, which can run the same checks and builds as the continuous integration server but before the code is committed to the VCS.
- TeamCity automatically commits to the VCS if your code compile, pass all tests etc.
- Other developers update as normally from the VCS but they only get good code.
A couple of minor caveats:
- TeamCity has no command line tool, so there is no way to script commits. Everything is done with IDE plugins.
- Java centric, be ready for a lot of scripting & configuration if your build is complex using lots of different build systems (makefile, vcproj/sln, cygwin etc).
Subscribe to:
Posts (Atom)