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

Investigate performance of Pipeline /activity and /runs REST endpoint

    XMLWordPrintable

    Details

    • Similar Issues:
    • Epic Link:
    • Sprint:
      arctic, tasman

      Description

      The /activity and /runs endpoints have been reported to take up to 28 seconds on some Jenkins masters.

      Tracing through the code, it looks like io.jenkins.blueocean.service.embedded.rest.RunContainerImpl#get will load all the runs using hudson.model.Job#getBuilds() for the Job then applies the pagination.

      However, there is a method hudson.model.Job#getBuilds(hudson.model.Fingerprint.RangeSet) that will allow us to fetch a range of data which would be suitable for pagination.

        Attachments

          Issue Links

            Activity

            jamesdumay James Dumay created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Epic Link JENKINS-37957 [ 174099 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "Customer data (Web Link)" [ 15039 ]
            jamesdumay James Dumay made changes -
            Description The {{/activity}} and {{/runs}} endpoints have been reported to take up to 28 seconds on some Jenkins masters.

            Tracing through the code, it looks like {{io.jenkins.blueocean.service.embedded.rest.RunContainerImpl#get}} will load all the runs using {{hudson.model.Job#getBuilds()}} for the Job then apply the pagination.

            However, there is a method {{hudson.model.Job#getBuilds(hudson.model.Fingerprint.RangeSet)}} that will allow us to fetch a range of data which would be suitable for pagination.
            The {{/activity}} and {{/runs}} endpoints have been reported to take up to 28 seconds on some Jenkins masters.

            Tracing through the code, it looks like {{io.jenkins.blueocean.service.embedded.rest.RunContainerImpl#get}} will *load all the runs* using {{hudson.model.Job#getBuilds()}} for the Job *then apply the pagination*.

            However, there is a method {{hudson.model.Job#getBuilds(hudson.model.Fingerprint.RangeSet)}} that will allow us to fetch a range of data which would be suitable for pagination.
            jamesdumay James Dumay made changes -
            Description The {{/activity}} and {{/runs}} endpoints have been reported to take up to 28 seconds on some Jenkins masters.

            Tracing through the code, it looks like {{io.jenkins.blueocean.service.embedded.rest.RunContainerImpl#get}} will *load all the runs* using {{hudson.model.Job#getBuilds()}} for the Job *then apply the pagination*.

            However, there is a method {{hudson.model.Job#getBuilds(hudson.model.Fingerprint.RangeSet)}} that will allow us to fetch a range of data which would be suitable for pagination.
            The {{/activity}} and {{/runs}} endpoints have been reported to take up to 28 seconds on some Jenkins masters.

            Tracing through the code, it looks like {{io.jenkins.blueocean.service.embedded.rest.RunContainerImpl#get}} will *load all the runs* using {{hudson.model.Job#getBuilds()}} for the Job *then applies the pagination*.

            However, there is a method {{hudson.model.Job#getBuilds(hudson.model.Fingerprint.RangeSet)}} that will allow us to fetch a range of data which would be suitable for pagination.
            tfennelly Tom FENNELLY made changes -
            Assignee Tom FENNELLY [ tfennelly ]
            tfennelly Tom FENNELLY made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            michaelneale Michael Neale made changes -
            Sprint arctic [ 131 ]
            michaelneale Michael Neale made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            michaelneale Michael Neale made changes -
            Assignee Tom FENNELLY [ tfennelly ] Vivek Pandey [ vivek ]
            michaelneale Michael Neale made changes -
            Link This issue relates to JENKINS-39737 [ JENKINS-39737 ]
            tfennelly Tom FENNELLY made changes -
            Link This issue is blocking JENKINS-39625 [ JENKINS-39625 ]
            jamesdumay James Dumay made changes -
            Link This issue is blocking JENKINS-39625 [ JENKINS-39625 ]
            vivek Vivek Pandey made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            vivek Vivek Pandey made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jamesdumay James Dumay made changes -
            Sprint arctic [ 131 ] arctic, tasman [ 131, 136 ]
            vivek Vivek Pandey made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal UX-583 (Web Link)" [ 18214 ]

              People

              Assignee:
              vivek Vivek Pandey
              Reporter:
              jamesdumay James Dumay
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: