Sometimes waitForCompletion times out, and the log shows that two copies of the WorkflowRun are loaded.

      Running against 1.606-SNAPSHOT, I observed an (unreproducible) failure:

      java.lang.AssertionError: tried to overwrite demo #1 with demo #1
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:472)
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:448)
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:356)
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:332)
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:274)
      	at jenkins.model.lazy.LazyBuildMixIn.getLastBuild(LazyBuildMixIn.java:240)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.getLastBuild(WorkflowJob.java:199)
      	at org.jenkinsci.plugins.workflow.SingleJobTestBase.rebuildContext(SingleJobTestBase.java:70)
      	at org.jenkinsci.plugins.workflow.WorkflowTest$22.evaluate(WorkflowTest.java:663)
      

          [JENKINS-27532] WorkflowTest.executorStepRestart failures

          Jesse Glick added a comment -

          Was hoping that JENKINS-22767 was finally gone, but it seems there is some related race condition remaining.

          Jesse Glick added a comment - Was hoping that JENKINS-22767 was finally gone, but it seems there is some related race condition remaining.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java
          http://jenkins-ci.org/commit/workflow-plugin/f9c921341006cfb358d474d73940209c82b8f241
          Log:
          JENKINS-27532 Noting.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java http://jenkins-ci.org/commit/workflow-plugin/f9c921341006cfb358d474d73940209c82b8f241 Log: JENKINS-27532 Noting.

          Jesse Glick added a comment -

          Making WorkflowRun.onLoad sleep for a while does not suffice to reproduce, unfortunately.

          Jesse Glick added a comment - Making WorkflowRun.onLoad sleep for a while does not suffice to reproduce, unfortunately.

          Jesse Glick added a comment -

          I think this is just caused by a core bug.

          Jesse Glick added a comment - I think this is just caused by a core bug.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/975796059dd8aced4d96cb01ec693482d2b37115
          Log:
          JENKINS-27532 Noting.
          Originally-Committed-As: f9c921341006cfb358d474d73940209c82b8f241

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/975796059dd8aced4d96cb01ec693482d2b37115 Log: JENKINS-27532 Noting. Originally-Committed-As: f9c921341006cfb358d474d73940209c82b8f241

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

              Created:
              Updated:
              Resolved: