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

ClosedByInterruptException in JenkinsRule setup

    XMLWordPrintable

Details

    Description

      From time to time tests like this are observed to fail in setup on CI builders with

      java.nio.channels.ClosedByInterruptException: null
      	at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
      	at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:314)
      	at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1142)
      	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1091)
      	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)
      	at org.jvnet.hudson.test.JenkinsRule$7$Jpl.resolveDependencies(JenkinsRule.java:1671)
      	at org.jvnet.hudson.test.JenkinsRule$7.decorateHome(JenkinsRule.java:1613)
      	at org.jvnet.hudson.test.JenkinsRule.newHudson(JenkinsRule.java:557)
      	at org.jvnet.hudson.test.JenkinsRule.before(JenkinsRule.java:346)
      	at org.jvnet.hudson.test.JenkinsRule$2.evaluate(JenkinsRule.java:504)
      	at ...
      

      Not sure why it happens (build timeout is not responsible), but we should just carry on in that case.

      Attachments

        Issue Links

          Activity

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java
            http://jenkins-ci.org/commit/workflow-job-plugin/b0026ccc5c3b935b8f78a926bd2d2fedb79b920e
            Log:
            JENKINS-30395 Trying to diagnose the root cause of a recurrent ClosedByInterruptException in CI.
            Originally-Committed-As: ed77fb97a349da51b675f97d06fce8ebe863f107

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java http://jenkins-ci.org/commit/workflow-job-plugin/b0026ccc5c3b935b8f78a926bd2d2fedb79b920e Log: JENKINS-30395 Trying to diagnose the root cause of a recurrent ClosedByInterruptException in CI. Originally-Committed-As: ed77fb97a349da51b675f97d06fce8ebe863f107

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java
            http://jenkins-ci.org/commit/workflow-multibranch-plugin/78f44c2732bbc6b1b9d06fef2a2f5076adf90266
            Log:
            Some recently added tests neglected to invoke the JENKINS-30395 workaround.
            Originally-Committed-As: 95e1886f06bb74174087e8cc42d1a56be2fef2c7

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java http://jenkins-ci.org/commit/workflow-multibranch-plugin/78f44c2732bbc6b1b9d06fef2a2f5076adf90266 Log: Some recently added tests neglected to invoke the JENKINS-30395 workaround. Originally-Committed-As: 95e1886f06bb74174087e8cc42d1a56be2fef2c7

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java
            http://jenkins-ci.org/commit/workflow-multibranch-plugin/3863d452771b11172229444caba00984b18dae7c
            Log:
            JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
            Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java http://jenkins-ci.org/commit/workflow-multibranch-plugin/3863d452771b11172229444caba00984b18dae7c Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsFlowExecutionTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsScmFlowDefinitionTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/DSLTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/LoadStepTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/RestartingLoadStepTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java
            cps/src/test/java/org/jenkinsci/plugins/workflow/cps/AbstractCpsFlowTest.java
            http://jenkins-ci.org/commit/workflow-cps-plugin/b99329d09ad2c8815e60cd268839295d6b17c329
            Log:
            JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
            Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsFlowExecutionTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsScmFlowDefinitionTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/DSLTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/LoadStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/RestartingLoadStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java cps/src/test/java/org/jenkinsci/plugins/workflow/cps/AbstractCpsFlowTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/b99329d09ad2c8815e60cd268839295d6b17c329 Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunRestartTest.java
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java
            http://jenkins-ci.org/commit/workflow-job-plugin/edf1cd0564930316ce4878a09b29088496a4d535
            Log:
            JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
            Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunRestartTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java http://jenkins-ci.org/commit/workflow-job-plugin/edf1cd0564930316ce4878a09b29088496a4d535 Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

            People

              jglick Jesse Glick
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: