Continuum

Rebuild not triggered when svn repository change consists of a single file deletion

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.1-alpha-2
  • Component/s: Core system
  • Labels:
    None
  • Environment:
    Continuum 1.3-SNAPSHOT (RC 1)
    Java 5.0 Update 6
    Windows XP SP2
    Subversion 1.3.0
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

Here is a continuum log snippet after I deleted a single file from my subversion repository.

INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,342 [defaultScheduler_Worker-12] INFO SchedulesActivator - >>>>>>>>>>>>>>>>>>>>> Executing build job (DEFAULT_SCHEDULE)...
INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,342 [defaultScheduler_Worker-12] INFO ContinuumStore:jdo - nb result : 3
INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,514 [Thread-1] INFO ContinuumScm - Updating project: id: '3', name 'Apreso Content Manager Web App'.
INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,545 [Thread-1] INFO ScmManager - Executing: svn --non-interactive update
INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,545 [Thread-1] INFO ScmManager - Working directory: C:\continuum\working-directory\3
INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,749 [defaultScheduler_Worker-12] INFO Continuum - Enqueuing 'Apreso Content Manager Web App' (Build definition id=3).
INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,827 [defaultScheduler_Worker-3] INFO SchedulesActivator - >>>>>>>>>>>>>>>>>>>>> Executing build job (DEFAULT_SCHEDULE)...
INFO | jvm 1 | 2006/03/24 12:02:31 | 2006-03-24 12:02:31,827 [defaultScheduler_Worker-3] INFO ContinuumStore:jdo - nb result : 3
INFO | jvm 1 | 2006/03/24 12:02:32 | 2006-03-24 12:02:32,108 [Thread-51624] DEBUG ScmManager - At revision 3114.
INFO | jvm 1 | 2006/03/24 12:02:32 | 2006-03-24 12:02:32,186 [Thread-1] INFO BuildController - The project was not built because all changes are unknown.
INFO | jvm 1 | 2006/03/24 12:02:32 | 2006-03-24 12:02:32,483 [Thread-1] INFO ContinuumScm - Updating project: id: '1', name 'Apreso Content Manager'.
INFO | jvm 1 | 2006/03/24 12:02:32 | 2006-03-24 12:02:32,515 [Thread-1] INFO ScmManager - Executing: svn --non-interactive update
INFO | jvm 1 | 2006/03/24 12:02:32 | 2006-03-24 12:02:32,515 [Thread-1] INFO ScmManager - Working directory: C:\continuum\working-directory\1
INFO | jvm 1 | 2006/03/24 12:02:33 | 2006-03-24 12:02:33,109 [Thread-51626] DEBUG ScmManager - D acm-lib\src\test\java\com\anystream\acm\service\TestLocationService.java
INFO | jvm 1 | 2006/03/24 12:02:33 | 2006-03-24 12:02:33,109 [Thread-51626] DEBUG ScmManager - Skipping non-file: acm-lib\src\test\java\com\anystream\acm\service\TestLocationService.java
INFO | jvm 1 | 2006/03/24 12:02:33 | 2006-03-24 12:02:33,109 [Thread-51626] DEBUG ScmManager - Updated to revision 3114.
INFO | jvm 1 | 2006/03/24 12:02:33 | 2006-03-24 12:02:33,187 [Thread-1] INFO BuildController - The project was not built because all changes are unknown.
INFO | jvm 1 | 2006/03/24 12:02:33 | 2006-03-24 12:02:33,484 [Thread-1] INFO ContinuumScm - Updating project: id: '2', name 'Apreso Content Manager Library'.
INFO | jvm 1 | 2006/03/24 12:02:33 | 2006-03-24 12:02:33,500 [Thread-1] INFO ScmManager - Executing: svn --non-interactive update
INFO | jvm 1 | 2006/03/24 12:02:33 | 2006-03-24 12:02:33,500 [Thread-1] INFO ScmManager - Working directory: C:\continuum\working-directory\2
INFO | jvm 1 | 2006/03/24 12:02:34 | 2006-03-24 12:02:34,109 [Thread-51628] DEBUG ScmManager - D src\test\java\com\anystream\acm\service\TestLocationService.java
INFO | jvm 1 | 2006/03/24 12:02:34 | 2006-03-24 12:02:34,109 [Thread-51628] DEBUG ScmManager - Skipping non-file: src\test\java\com\anystream\acm\service\TestLocationService.java
INFO | jvm 1 | 2006/03/24 12:02:34 | 2006-03-24 12:02:34,109 [Thread-51628] DEBUG ScmManager - Updated to revision 3114.
INFO | jvm 1 | 2006/03/24 12:02:34 | 2006-03-24 12:02:34,187 [Thread-1] INFO BuildController - The project was not built because all changes are unknown.
INFO | jvm 1 | 2006/03/24 12:02:34 | 2006-03-24 12:02:34,516 [Thread-1] INFO ContinuumScm - Updating project: id: '3', name 'Apreso Content Manager Web App'.
INFO | jvm 1 | 2006/03/24 12:02:34 | 2006-03-24 12:02:34,547 [Thread-1] INFO ScmManager - Executing: svn --non-interactive update
INFO | jvm 1 | 2006/03/24 12:02:34 | 2006-03-24 12:02:34,547 [Thread-1] INFO ScmManager - Working directory: C:\continuum\working-directory\3
INFO | jvm 1 | 2006/03/24 12:02:35 | 2006-03-24 12:02:35,110 [Thread-51630] DEBUG ScmManager - At revision 3114.
INFO | jvm 1 | 2006/03/24 12:02:35 | 2006-03-24 12:02:35,172 [Thread-1] INFO BuildController - The project was not built because all changes are unknown.

Activity

Hide
Mark Reynolds added a comment -

Oops, that is Continuum 1.0.3-SNAPSHOT (RC 1)

Show
Mark Reynolds added a comment - Oops, that is Continuum 1.0.3-SNAPSHOT (RC 1)
Hide
Rob Baily added a comment -

This appears to be in the actual 1.0.3 version that was pushed out as well. It also seems to happen if it is only adds. This has burned us a few times when we have updated some common libraries only to find that the changes are not getting found by Continuum and we have to do a manual build. Kind of surprising that this is out there and not a larger problem for many.

Here are our logs.
248420462 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updating project: id: '22', name 'ServiceBench Commons Web'.
248420466 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive update
248420466 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22
248420668 [Thread-3195] DEBUG org.apache.maven.scm.manager.ScmManager - A src/main/java/com/servicebench/commons/web/interceptors/CancelInterceptor.java
248420668 [Thread-3195] DEBUG org.apache.maven.scm.manager.ScmManager - Skipping non-file: src/main/java/com/servicebench/commons/web/interceptors/CancelInterceptor.java
248420679 [Thread-3195] DEBUG org.apache.maven.scm.manager.ScmManager - Updated to revision 2907.
248421429 [Thread-2] INFO org.apache.maven.continuum.buildcontroller.BuildController - The project was not built because there are no changes.

Show
Rob Baily added a comment - This appears to be in the actual 1.0.3 version that was pushed out as well. It also seems to happen if it is only adds. This has burned us a few times when we have updated some common libraries only to find that the changes are not getting found by Continuum and we have to do a manual build. Kind of surprising that this is out there and not a larger problem for many. Here are our logs. 248420462 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updating project: id: '22', name 'ServiceBench Commons Web'. 248420466 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive update 248420466 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22 248420668 [Thread-3195] DEBUG org.apache.maven.scm.manager.ScmManager - A src/main/java/com/servicebench/commons/web/interceptors/CancelInterceptor.java 248420668 [Thread-3195] DEBUG org.apache.maven.scm.manager.ScmManager - Skipping non-file: src/main/java/com/servicebench/commons/web/interceptors/CancelInterceptor.java 248420679 [Thread-3195] DEBUG org.apache.maven.scm.manager.ScmManager - Updated to revision 2907. 248421429 [Thread-2] INFO org.apache.maven.continuum.buildcontroller.BuildController - The project was not built because there are no changes.
Hide
Rob Baily added a comment -

I have an update. First of all my environment is

  • Continuum 1.0.3
  • Java 1.5.09
  • SUSE Linux
  • Subversion 1.4.2

I found out that this is related to the Maven scm plugins that are bundled with Continuum. It is currently bundled with version 1.0-beta3 of the Maven scm plugins. I went ahead and updated my lib directory with the 1.0-beta4 versions of the following files:
maven-scm-api
maven-scm-manager-plexus
maven-scm-provider-svn-commons
maven-scm-provider-svnexe

The one where the issue seems to be is in the maven-scm-provider-svnexe plugin. It is apparently not reporting adds and deletes as file changes in 1.0-beta3. It is skipping them as non-files for some reason.

After upgrading the addition of a single file works fine. Here is the log:

2478735 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updating project: id: '22', name 'ServiceBench Commons Web'.
2478741 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive update
2478741 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22
2479663 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive log -v -r "{2007-01-15 15:05:06 +0000}:HEAD" http://subversion.internal.servicebench.com/svn/projects/commons/trunk/web
2479663 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22
2479962 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updated 1 files.
2480003 [Thread-2] INFO org.codehaus.plexus.action.Action:update-project-from-working-directory - Updating project 'ServiceBench Commons Web' from checkout.

However deletes still do not work. Here is the log. Something must have changed in the logging as it is no longer spitting out DEBUG level messages. So I am guessing it may provide a similar message but I'm not certain. When I go and manually rebuild the project after this it works fine since the working folder has actually been updated (and confirmed by svn info).

6056747 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updating project: id: '22', name 'ServiceBench Commons Web'.
6056751 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive update
6056751 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22
6057683 [Thread-2] INFO org.apache.maven.continuum.buildcontroller.BuildController - The project was not built because there are no changes.

Show
Rob Baily added a comment - I have an update. First of all my environment is
  • Continuum 1.0.3
  • Java 1.5.09
  • SUSE Linux
  • Subversion 1.4.2
I found out that this is related to the Maven scm plugins that are bundled with Continuum. It is currently bundled with version 1.0-beta3 of the Maven scm plugins. I went ahead and updated my lib directory with the 1.0-beta4 versions of the following files: maven-scm-api maven-scm-manager-plexus maven-scm-provider-svn-commons maven-scm-provider-svnexe The one where the issue seems to be is in the maven-scm-provider-svnexe plugin. It is apparently not reporting adds and deletes as file changes in 1.0-beta3. It is skipping them as non-files for some reason. After upgrading the addition of a single file works fine. Here is the log: 2478735 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updating project: id: '22', name 'ServiceBench Commons Web'. 2478741 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive update 2478741 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22 2479663 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive log -v -r "{2007-01-15 15:05:06 +0000}:HEAD" http://subversion.internal.servicebench.com/svn/projects/commons/trunk/web 2479663 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22 2479962 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updated 1 files. 2480003 [Thread-2] INFO org.codehaus.plexus.action.Action:update-project-from-working-directory - Updating project 'ServiceBench Commons Web' from checkout. However deletes still do not work. Here is the log. Something must have changed in the logging as it is no longer spitting out DEBUG level messages. So I am guessing it may provide a similar message but I'm not certain. When I go and manually rebuild the project after this it works fine since the working folder has actually been updated (and confirmed by svn info). 6056747 [Thread-2] INFO org.apache.maven.continuum.scm.ContinuumScm - Updating project: id: '22', name 'ServiceBench Commons Web'. 6056751 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Executing: svn --non-interactive update 6056751 [Thread-2] INFO org.apache.maven.scm.manager.ScmManager - Working directory: /home/serviceb/continuum/continuum-1.0.3/bin/linux/../../apps/continuum/working-directory/22 6057683 [Thread-2] INFO org.apache.maven.continuum.buildcontroller.BuildController - The project was not built because there are no changes.
Hide
Emmanuel Venisse added a comment -

Fixed in Maven-SCM

Show
Emmanuel Venisse added a comment - Fixed in Maven-SCM

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: