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

Improved visualization for multiple "parallel"s within the same stage block

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time

      There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

      The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage. However, this is currently not working due to a bug in pipeline - see JENKINS-39839.

      The following pipeline

      node {
        stage('S1') {  
          parallel 'S1.0': { sh('sleep 10') }
          
          parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
        }
          stage('S2') {  
          parallel 'S2.0': { sh('sleep 10') }
          
          parallel 'S2.1': { sh('sleep 10') }
        }
      }
      

      Is represented as this:

      • S1.0 is not displayed
      • S2.0 and S2.1 should be under stage 2
      • S2.0 and S2.1 are not marked as finished

      Additional note:
      Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605

        Attachments

          Issue Links

            Activity

            roidelapluie Julien Pivotto created issue -
            roidelapluie Julien Pivotto made changes -
            Field Original Value New Value
            Description The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            Hide
            roidelapluie Julien Pivotto added a comment -

            before you ask why we should support single // — this is because the content of // might be autogenerated (by code or anything else)

            Show
            roidelapluie Julien Pivotto added a comment - before you ask why we should support single // — this is because the content of // might be autogenerated (by code or anything else)
            Hide
            vivek Vivek Pandey added a comment -

            Julien Pivotto blueocean uses workflow-api to build DAG that serves visualization. In this case, one of the event is not fired during parsing and that breaks things up. I have a ticket opened https://issues.jenkins-ci.org/browse/JENKINS-39839, have added comment and referenced your test case. Once its fixed its expected to work fine.

            Show
            vivek Vivek Pandey added a comment - Julien Pivotto blueocean uses workflow-api to build DAG that serves visualization. In this case, one of the event is not fired during parsing and that breaks things up. I have a ticket opened https://issues.jenkins-ci.org/browse/JENKINS-39839 , have added comment and referenced your test case. Once its fixed its expected to work fine.
            vivek Vivek Pandey made changes -
            Link This issue is blocked by JENKINS-39839 [ JENKINS-39839 ]
            Hide
            roidelapluie Julien Pivotto added a comment -

            Thanks

            Show
            roidelapluie Julien Pivotto added a comment - Thanks
            michaelneale Michael Neale made changes -
            Epic Link JENKINS-35750 [ 171713 ]
            Hide
            michaelneale Michael Neale added a comment -

            Great - not sure how this would visually look, as it is all grouped in one stage column.

            THis means that even when all steps show up, it won't be helpful. So while that fix may help, the recommendation is to only have 1 parallel per stage.

            Show
            michaelneale Michael Neale added a comment - Great - not sure how this would visually look, as it is all grouped in one stage column. THis means that even when all steps show up, it won't be helpful. So while that fix may help, the recommendation is to only have 1 parallel per stage.
            vivek Vivek Pandey made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ]
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ]
            jamesdumay James Dumay made changes -
            Description The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            {panel:title=Support for multiple "parallel" within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            jamesdumay James Dumay made changes -
            Description {panel:title=Support for multiple "parallel" within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            jamesdumay James Dumay made changes -
            Summary Misrepresentation of multiple parallels Improved visualization for multiple "parallel"s within the same stage block
            jamesdumay James Dumay made changes -
            Description {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

            The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            jamesdumay James Dumay made changes -
            Description {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

            The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

            The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage by this is currently not working due to by a bug in pipeline - see JENKINS-39839.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            jamesdumay James Dumay made changes -
            Description {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

            The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage by this is currently not working due to by a bug in pipeline - see JENKINS-39839.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

            The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage. However, this is currently not working due to by a bug in pipeline - see JENKINS-39839.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            jamesdumay James Dumay made changes -
            Description {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

            The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage. However, this is currently not working due to by a bug in pipeline - see JENKINS-39839.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
            There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

            The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage. However, this is currently not working due to a bug in pipeline - see JENKINS-39839.
            {panel}


            The following pipeline

            {code}
            node {
              stage('S1') {
                parallel 'S1.0': { sh('sleep 10') }
                
                parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
              }
                stage('S2') {
                parallel 'S2.0': { sh('sleep 10') }
                
                parallel 'S2.1': { sh('sleep 10') }
              }
            }
            {code}


            Is represented as this: !piprep.png|thumbnail!

            - S1.0 is not displayed
            - S2.0 and S2.1 should be under stage 2
            - S2.0 and S2.1 are not marked as finished


            Additional note:
            Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Issue Type Bug [ 1 ] Improvement [ 4 ]
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-35750 [ 171713 ] JENKINS-43953 [ 181485 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              roidelapluie Julien Pivotto
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: