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

Developer can see running pipelines on the Pipeline summary views

    • 1.0-japan-m9

      In Scope

      • Executing pipelines show with a blue circular indicator that slowly fills in
      • Duration column should display the current time it has been running and update dynamically
      • Completed column should contain an em dash
      • Page should not need to be refreshed for new runs to appear
      • Time ago should tick over (increase with time as the page is open)
      • When a run finishes it should appear in the list with the correct status icon

          [JENKINS-35802] Developer can see running pipelines on the Pipeline summary views

          James Dumay added a comment -

          This still needs another ticket for how we want to drive this from the backend.

          James Dumay added a comment - This still needs another ticket for how we want to drive this from the backend.

          Michael Neale added a comment -

          This is now unblocked.

          https://github.com/cloudbees/blueocean/tree/master/blueocean-rest#get-a-run-details also has the data needed I believe to display percentage completion.

          /run/x has:

            "estimatedDurationInMillis" : 567,
          ..
            "startTime": "2016-03-16T09:02:26.498-0700",
          }
          

          completion-ness can be calculated from this: (current Time (browser) - startTime) / estimated

          Is this reasonable for estimated for runs? we have SSE updating the rows dynamically for their state, so the updating of progress can ideally be done entirely client side (if it finishes on the server, the change will be pushed, so no need to refresh to get progress).
          jmcdonald jdumay

          Michael Neale added a comment - This is now unblocked. https://github.com/cloudbees/blueocean/tree/master/blueocean-rest#get-a-run-details also has the data needed I believe to display percentage completion. /run/x has: "estimatedDurationInMillis" : 567, .. "startTime": "2016-03-16T09:02:26.498-0700", } completion-ness can be calculated from this: (current Time (browser) - startTime) / estimated Is this reasonable for estimated for runs? we have SSE updating the rows dynamically for their state, so the updating of progress can ideally be done entirely client side (if it finishes on the server, the change will be pushed, so no need to refresh to get progress). jmcdonald jdumay

          Josh McDonald added a comment -

          Important (in case I'm not the one doing this): Don't use `startTime`, use `durationInMillis`.

          Josh McDonald added a comment - Important (in case I'm not the one doing this) : Don't use `startTime`, use `durationInMillis`.

          James Dumay added a comment -

          ataylor this isn't the best ticket to link to for that Zendesk but UX-393 and UX-78 would be.

          James Dumay added a comment - ataylor this isn't the best ticket to link to for that Zendesk but UX-393 and UX-78 would be.

          Michael Neale added a comment -

          jmcdonald when it is executing, you can't use durationInMillis as that means you have to fetch it each time to update (also, I am not sure if the duration is set until the run is resolved) - so do not thing that is right.

          Michael Neale added a comment - jmcdonald when it is executing, you can't use durationInMillis as that means you have to fetch it each time to update (also, I am not sure if the duration is set until the run is resolved) - so do not thing that is right.

          Josh McDonald added a comment -

          Just start counting locally once you get your result, and update it as SSEs come in. The results will be way more accurate than trusting that both the server and the client have their clocks set accurately.

          Josh McDonald added a comment - Just start counting locally once you get your result, and update it as SSEs come in. The results will be way more accurate than trusting that both the server and the client have their clocks set accurately.

            cliffmeyers Cliff Meyers
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: