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

Plugin hangs - reproduced with failed earlier build (Praqma case 12906)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      pretested integration plugin 2.2.1
      Linux Ubuntu 14.04 slave, master Linux Ubuntu 14.04.
      jenkins core 1.605
    • Similar Issues:

      Description

      Example of console log:

      Started by user Jenkins Admin
      [EnvInject] - Loading node environment variables.
      Building remotely on jenkins-training-linux-slave (linux) in workspace /home/praqma/.jenkins/workspace/bpe.roadshow.verify
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url https://github.com/buep/roadshow.git # timeout=10
      Fetching upstream changes from https://github.com/buep/roadshow.git
       > git --version # timeout=10
      using .gitcredentials to set credentials
       > git config --local credential.helper store --file=/tmp/git6460479601874649810.credentials # timeout=10
       > git -c core.askpass=true fetch --tags --progress https://github.com/buep/roadshow.git +refs/heads/*:refs/remotes/origin/*
       > git config --local --remove-section credential # timeout=10
      Seen branch in repository origin/master
      Seen branch in repository origin/ready/buep
      Seen 2 remote branches
      Checking out Revision 8b7d9910d213bf7e235beb528bfd416d0941a168 (origin/ready/buep)
       > git config core.sparsecheckout # timeout=10
       > git checkout -f 8b7d9910d213bf7e235beb528bfd416d0941a168
       > git rev-list 8b7d9910d213bf7e235beb528bfd416d0941a168 # timeout=10
      2.2.1 (63b83)
      

      jobs just hangs here...

      How to reproduce

      The situation is reproduceable every time (tried three times) after the problem reported in JENKINS-27515.

      After a successful job, that by an error is successful, I fixed the credentials to enable the job to push.
      When building manually after the configuration change the same branch is picked up again (correct, as it isn't deleted remotely), but the plugin hangs just after printing version number.

      A similar problem was reported in JENKINS-27328 but not reproduced.

      After the problem described above, the slave is killed (slave process) and master restarted. The situation can then be recreated after reboot.

        Attachments

          Activity

          Hide
          pablaasmo Per Arnold Blaasmo added a comment -

          This happens often on our Jenkins instance.
          If one jobs get it, several other jobs using the pretested plugin gets the same problem on the next run.

          When I turn on logging I get the following log from the pretested-plugin:

          13:54:49 [FINER]    PretestedIntegrationBuildWrapper.setUp, 54: ENTRY {0} {1} {2} 
          13:54:49 [FINER]    BuildQueue.getInstance, 24: ENTRY 
          13:54:49 [FINER]    BuildQueue.getInstance, 28: RETURN 
          13:54:49 [FINER]    BuildQueue.enqueueAndWait, 39: ENTRY 
          13:55:50 [FINER]    PretestedIntegrationPostCheckout.needsToRunAfterFinalized, 33: ENTRY 
          13:55:50 [FINER]    PretestedIntegrationPostCheckout.needsToRunAfterFinalized, 34: RETURN 
          13:55:50 [FINER]    PretestedIntegrationPostCheckout.perform, 49: ENTRY {0} {1} {2} 
          

          Jenkins core 1.596.2
          Master: Linux RHEL 6.5
          Slave: Linux Fedora 21
          Slave: java-1.8.0-openjdk-1.8.0.25

          Show
          pablaasmo Per Arnold Blaasmo added a comment - This happens often on our Jenkins instance. If one jobs get it, several other jobs using the pretested plugin gets the same problem on the next run. When I turn on logging I get the following log from the pretested-plugin: 13:54:49 [FINER] PretestedIntegrationBuildWrapper.setUp, 54: ENTRY {0} {1} {2} 13:54:49 [FINER] BuildQueue.getInstance, 24: ENTRY 13:54:49 [FINER] BuildQueue.getInstance, 28: RETURN 13:54:49 [FINER] BuildQueue.enqueueAndWait, 39: ENTRY 13:55:50 [FINER] PretestedIntegrationPostCheckout.needsToRunAfterFinalized, 33: ENTRY 13:55:50 [FINER] PretestedIntegrationPostCheckout.needsToRunAfterFinalized, 34: RETURN 13:55:50 [FINER] PretestedIntegrationPostCheckout.perform, 49: ENTRY {0} {1} {2} Jenkins core 1.596.2 Master: Linux RHEL 6.5 Slave: Linux Fedora 21 Slave: java-1.8.0-openjdk-1.8.0.25
          Hide
          bue Bue Petersen added a comment -

          The problem seems solved, and fix will be out in version 2.2.3 today or tomorrow.

          Show
          bue Bue Petersen added a comment - The problem seems solved, and fix will be out in version 2.2.3 today or tomorrow.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mads Nielsen
          Path:
          src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java
          http://jenkins-ci.org/commit/pretested-integration-plugin/e7e028e33dfbcfd14b7f117019684db0b06fad2f
          Log:
          Fix for JENKINS-27516

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mads Nielsen Path: src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java http://jenkins-ci.org/commit/pretested-integration-plugin/e7e028e33dfbcfd14b7f117019684db0b06fad2f Log: Fix for JENKINS-27516
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mads Nielsen
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java
          http://jenkins-ci.org/commit/pretested-integration-plugin/effcecf63a08fd3dc4c944b6e24cb166b4e1a19f
          Log:
          For JENKINS-27516, remove semaphore

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mads Nielsen Path: pom.xml src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java http://jenkins-ci.org/commit/pretested-integration-plugin/effcecf63a08fd3dc4c944b6e24cb166b4e1a19f Log: For JENKINS-27516 , remove semaphore
          Hide
          bue Bue Petersen added a comment -

          Fixed in 2.2.3 - just released.

          Show
          bue Bue Petersen added a comment - Fixed in 2.2.3 - just released.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Bue Petersen
          Path:
          check_for_changelog.rb
          pom.xml
          src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java
          http://jenkins-ci.org/commit/pretested-integration-plugin/a73d23b93b371f70cbad305acf44696e6176d8bd
          Log:
          JENKINS-27516 Merged in maintenance changes:

          Merged branch 'pretested-integration-2.2.1-maintenance' with fix for the
          JENKINS-27516 bug fix related to hanging builds if using the plugin
          with later Jenkins cores (1.596)

          Conflicts:
          pom.xml

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bue Petersen Path: check_for_changelog.rb pom.xml src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java http://jenkins-ci.org/commit/pretested-integration-plugin/a73d23b93b371f70cbad305acf44696e6176d8bd Log: JENKINS-27516 Merged in maintenance changes: Merged branch 'pretested-integration-2.2.1-maintenance' with fix for the JENKINS-27516 bug fix related to hanging builds if using the plugin with later Jenkins cores (1.596) Conflicts: pom.xml
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Bue Petersen
          Path:
          src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java
          http://jenkins-ci.org/commit/pretested-integration-plugin/f7ba320ba50ca28d904592ba22a627240a136d32
          Log:
          Checkstyle fixes for prior commit on JENKINS-27516

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bue Petersen Path: src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java http://jenkins-ci.org/commit/pretested-integration-plugin/f7ba320ba50ca28d904592ba22a627240a136d32 Log: Checkstyle fixes for prior commit on JENKINS-27516

            People

            • Assignee:
              bue Bue Petersen
              Reporter:
              bue Bue Petersen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: