• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • git-plugin, pipeline

      This issue resembles very much JENKINS-43106.

      We have a pipeline job that is run in parallel on 10 different executors every night, multiple times.

      For the past week, the jobs get stuck on gitSCM checkout which is configured as follows:

      dir(sourceDir) {
          deleteDir()
          echo "Checking out ${commitId} from ${url}"
          checkout changelog: updateChanges, scm: [
              $class: 'GitSCM', branches: [[name: commitId]],
              userRemoteConfigs: [[url: url]]]
          commitId = sh returnStdout: true, script: "git rev-parse HEAD"
          echo "Checked out ${commitId} from ${url}"

      When this code is run in another job, it never fails.

      The difference is that when it fails, we have a "manager" job that runs the following:

      def call(testRunners, maxNumberOfTests, buildId) {
          def parallelRuns = [:]
          def numberOfRuns = 0
          for (int i = 0; i < availableExecutors; i++) {
             parallelRuns[i] = {
                waitUntil {
                   build job: 'TestRunner', parameters: [
                     string(name: 'sessionId', value: buildId),
                     string(name: 'randomBit', value: "${randomBit}")
                   ], propagate: false
                return (numberOfRuns > maxNumberOfRuns)}}}
        parallel parallelRuns
      }

      On the other hand it passes when we have a single pipeline, running in parallel the same function.

      Randomly, the TestRunner job will hang on checkout: I can see the first echo. There's no access to the git server (according to the git-daemon logs).

          [JENKINS-56838] pipeline job hangs forever at checkout GitSCM

          Tsvi Mostovicz created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Tsvi Mostovicz made changes -
          Assignee New: Mark Waite [ markewaite ]
          Tsvi Mostovicz made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Tsvi Mostovicz made changes -
          Labels Original: git New: git leak
          Tsvi Mostovicz made changes -
          Assignee New: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Tsvi Mostovicz made changes -
          Assignee New: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-19022 [ JENKINS-19022 ]
          Tsvi Mostovicz made changes -
          Link New: This issue duplicates JENKINS-19022 [ JENKINS-19022 ]
          Tsvi Mostovicz made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            tsvi Tsvi Mostovicz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: