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

Test flake in CpsThreadTest.stop

XMLWordPrintable

    • workflow-job 2.33

      java.lang.AssertionError: 
      Expected: a string containing "Finished: ABORTED"
           but: was "Started
      [Pipeline] unkillable
      Aborted by unknown
      [Pipeline] End of Pipeline
      "
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
      	at org.junit.Assert.assertThat(Assert.java:956)
      	at org.junit.Assert.assertThat(Assert.java:923)
      	at org.jvnet.hudson.test.JenkinsRule.assertLogContains(JenkinsRule.java:1215)
      	at org.jvnet.hudson.test.JenkinsRule.waitForMessage(JenkinsRule.java:1263)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadTest.stop(CpsThreadTest.java:70)
      

      As noted in sources, WorkflowRun.isBuilding() can go to false before .finish has completed.

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

              Created:
              Updated:
              Resolved: