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

PipelineRunImpl.replay assumes the task is still in the queue

    XMLWordPrintable

    Details

    • Epic Link:
    • Sprint:
      Blue Ocean 1.0-rc3, Blue Ocean - 1.1-beta-1
    • Similar Issues:

      Description

      We've been seeing a random failure in one of the unit tests: AbstractRunImplTest.replayRunTestMB. For some very strange reason, I'm seeing it a lot more here in San Jose

      I tracked the immediate problem that I see down to the fact that PipelineRunImpl.replay assumes that the task will remain in the queue for the duration of the functions execution. In my case, that's not what's happening i.e. the task goes to a running state fast enough for PipelineRunImpl.replay to not be able to see it in the queue and to think the run was not added to the queue and for it to throw an exception.

      I suppose the harder part to solve here is the API i.e. it seems like it can't return a BlueQueueItem, seeing as it might not be in the queue anymore.

      I tested this by hacking PipelineRunImpl.replay as follows: b8639f8.

      Assigning to Vivek for now ... he can decide if someone else needs to handle it.

        Attachments

          Activity

          Hide
          vivek Vivek Pandey added a comment -

          Ivan Meredith Can you look in to this, easier for you since you wrote this part of code?

          Show
          vivek Vivek Pandey added a comment - Ivan Meredith Can you look in to this, easier for you since you wrote this part of code?
          Hide
          jamesdumay James Dumay added a comment -

          For release in Blue Ocean 1.1

          Show
          jamesdumay James Dumay added a comment - For release in Blue Ocean 1.1

            People

            • Assignee:
              jamesdumay James Dumay
              Reporter:
              tfennelly Tom FENNELLY
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: