continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Coy (JIRA)" <>
Subject [jira] Created: (CONTINUUM-2546) Distributed builds not always building with dependency changes
Date Thu, 22 Jul 2010 23:50:32 GMT
Distributed builds not always building with dependency changes

                 Key: CONTINUUM-2546
             Project: Continuum
          Issue Type: Bug
          Components: Distributed Builds
    Affects Versions: 1.4.0 (Beta)
         Environment: CentOS release 5.5 (Final)

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)

            Reporter: Stephen Coy

We were having problems with our distributed builds not always building when dependencies
changed. I traced the issue into:


which contains this code fragment:
Date date = ContinuumBuildConstant.getLatestUpdateDate( context );
if ( date != null && oldBuildResult.getLastChangedDate() >= date.getTime() )
{ "No changes found, not building (projectId=" + projectId + ")" );
    return false;
else if ( date != null && changes.isEmpty() )
    // fresh checkout from build agent that's why changes is empty "Changes found in the current project, building (projectId=" + projectId + ")"
    return true;
We seem to be getting caught out by the first test. (There's only one agent building this
project btw). I think "oldBuildResult" may be the BuildResult for the current build

I tried commenting out the first piece of logic. This resulted in everything building at every
scheduled run because the second test always passes for an existing project with no changes
in it.

For now I've commented out ALL of the code above and things seem to be behaving the way I

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message