• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • blueocean-plugin
    • 1.0.0-rc1
      - Core 2.32.3
      - 9ac3256
      - (no branch)
    • Blue Ocean - 1.1-beta-1

      Notes
      I suspect that there is a race condition between the run being queued and then it no longer being in the queue (backend makes a very academic distinction between runs that are executing and are queued). We need to handle this situation gracefully.

      Original request
      Steps to reproduce the bug (see video here):

      • Create a freestyle job in classic with a bash sleep 10 in it
      • Go to its BO version
      • Click on Run several times to have jobs queued
      • Try to stop one of the queued ones
      • Sometimes on stop there is a JS error and the job is not removed
      DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
       request @ blueocean.js:2602
       dedupe @ blueocean.js:7854
       dedupe @ blueocean.js:7877
       rawFetch @ blueocean.js:2620
       fetch @ blueocean.js:2695
       removeFromQueue @ blueocean.js:5026
       _onStopClick @ blueocean.js:1944
       onClick @ blueocean.js:2020
       invokeGuardedCallback @ blueocean.js:88000
       executeDispatch @ blueocean.js:80124
       executeDispatchesInOrder @ blueocean.js:80144
       executeDispatchesAndRelease @ blueocean.js:79601
       executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
       forEachAccumulated @ blueocean.js:94269
       processEventQueue @ blueocean.js:79788
       runEventQueueInBatch @ blueocean.js:88058
       handleTopLevel @ blueocean.js:88069
       handleTopLevelImpl @ blueocean.js:88136
       perform @ blueocean.js:93653
       batchedUpdates @ blueocean.js:87336
       batchedUpdates @ blueocean.js:91552
       dispatchEvent @ blueocean.js:88213
      

      When reloading the page the builds we were trying to stop are either stopped or completed

          [JENKINS-42929] Stopping a freestyle job will sometimes fail

          Isa Vilacides created issue -
          Isa Vilacides made changes -
          Description Original: Steps to reproduce the bug:

          Create a freestyle job in classic with a bash sleep 10 in it

          Go to its BO version

          Click on Run several times to have jobs queued

          Try to stop one of the queued ones

          Sometimes on stop there is a JS error and the job is not removed

          \{code}

          DELETE http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/ 404 (Not Found)
          request @ blueocean.js:2602
          dedupe @ blueocean.js:7854
          dedupe @ blueocean.js:7877
          rawFetch @ blueocean.js:2620
          fetch @ blueocean.js:2695
          removeFromQueue @ blueocean.js:5026
          _onStopClick @ blueocean.js:1944
          onClick @ blueocean.js:2020
          invokeGuardedCallback @ blueocean.js:88000
          executeDispatch @ blueocean.js:80124
          executeDispatchesInOrder @ blueocean.js:80144
          executeDispatchesAndRelease @ blueocean.js:79601
          executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
          forEachAccumulated @ blueocean.js:94269
          processEventQueue @ blueocean.js:79788
          runEventQueueInBatch @ blueocean.js:88058
          handleTopLevel @ blueocean.js:88069
          handleTopLevelImpl @ blueocean.js:88136
          perform @ blueocean.js:93653
          batchedUpdates @ blueocean.js:87336
          batchedUpdates @ blueocean.js:91552
          dispatchEvent @ blueocean.js:88213

          \{code}
          New: Steps to reproduce the bug:

          * Create a freestyle job in classic with a bash sleep 10 in it

          * Go to its BO version

          * Click on Run several times to have jobs queued

          * Try to stop one of the queued ones

          * Sometimes on stop there is a JS error and the job is not removed

          \{code}

          DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
           request @ blueocean.js:2602
           dedupe @ blueocean.js:7854
           dedupe @ blueocean.js:7877
           rawFetch @ blueocean.js:2620
           fetch @ blueocean.js:2695
           removeFromQueue @ blueocean.js:5026
           _onStopClick @ blueocean.js:1944
           onClick @ blueocean.js:2020
           invokeGuardedCallback @ blueocean.js:88000
           executeDispatch @ blueocean.js:80124
           executeDispatchesInOrder @ blueocean.js:80144
           executeDispatchesAndRelease @ blueocean.js:79601
           executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
           forEachAccumulated @ blueocean.js:94269
           processEventQueue @ blueocean.js:79788
           runEventQueueInBatch @ blueocean.js:88058
           handleTopLevel @ blueocean.js:88069
           handleTopLevelImpl @ blueocean.js:88136
           perform @ blueocean.js:93653
           batchedUpdates @ blueocean.js:87336
           batchedUpdates @ blueocean.js:91552
           dispatchEvent @ blueocean.js:88213

          \{code}

          * When reloading the page the builds we were trying to stop are either stopped or completed
          Isa Vilacides made changes -
          Description Original: Steps to reproduce the bug:

          * Create a freestyle job in classic with a bash sleep 10 in it

          * Go to its BO version

          * Click on Run several times to have jobs queued

          * Try to stop one of the queued ones

          * Sometimes on stop there is a JS error and the job is not removed

          \{code}

          DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
           request @ blueocean.js:2602
           dedupe @ blueocean.js:7854
           dedupe @ blueocean.js:7877
           rawFetch @ blueocean.js:2620
           fetch @ blueocean.js:2695
           removeFromQueue @ blueocean.js:5026
           _onStopClick @ blueocean.js:1944
           onClick @ blueocean.js:2020
           invokeGuardedCallback @ blueocean.js:88000
           executeDispatch @ blueocean.js:80124
           executeDispatchesInOrder @ blueocean.js:80144
           executeDispatchesAndRelease @ blueocean.js:79601
           executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
           forEachAccumulated @ blueocean.js:94269
           processEventQueue @ blueocean.js:79788
           runEventQueueInBatch @ blueocean.js:88058
           handleTopLevel @ blueocean.js:88069
           handleTopLevelImpl @ blueocean.js:88136
           perform @ blueocean.js:93653
           batchedUpdates @ blueocean.js:87336
           batchedUpdates @ blueocean.js:91552
           dispatchEvent @ blueocean.js:88213

          \{code}

          * When reloading the page the builds we were trying to stop are either stopped or completed
          New: Steps to reproduce the bug (see video [here|https://drive.google.com/open?id=0B8uklOZI9kkqak1VZ1Jwd3J1SVE]):
           * Create a freestyle job in classic with a bash sleep 10 in it

           * Go to its BO version

           * Click on Run several times to have jobs queued

           * Try to stop one of the queued ones

           * Sometimes on stop there is a JS error and the job is not removed

          \{code}

          DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
           request @ blueocean.js:2602
           dedupe @ blueocean.js:7854
           dedupe @ blueocean.js:7877
           rawFetch @ blueocean.js:2620
           fetch @ blueocean.js:2695
           removeFromQueue @ blueocean.js:5026
           _onStopClick @ blueocean.js:1944
           onClick @ blueocean.js:2020
           invokeGuardedCallback @ blueocean.js:88000
           executeDispatch @ blueocean.js:80124
           executeDispatchesInOrder @ blueocean.js:80144
           executeDispatchesAndRelease @ blueocean.js:79601
           executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
           forEachAccumulated @ blueocean.js:94269
           processEventQueue @ blueocean.js:79788
           runEventQueueInBatch @ blueocean.js:88058
           handleTopLevel @ blueocean.js:88069
           handleTopLevelImpl @ blueocean.js:88136
           perform @ blueocean.js:93653
           batchedUpdates @ blueocean.js:87336
           batchedUpdates @ blueocean.js:91552
           dispatchEvent @ blueocean.js:88213

          \{code}
           * When reloading the page the builds we were trying to stop are either stopped or completed
          James Dumay made changes -
          Description Original: Steps to reproduce the bug (see video [here|https://drive.google.com/open?id=0B8uklOZI9kkqak1VZ1Jwd3J1SVE]):
           * Create a freestyle job in classic with a bash sleep 10 in it

           * Go to its BO version

           * Click on Run several times to have jobs queued

           * Try to stop one of the queued ones

           * Sometimes on stop there is a JS error and the job is not removed

          \{code}

          DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
           request @ blueocean.js:2602
           dedupe @ blueocean.js:7854
           dedupe @ blueocean.js:7877
           rawFetch @ blueocean.js:2620
           fetch @ blueocean.js:2695
           removeFromQueue @ blueocean.js:5026
           _onStopClick @ blueocean.js:1944
           onClick @ blueocean.js:2020
           invokeGuardedCallback @ blueocean.js:88000
           executeDispatch @ blueocean.js:80124
           executeDispatchesInOrder @ blueocean.js:80144
           executeDispatchesAndRelease @ blueocean.js:79601
           executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
           forEachAccumulated @ blueocean.js:94269
           processEventQueue @ blueocean.js:79788
           runEventQueueInBatch @ blueocean.js:88058
           handleTopLevel @ blueocean.js:88069
           handleTopLevelImpl @ blueocean.js:88136
           perform @ blueocean.js:93653
           batchedUpdates @ blueocean.js:87336
           batchedUpdates @ blueocean.js:91552
           dispatchEvent @ blueocean.js:88213

          \{code}
           * When reloading the page the builds we were trying to stop are either stopped or completed
          New: Steps to reproduce the bug (see video [here|https://drive.google.com/open?id=0B8uklOZI9kkqak1VZ1Jwd3J1SVE]):
           * Create a freestyle job in classic with a bash sleep 10 in it

           * Go to its BO version

           * Click on Run several times to have jobs queued

           * Try to stop one of the queued ones

           * Sometimes on stop there is a JS error and the job is not removed

          {code}
          DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
           request @ blueocean.js:2602
           dedupe @ blueocean.js:7854
           dedupe @ blueocean.js:7877
           rawFetch @ blueocean.js:2620
           fetch @ blueocean.js:2695
           removeFromQueue @ blueocean.js:5026
           _onStopClick @ blueocean.js:1944
           onClick @ blueocean.js:2020
           invokeGuardedCallback @ blueocean.js:88000
           executeDispatch @ blueocean.js:80124
           executeDispatchesInOrder @ blueocean.js:80144
           executeDispatchesAndRelease @ blueocean.js:79601
           executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
           forEachAccumulated @ blueocean.js:94269
           processEventQueue @ blueocean.js:79788
           runEventQueueInBatch @ blueocean.js:88058
           handleTopLevel @ blueocean.js:88069
           handleTopLevelImpl @ blueocean.js:88136
           perform @ blueocean.js:93653
           batchedUpdates @ blueocean.js:87336
           batchedUpdates @ blueocean.js:91552
           dispatchEvent @ blueocean.js:88213
          {code}

          When reloading the page the builds we were trying to stop are either stopped or completed
          James Dumay made changes -
          Summary Original: DELETE http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/ 404 (Not Found) when trying to stop a queued build New: Stopping a freestyle job will sometimes fail
          James Dumay made changes -
          Description Original: Steps to reproduce the bug (see video [here|https://drive.google.com/open?id=0B8uklOZI9kkqak1VZ1Jwd3J1SVE]):
           * Create a freestyle job in classic with a bash sleep 10 in it

           * Go to its BO version

           * Click on Run several times to have jobs queued

           * Try to stop one of the queued ones

           * Sometimes on stop there is a JS error and the job is not removed

          {code}
          DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
           request @ blueocean.js:2602
           dedupe @ blueocean.js:7854
           dedupe @ blueocean.js:7877
           rawFetch @ blueocean.js:2620
           fetch @ blueocean.js:2695
           removeFromQueue @ blueocean.js:5026
           _onStopClick @ blueocean.js:1944
           onClick @ blueocean.js:2020
           invokeGuardedCallback @ blueocean.js:88000
           executeDispatch @ blueocean.js:80124
           executeDispatchesInOrder @ blueocean.js:80144
           executeDispatchesAndRelease @ blueocean.js:79601
           executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
           forEachAccumulated @ blueocean.js:94269
           processEventQueue @ blueocean.js:79788
           runEventQueueInBatch @ blueocean.js:88058
           handleTopLevel @ blueocean.js:88069
           handleTopLevelImpl @ blueocean.js:88136
           perform @ blueocean.js:93653
           batchedUpdates @ blueocean.js:87336
           batchedUpdates @ blueocean.js:91552
           dispatchEvent @ blueocean.js:88213
          {code}

          When reloading the page the builds we were trying to stop are either stopped or completed
          New: *Notes*
          I suspect that there is a race condition between the run being queued and then it no longer being in the queue (backend makes a very academic distinction between runs that are executing and are queued). We need to handle this situation gracefully.

          *Original request*
          Steps to reproduce the bug (see video [here|https://drive.google.com/open?id=0B8uklOZI9kkqak1VZ1Jwd3J1SVE]):
           * Create a freestyle job in classic with a bash sleep 10 in it

           * Go to its BO version

           * Click on Run several times to have jobs queued

           * Try to stop one of the queued ones

           * Sometimes on stop there is a JS error and the job is not removed

          {code}
          DELETE [http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/blue/rest/organizations/jenkins/pipelines/isa/queue/578/] 404 (Not Found)
           request @ blueocean.js:2602
           dedupe @ blueocean.js:7854
           dedupe @ blueocean.js:7877
           rawFetch @ blueocean.js:2620
           fetch @ blueocean.js:2695
           removeFromQueue @ blueocean.js:5026
           _onStopClick @ blueocean.js:1944
           onClick @ blueocean.js:2020
           invokeGuardedCallback @ blueocean.js:88000
           executeDispatch @ blueocean.js:80124
           executeDispatchesInOrder @ blueocean.js:80144
           executeDispatchesAndRelease @ blueocean.js:79601
           executeDispatchesAndReleaseTopLevel @ blueocean.js:79612
           forEachAccumulated @ blueocean.js:94269
           processEventQueue @ blueocean.js:79788
           runEventQueueInBatch @ blueocean.js:88058
           handleTopLevel @ blueocean.js:88069
           handleTopLevelImpl @ blueocean.js:88136
           perform @ blueocean.js:93653
           batchedUpdates @ blueocean.js:87336
           batchedUpdates @ blueocean.js:91552
           dispatchEvent @ blueocean.js:88213
          {code}

          When reloading the page the builds we were trying to stop are either stopped or completed
          James Dumay made changes -
          Sprint New: Blue Ocean 1.1 [ 271 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Labels New: technical-debt
          James Dumay made changes -
          Epic Link New: JENKINS-35742 [ 171802 ]
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.1 [ 271 ] New: Blue Ocean 1.0-rc2 [ 261 ]

            jamesdumay James Dumay
            vilacides Isa Vilacides
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: