Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22158

Wrong parsing of revision for externals causes infinite builds

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • subversion-plugin
    • None
    • Windows 2008 R2 64bit, Jenkins 1.532.2

      Svn pool causes infinite builds because revision for some of the externals is wrong parsed. It always says that revision is changed from -1 although it should be 84343:

      Started on Mar 12, 2014 7:43:54 PM
      Received SCM poll call on plkrbuild02 for ManufacturingProcessIntelligence on Mar 12, 2014 7:43:54 PM
      http://svnserver:81/svn/PDR/App/Branches/ModernUI/SharedItems/Resources is at revision 84,343
      (changed from -1)
      http://svnserver:81/svn/PDR/App/Branches/ModernUI/Manufacturing Process Intelligence/Implementation is at revision 84,343
      http://svnserver:81/svn/pdr/App/Master/SharedItems/TestsConfigurationFiles is at revision 87,219
      Done. Took 0.91 sec
      Changes found

          [JENKINS-22158] Wrong parsing of revision for externals causes infinite builds

          hudson.util.IOException2: revision check failed on http://svnserver:81/svn/pdr/App/Branches/ModernUI/SharedItems/ConfigurationFiles
          at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:189)
          at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:132)
          at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:736)
          at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:897)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
          at hudson.model.Run.execute(Run.java:1665)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:246)
          Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: REPORT /svn/pdr/!svn/bc/84343/App/Branches/ModernUI/SharedItems/ConfigurationFiles failed
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:386)
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:373)
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:361)
          at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:707)
          at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:334)
          at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:324)
          at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.logImpl(DAVRepository.java:995)
          at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:1035)
          at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:181)
          at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35)
          at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
          at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1238)
          at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
          at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:967)
          at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:872)
          at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:177)
          ... 11 more
          Caused by: svn: E175002: REPORT /svn/pdr/!svn/bc/84343/App/Branches/ModernUI/SharedItems/ConfigurationFiles failed
          at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
          at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
          at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
          ... 27 more
          Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -11
          at java.lang.String.substring(Unknown Source)
          at java.lang.String.substring(Unknown Source)
          at hudson.scm.DirAwareSVNXMLLogHandler.handleLogEntry(DirAwareSVNXMLLogHandler.java:90)
          at org.tmatesoft.svn.core.internal.wc2.compat.SvnCodec$7.receive(SvnCodec.java:167)
          at org.tmatesoft.svn.core.internal.wc2.compat.SvnCodec$7.receive(SvnCodec.java:164)
          at org.tmatesoft.svn.core.wc2.SvnReceivingOperation.receive(SvnReceivingOperation.java:78)
          at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.handleLogEntry(SvnRemoteLog.java:199)
          at org.tmatesoft.svn.core.internal.io.dav.DAVRepository$1.handleLogEntry(DAVRepository.java:950)
          at org.tmatesoft.svn.core.internal.io.dav.handlers.DAVLogHandler.endElement(DAVLogHandler.java:226)
          at org.tmatesoft.svn.core.internal.io.dav.handlers.BasicDAVHandler.endElement(BasicDAVHandler.java:103)
          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:911)
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:876)
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:220)
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:480)
          at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:382)
          ... 26 more
          Retrying after 10 seconds

          Ireneusz Makowski added a comment - hudson.util.IOException2: revision check failed on http://svnserver:81/svn/pdr/App/Branches/ModernUI/SharedItems/ConfigurationFiles at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:189) at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:132) at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:736) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:897) at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1665) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: REPORT /svn/pdr/!svn/bc/84343/App/Branches/ModernUI/SharedItems/ConfigurationFiles failed at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:386) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:373) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:361) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:707) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:334) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:324) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.logImpl(DAVRepository.java:995) at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:1035) at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:181) at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35) at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20) at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1238) at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:967) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:872) at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:177) ... 11 more Caused by: svn: E175002: REPORT /svn/pdr/!svn/bc/84343/App/Branches/ModernUI/SharedItems/ConfigurationFiles failed at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208) at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154) at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97) ... 27 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -11 at java.lang.String.substring(Unknown Source) at java.lang.String.substring(Unknown Source) at hudson.scm.DirAwareSVNXMLLogHandler.handleLogEntry(DirAwareSVNXMLLogHandler.java:90) at org.tmatesoft.svn.core.internal.wc2.compat.SvnCodec$7.receive(SvnCodec.java:167) at org.tmatesoft.svn.core.internal.wc2.compat.SvnCodec$7.receive(SvnCodec.java:164) at org.tmatesoft.svn.core.wc2.SvnReceivingOperation.receive(SvnReceivingOperation.java:78) at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.handleLogEntry(SvnRemoteLog.java:199) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository$1.handleLogEntry(DAVRepository.java:950) at org.tmatesoft.svn.core.internal.io.dav.handlers.DAVLogHandler.endElement(DAVLogHandler.java:226) at org.tmatesoft.svn.core.internal.io.dav.handlers.BasicDAVHandler.endElement(BasicDAVHandler.java:103) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:911) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:876) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:220) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:480) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:382) ... 26 more Retrying after 10 seconds

          Yoichi Nakayama added a comment - - edited

          Could you show us the property value of svn:externals?

          Yoichi Nakayama added a comment - - edited Could you show us the property value of svn:externals?

          This issue will be handled in JENKINS-22199

          Yoichi Nakayama added a comment - This issue will be handled in JENKINS-22199

          It looks for me, that it hasn't been solved. I updated to the latest 2.5-beta-2 subversion plugin (and Jenkins v 1.583) but still have "-1" issue.
          As you can see in the polling log, it's trigger to build a job cause plugin reads -1 revision.

          Started on Oct 2, 2014 10:10:00 AM
          Received SCM poll call on master for ProjectX on Oct 2, 2014 10:10:00 AM
          https://host1/svn/repo1/tags/latest is at revision 136
          https://host2/svn/repo2/trunk is at revision 44
          https://host2/svn/repo2/trunk/tests is at revision 974
            (changed from -1)
          https://host1/repo3/trunk/path is at revision 83
          Done. Took 1.7 sec
          Changes found
          

          All listed repositories are svn:externals. Strange that only one external repository is affected.

          Pawel Grzegrzolka added a comment - It looks for me, that it hasn't been solved. I updated to the latest 2.5-beta-2 subversion plugin (and Jenkins v 1.583) but still have "-1" issue. As you can see in the polling log, it's trigger to build a job cause plugin reads -1 revision. Started on Oct 2, 2014 10:10:00 AM Received SCM poll call on master for ProjectX on Oct 2, 2014 10:10:00 AM https://host1/svn/repo1/tags/latest is at revision 136 https://host2/svn/repo2/trunk is at revision 44 https://host2/svn/repo2/trunk/tests is at revision 974 (changed from -1) https://host1/repo3/trunk/path is at revision 83 Done. Took 1.7 sec Changes found All listed repositories are svn:externals. Strange that only one external repository is affected.

          imakowski, Did you try with the latest version of Subversion Plugin?

          Manuel Recena Soto added a comment - imakowski , Did you try with the latest version of Subversion Plugin?

          Ireneusz Makowski added a comment - - edited

          I haven't tried, because latest version upgrades my working copies to 1.8 Workspace Version what is not desired. We still using 1.7 workspace versions.
          Is it resolved in latest version?

          My current version of Subversion plugin is: 2.4.5

          Ireneusz Makowski added a comment - - edited I haven't tried, because latest version upgrades my working copies to 1.8 Workspace Version what is not desired. We still using 1.7 workspace versions. Is it resolved in latest version? My current version of Subversion plugin is: 2.4.5

          Manuel Recena Soto added a comment - - edited

          imakowski I don't know but make sense to try it. You can use the latest version and configure your workspaces as 1.7 version.

          Anyway, I don't consider this issue as blocker.

          Manuel Recena Soto added a comment - - edited imakowski I don't know but make sense to try it. You can use the latest version and configure your workspaces as 1.7 version. Anyway, I don't consider this issue as blocker.

            recena Manuel Recena Soto
            imakowski Ireneusz Makowski
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: