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

/{view,computer,user}/*/builds & /job/*/buildTimeTrend block HTTP response on build record loading

      Computer/builds.jelly calls Computer.getBuilds which first looks up all Job instances—probably not too expensive—then creates a merged RunList from them—again OK, as this is lazy—then calls the node(Node) filter. The filter is incremental, but if most builds were not on this computer, it would load many more than the limit of 50 in t:buildListTable before it finds some to display.

      Trimming the merged list before filtering would solve that problem (making this perform much like View/builds.jelly), but then you might not see anywhere near 50 builds, or indeed any at all, even when there are some (older) builds run on this computer.

      User/builds.jelly calls User.getBuilds which does not even bother using an incremental filter. It does use newBuilds to limit how many builds are considered per job, but then scans all of those at once for mentions of the current user.

      Ideally all such displays would show all applicable builds, but use ProgressiveRendering so that build records are only loaded in a background thread and only so long as you keep the page open. (Compare AsynchPeople.)

          [JENKINS-20892] /{view,computer,user}/*/builds & /job/*/buildTimeTrend block HTTP response on build record loading

          Jesse Glick created issue -
          Jesse Glick made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Summary Original: /computer/*/builds and /user/*/builds block HTTP response on build record loading New: /{view,computer,user}/*/builds block HTTP response on build record loading
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-18992 [ JENKINS-18992 ]
          Jesse Glick made changes -
          Summary Original: /{view,computer,user}/*/builds block HTTP response on build record loading New: /{view,computer,user}/*/builds & /job/*/buildTimeTrend block HTTP response on build record loading
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Dominik Bartholdi made changes -
          Link New: This issue is related to JENKINS-21159 [ JENKINS-21159 ]
          Daniel Beck made changes -
          Labels Original: lazy-loading performance New: lazy-loading lts-candidate performance
          Oliver Gondža made changes -
          Labels Original: lazy-loading lts-candidate performance New: 1.532.3-fixed lazy-loading performance

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

              Created:
              Updated:
              Resolved: