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

[Blue Ocean] Sequential stages appear to be completed but are still executing

    Details

    • Similar Issues:

      Description

      We have a visualisation problem in new "Sequential Stages".
      In some cases, sequential stages get a green check mark and appear to be completed even though they are still executing.
      Minimal pipeline example:

      pipeline {
      agent any
           stages {
              stage('Parallel') {
                  failFast false
                  parallel {
                      stage('Nested B') {
                          stages {
                              stage('Nested B-1') {
                                  steps {
                                      echo 'Nested A-1'
                                  }
                              }
                              stage('Nested B-2') {
                                  steps {
                                      sleep time: 5, unit: 'MINUTES'
                                  }
                              }
                          }
                      }
                      stage('Nested C') {
                          when {
                              expression { false == true }
                          }
                          stages {
                              stage('Nested C-1') {
                                  steps {
                                      echo 'Nested C-1'                               
                                  }
                              }
                              stage('Nested C-2') {
                                  steps {
                                      echo 'Nested C-2'                               
                                  }
                              }
                          }
                      }
                      stage('Nested A') {
                          steps {
                              sleep time: 5, unit: 'MINUTES'
                          }
                      }
                  }
              }
          }
      }
      

        Attachments

        1. jenkinsBug.jpg
          32 kB
          Denis Zakharov
        2. Screen Shot 2018-09-13 at 16.52.57.png
          133 kB
          Devin Nusbaum

          Issue Links

            Activity

            Hide
            dnusbaum Devin Nusbaum added a comment -

            I spent a few minutes reproducing this today. It looks like a legitimate bug. I will update the title and description to make them a little clearer. Here is the most minimal test case I could come up with:

            pipeline {
                agent any
                stages {
                    stage('Parallel') {
                        parallel {
                            stage('Nested A') {
                                steps {
                                    echo 'A'
                                }
                            }
                            stage('Nested B') {
                                stages {
                                    stage('Nested B-1') {
                                        steps {
                                            sleep time: 1, unit: 'MINUTES'
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            

            And here is a screenshot that showing that Nested B-1 has a green check mark even though it is still executing:

            Show
            dnusbaum Devin Nusbaum added a comment - I spent a few minutes reproducing this today. It looks like a legitimate bug. I will update the title and description to make them a little clearer. Here is the most minimal test case I could come up with: pipeline { agent any stages { stage( 'Parallel' ) { parallel { stage( 'Nested A' ) { steps { echo 'A' } } stage( 'Nested B' ) { stages { stage( 'Nested B-1' ) { steps { sleep time: 1, unit: 'MINUTES' } } } } } } } } And here is a screenshot that showing that Nested B-1 has a green check mark even though it is still executing:
            Hide
            olamy Olivier Lamy added a comment -

            weird as the parent node ('Nested B') has correct status RUNNING but not 'Nested B-1'.

            Show
            olamy Olivier Lamy added a comment - weird as the parent node ('Nested B') has correct status RUNNING but not 'Nested B-1'.
            Show
            olamy Olivier Lamy added a comment - pr opened https://github.com/jenkinsci/blueocean-plugin/pull/1807  
            Hide
            henryborchers Henry Borchers added a comment -

            sorry, i accidentally clicked assign to me.  didn't mean to and I'm not sure how to revert to the original setting

            Show
            henryborchers Henry Borchers added a comment - sorry, i accidentally clicked assign to me.  didn't mean to and I'm not sure how to revert to the original setting
            Hide
            zakharovdi Denis Zakharov added a comment -

            Thank you for nice work, Olivier. Can we get it in 1.8.x?

            Show
            zakharovdi Denis Zakharov added a comment - Thank you for nice work, Olivier. Can we get it in 1.8.x?
            Hide
            trane9991 Taras Postument added a comment -

            Fix seems to be released in 1.8.3 but I can't say it fixes the issue for me.

            Sometimes steps status displayed correctly and sometimes it shows that no steps are running at all.

             

            Also, it seems like on the UI if I select the running step I can't see its details.

            Show
            trane9991 Taras Postument added a comment - Fix seems to be released in 1.8.3 but I can't say it fixes the issue for me. Sometimes steps status displayed correctly and sometimes it shows that no steps are running at all.   Also, it seems like on the UI if I select the running step I can't see its details.
            Hide
            olamy Olivier Lamy added a comment -

            Taras Postument please open an other issue and provide some screenshot/logs or anything to reproduce the issue....

            Show
            olamy Olivier Lamy added a comment - Taras Postument please open an other issue and provide some screenshot/logs or anything to reproduce the issue....
            Hide
            trane9991 Taras Postument added a comment -

            Olivier Lamy I will once I gather more info. It seems too random for me now

            Show
            trane9991 Taras Postument added a comment - Olivier Lamy I will once I gather more info. It seems too random for me now

              People

              • Assignee:
                olamy Olivier Lamy
                Reporter:
                zakharovdi Denis Zakharov
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: