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

Stage graph in Blue Ocean not showing all stages for large workflows

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Critical
    • Resolution: Fixed
    • blueocean-plugin
    • Jenkins: 2.138.1
      Blue Ocean: 1.8.3
      OS: RHEL7.2
      Browser: Google Chrome

    Description

      Stage graph in Blue Ocean not showing all stages for large workflows.
      As shown in below pipeline the last 2 parallel stages are missing in Blue Ocean noting that they were executed.

      you can find the code as per the attached.

       

       

      Attachments

        Issue Links

          Activity

            sophistifunk Josh McDonald added a comment -

            Progress of a sort, it seems to be a backend issue, not a front-end issue like I first thought. Switching focus there

            sophistifunk Josh McDonald added a comment - Progress of a sort, it seems to be a backend issue, not a front-end issue like I first thought. Switching focus there
            sophistifunk Josh McDonald added a comment -

            Righto, good progress, I've built a minimal pipeline that generates the issue reliably, and figured out the trigger: https://gist.github.com/sophistifunk/39cec79eb7d353b67bd70b75a61f95bc

             

            It seems that any time you have all of these conditions:

            1. A parallel stage
            2. The last parallel branch (in file order) is nested in a sequential wrapper, ie:
              stage('foo') { stages { /*...*/ } }
            1. The sequential wrapper only has one child stage

            Then the generated graph data is broken for nodes coming after the offending top-level stage.

             

            The problem is (almost certainly) in Blue Ocean server, or (far less likely) the Pipeline plugin. I'll find out which one and get a fix in, should be a small change once I identify the right spot.

            sophistifunk Josh McDonald added a comment - Righto, good progress, I've built a minimal pipeline that generates the issue reliably, and figured out the trigger: https://gist.github.com/sophistifunk/39cec79eb7d353b67bd70b75a61f95bc   It seems that any time you have all of these conditions: A parallel stage The last parallel branch (in file order) is nested in a sequential wrapper, ie: stage( 'foo' ) { stages { /*...*/ } } The sequential wrapper only has one child stage Then the generated graph data is broken for nodes coming after the offending top-level stage.   The problem is (almost certainly) in Blue Ocean server, or (far less likely) the Pipeline plugin. I'll find out which one and get a fix in, should be a small change once I identify the right spot.
            sophistifunk Josh McDonald added a comment -

            PR (waiting on some dogfood issues for building) https://github.com/jenkinsci/blueocean-plugin/pull/1836

            sophistifunk Josh McDonald added a comment - PR (waiting on some dogfood issues for building)  https://github.com/jenkinsci/blueocean-plugin/pull/1836
            sophistifunk Josh McDonald added a comment -

            Fixed in master @ e49553f1c8792e4e6f74285d3f8377a8f4ec3d99

            sophistifunk Josh McDonald added a comment - Fixed in master @ e49553f1c8792e4e6f74285d3f8377a8f4ec3d99
            ekassis Elie Kassis added a comment -

            thank you sophistifunk!

            Can you please help me with JENKINS-53735 since noone is replying ?

            ekassis Elie Kassis added a comment - thank you sophistifunk ! Can you please help me with JENKINS-53735  since noone is replying ?

            People

              sophistifunk Josh McDonald
              ekassis Elie Kassis
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: