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

SVN polling, clean builds, and long checkout equal endless loop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I was using svn polling once every minute (* * * * *) and the clean build option. My
      checkout time exceeds one minute.

      So what happens is...
      1) A build is triggered, this deletes the workspace (clean).
      2) The svn checkout begins (more than 60s elapse).
      3) Hudson svn polling tries to query the workspace to see if there are any updates, but the
      workspace is not done checking out from step 2. This causes the following message:

      Started on Aug 19, 2009 12:00:54 PM
      Workspace doesn't contain http://xxxxxxxxxxxxxxxxxxxxxxxxxx. Need a new build
      Done. Took 0.2 sec
      Changes found

      4) A new build is scheduled even though there are no new changes. Goto to step 1).

      This creates an endlessly looping build.

      A quick fix would be to suspend polling a project if a checkout/update is in progress.

      Alternately, you could query the repository directly (i.e. svn log --limit 1
      http://svnrepo/code/some/project) and compare the result to the previous change which
      triggered a build.

      You can workaround this issue by changing your poll schedule to something less frequent
      which will allow your build time to finish the checkout.

        Attachments

          Issue Links

            Activity

            Hide
            tharpers tharpers added a comment -

            I updated subversion to the "fixed" version and still continue to see the issue.
            When i change polling back to once every minute, multiple builds occur endlessly
            and the polling log indicated it was because the workspace was empty. I'm also
            running Hudson ver. 1.322. I'm happy to provide any logs or any other
            diagnostic assistance.

            Show
            tharpers tharpers added a comment - I updated subversion to the "fixed" version and still continue to see the issue. When i change polling back to once every minute, multiple builds occur endlessly and the polling log indicated it was because the workspace was empty. I'm also running Hudson ver. 1.322. I'm happy to provide any logs or any other diagnostic assistance.
            Hide
            tharpers tharpers added a comment -

            *also i don't currently run any slaves, this is all occuring with a single
            master system

            Show
            tharpers tharpers added a comment - *also i don't currently run any slaves, this is all occuring with a single master system
            Hide
            abayer Andrew Bayer added a comment -

            You can't actually upgrade the Subversion plugin on its own - you'll only get
            1.7 with Hudson 1.323, which will be released on Friday. The bug is definitely
            fixed in that release.

            Show
            abayer Andrew Bayer added a comment - You can't actually upgrade the Subversion plugin on its own - you'll only get 1.7 with Hudson 1.323, which will be released on Friday. The bug is definitely fixed in that release.
            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

            To clarify, the problem of not being able to update a bundled plugin is tracked
            as a separate issue.

            Show
            kohsuke Kohsuke Kawaguchi added a comment - To clarify, the problem of not being able to update a bundled plugin is tracked as a separate issue.
            Hide
            tharpers tharpers added a comment -

            Thanks for the clarification. Yeah i manually tried grabbing the 1.7 build and
            overwrote it in the plugin directory. I'll wait for the release.

            Thanks again for your hard work!

            Show
            tharpers tharpers added a comment - Thanks for the clarification. Yeah i manually tried grabbing the 1.7 build and overwrote it in the plugin directory. I'll wait for the release. Thanks again for your hard work!

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                gregan gregan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: