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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • blueocean-plugin
    • Jenkins LTS 2.121.3
      Blue ocean 1.8.2

      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'
                          }
                      }
                  }
              }
          }
      }
      

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

          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:

          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:

          Olivier Lamy added a comment -

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

          Olivier Lamy added a comment - weird as the parent node ('Nested B') has correct status RUNNING but not 'Nested B-1'.

          Olivier Lamy added a comment -

          Olivier Lamy added a comment - pr opened https://github.com/jenkinsci/blueocean-plugin/pull/1807  

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

          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

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

          Denis Zakharov added a comment - Thank you for nice work, Olivier. Can we get it in 1.8.x?

          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.

          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.

          Olivier Lamy added a comment -

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

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

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

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

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

              Created:
              Updated:
              Resolved: