Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 3040 invoked from network); 6 Aug 2010 06:30:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Aug 2010 06:30:01 -0000 Received: (qmail 84838 invoked by uid 500); 6 Aug 2010 06:30:01 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 84729 invoked by uid 500); 6 Aug 2010 06:30:01 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 84624 invoked by uid 99); 6 Aug 2010 06:30:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 06:30:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 06:29:54 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id C45AF458234 for ; Fri, 6 Aug 2010 01:29:33 -0500 (CDT) Date: Fri, 6 Aug 2010 01:29:33 -0500 (CDT) From: "Brett Porter (JIRA)" To: issues@continuum.apache.org Message-ID: <17402258.30156.1281076173797.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <16356234.19926.1279842632452.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Updated: (CONTINUUM-2546) Distributed builds not always building with dependency changes MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/CONTINUUM-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett Porter updated CONTINUUM-2546: ------------------------------------ Fix Version/s: 1.4.1 (Beta) > Distributed builds not always building with dependency changes > -------------------------------------------------------------- > > Key: CONTINUUM-2546 > URL: http://jira.codehaus.org/browse/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 > Fix For: 1.4.1 (Beta) > > > We were having problems with our distributed builds not always building when dependencies changed. I traced the issue into: > {code} > org.apache.continuum.builder.distributed.DefaultDistributedBuildService.shouldBuild(Map) > {code} > which contains this code fragment: > {code} > Date date = ContinuumBuildConstant.getLatestUpdateDate( context ); > if ( date != null && oldBuildResult.getLastChangedDate() >= date.getTime() ) > { > log.info( "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 > log.info( "Changes found in the current project, building (projectId=" + projectId + ")" ); > return true; > } > {code} > 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 expect. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira