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

Test flake in CpsFlowExecutionTest.quietDown

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      java.lang.InterruptedException: sleep interrupted
      	at java.lang.Thread.sleep(Native Method)
      	at org.jvnet.hudson.test.JenkinsRule.waitForCompletion(JenkinsRule.java:1233)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecutionTest$7.evaluate(CpsFlowExecutionTest.java:273)
      

      due apparently to error after restart:

      ... jenkins.InitReactorRunner$1 onAttained
      INFO: Listed all plugins
      ... org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService reportProblem
      WARNING: Unexpected exception in CPS VM thread: CpsFlowExecution[Owner[p/1:p #1]]
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:893)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1110)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:402)
      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35)
      [p #1] Resuming build at ... after Jenkins restart
      

      Looks like a race condition in WorkflowRun.onLoad: execution is started before completed is initialized, and also GraphL is added before then. Perhaps loadProgramAsync needs to be called in a separate FlowExecution.restart() method once everything is ready?

        Attachments

          Activity

          Hide
          svanoort Sam Van Oort added a comment -

          I believe this one was resolved in my 1Q/2Q 2018 work to resolve persistence and order of operation issues. We can re-open if it recurs though.

          Show
          svanoort Sam Van Oort added a comment - I believe this one was resolved in my 1Q/2Q 2018 work to resolve persistence and order of operation issues. We can re-open if it recurs though.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: