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

          Denis Zakharov created issue -
          Denis Zakharov made changes -
          Epic Link New: JENKINS-43953 [ 181485 ]
          Denis Zakharov made changes -
          Description Original: We have a visualisation problem in new "Sequential Stages".
          Stage likes completed when it is executed.
          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'
                              }
                          }
                      }
                  }
              }
          }
          New: We have a visualisation problem in new "Sequential Stages".
          Stage likes completed when it is executed.
          Minimal pipeline example:
          {code:java}
          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'
                              }
                          }
                      }
                  }
              }
          }
          {code}
          Devin Nusbaum made changes -
          Attachment New: Screen Shot 2018-09-13 at 16.52.57.png [ 44477 ]

          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:
          Devin Nusbaum made changes -
          Summary Original: [Blue Ocean] New sequential stage likes completed when it is executed New: [Blue Ocean] Sequential stages appear to be completed but are still executing
          Devin Nusbaum made changes -
          Description Original: We have a visualisation problem in new "Sequential Stages".
          Stage likes completed when it is executed.
          Minimal pipeline example:
          {code:java}
          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'
                              }
                          }
                      }
                  }
              }
          }
          {code}
          New: 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:
          {code:java}
          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'
                              }
                          }
                      }
                  }
              }
          }
          {code}
          Devin Nusbaum made changes -
          Labels Original: pipeline windows New: pipeline
          Olivier Lamy made changes -
          Assignee New: Olivier Lamy [ olamy ]

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

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

              Created:
              Updated:
              Resolved: