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

Functional tests fails due to locked files on Windows (Praqma case 12882)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If running the integration-test goal on Windows, the following tests fails:

          org.jenkinsci.plugins.pretestedintegration.integration.scm.git.AccumulatedCommitMessageIT.mergeCommitContainsOnlyMessagesFromCorrectBranch
          org.jenkinsci.plugins.pretestedintegration.integration.scm.git.AccumulatedCommitMessageIT.mergeCommitContainsAllMessagesFromTheFeatureBranch
          org.jenkinsci.plugins.pretestedintegration.integration.scm.git.AccumulatedCommitMessageIT.commitMessageShouldOnlyCollectFromOwnBranch
          org.jenkinsci.plugins.pretestedintegration.integration.scm.git.AccumulatedCommitMessageIT.mergeCommitContainsAllMessagesFromTheFeatureBranchButNotTheNewestOnMaster
          org.jenkinsci.plugins.pretestedintegration.integration.scm.git.AccumulatedCommitMessageIT.commitMessageShouldOnCollectFromConnectedBranches
      

      The common problem is:

      Error Message
      
      Locked files? Failed to delete directory 'E:\jslave\workspace\pretested-integration-plugin_integrationtest_master-Windows\mergeCommitContainsOnlyMessagesFromCorrectBranch' for 30 seconds (100 tries)
      
      Stacktrace
      
      java.lang.InterruptedException: Locked files? Failed to delete directory 'E:\jslave\workspace\pretested-integration-plugin_integrationtest_master-Windows\mergeCommitContainsOnlyMessagesFromCorrectBranch' for 30 seconds (100 tries)
      	at org.jenkinsci.plugins.pretestedintegration.integration.scm.git.TestUtilsFactory.destroyDirectory(TestUtilsFactory.java:147)
      	at org.jenkinsci.plugins.pretestedintegration.integration.scm.git.TestUtilsFactory.destroyRepo(TestUtilsFactory.java:190)
      	at org.jenkinsci.plugins.pretestedintegration.integration.scm.git.AccumulatedCommitMessageIT.tearDown(AccumulatedCommitMessageIT.java:112)
      
      

      We would like the tests to run without fails on Windows.

        Attachments

          Activity

          Hide
          bue Bue Petersen added a comment -

          Fixed, improved the clean-up methods but the change that fixed it was remembering to free used resources. It wasn't really a Windows problem.

          Show
          bue Bue Petersen added a comment - Fixed, improved the clean-up methods but the change that fixed it was remembering to free used resources. It wasn't really a Windows problem.
          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/scm/git/AccumulatedCommitStrategy.java
          src/main/java/org/jenkinsci/plugins/pretestedintegration/scm/git/SquashCommitStrategy.java
          http://jenkins-ci.org/commit/pretested-integration-plugin/bba993008f51195ebf913d760d405d7b28aa5ad6
          Log:
          JENKINS-27690,JENKINS-27662,JENKINS-27697: checkstyle fixes

          Fixed some checkstyle warnings to pass thressholds.

          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/scm/git/AccumulatedCommitStrategy.java src/main/java/org/jenkinsci/plugins/pretestedintegration/scm/git/SquashCommitStrategy.java http://jenkins-ci.org/commit/pretested-integration-plugin/bba993008f51195ebf913d760d405d7b28aa5ad6 Log: JENKINS-27690 , JENKINS-27662 , JENKINS-27697 : checkstyle fixes Fixed some checkstyle warnings to pass thressholds.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: