Issues with incrementing labels in buildloop

Antoine Levy-Lambert <[email protected]> Thu, 31 Mar 2011 16:57:27 -0400
Newsgroups gmane.comp.java.cruise-control.devel
Message-ID <[email protected]>
Hi,

I think I had mentioned this already, but let's discuss this in detail.

The colleagues who were in my team and myself developed a CruiseControl 
plugin which builds a series of projects in proper build order.

We sometimes have issues with label incrementation.

Here an extract of log :

cruisecontrol.log:2011-03-31 11:21:38,925 [Thread-43857] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.145 -> 
ACMEDEV_7.1.0.146
cruisecontrol.log:2011-03-31 11:21:38,925 [Thread-43857] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.145 -> 
ACMEDEV_7.1.0.146
cruisecontrol.log:2011-03-31 11:40:51,406 [Thread-44476] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.146 -> 
ACMEDEV_7.1.0.147
cruisecontrol.log:2011-03-31 11:40:51,406 [Thread-44476] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.146 -> 
ACMEDEV_7.1.0.147
cruisecontrol.log:2011-03-31 11:58:51,486 [Thread-45730] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.147 -> 
ACMEDEV_7.1.0.148
cruisecontrol.log:2011-03-31 11:58:51,486 [Thread-45730] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.147 -> 
ACMEDEV_7.1.0.148
cruisecontrol.log:2011-03-31 12:12:15,898 [Thread-46417] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.147 -> 
ACMEDEV_7.1.0.148
cruisecontrol.log:2011-03-31 12:12:15,898 [Thread-46417] DEBUG 
DefaultLabelIncrementer - Incrementing label: ACMEDEV_7.1.0.147 -> 
ACMEDEV_7.1.0.148

I notice that for whatever reason the DefaultLabelIncrementer messages 
appear twice, maybe I did not configure log4j correctly.

The interesting thing here is that one sees at 11:58:51 and then at 
12:12 the label incrementer going from ACMEDEV_7.1.0.147 to 
ACMEDEV_7.1.0.148.

Is the Project object reread or recreated inside CruiseControl ?

I do not have clear ideas concerning the lifecycle of the core objects 
of CruiseControl.

Also, there is no indication that the project ACMEDEV is building in two 
different threads.

Let me know your thoughts.

Regards,

Antoine



------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf