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

Stage view renders incorrectly with stages appearing multiple times.

      Attached is a screenshot of the stage view rendering weird. Sometimes refreshing the page helps (but not always!).

      Our jenkinsfile essentially looks like this:

      #!groovy
      
      node('linux') {
          stage("Checkout") {
              commitTag = checkout...
          }
      
          stage("Build") {
              parallel (
                  // ....
              )
          }
      }
      
      stage("Docker") {
          node('docker') {
              // ....
          }
      }
      
      stage("Tests") {
          parallel (
              // ....
          )
      }
      
      

      Javascript console shows this log:

      stageview.js:4557 No "data-stageId" on stage.
      stageview.js:4557 No "data-stageId" on stage.
      

      but this doesn't seem to be related to the issue.

          [JENKINS-38765] Stage view renders incorrectly with stages appearing multiple times.

          Nick Sonneveld created issue -
          Nick Sonneveld made changes -
          Attachment New: jenkins_weird_stage_rendering_2.png [ 34260 ]
          Nick Sonneveld made changes -
          Description Original: Attached is a screenshot of the stage view rendering weird. The time for the current stage doesn't seem to update either.

          Our jenkinsfile essentially looks like this:

          {noformat}
          #!groovy

          node('linux') {
              stage("Checkout") {
                  commitTag = swcheckout(false)
              }

              stage("Build") {
                  parallel (
                      // ....
                  )
              }
          }

          stage("Docker") {
              node('docker') {
                  // ....
              }
          }

          stage("Tests") {
              parallel (
                  // ....
              )
          }

          {noformat}
          New: Attached is a screenshot of the stage view rendering weird. The time for the current stage doesn't seem to update either. Sometimes refreshing the page helps.

          Our jenkinsfile essentially looks like this:

          {noformat}
          #!groovy

          node('linux') {
              stage("Checkout") {
                  commitTag = checkout...
              }

              stage("Build") {
                  parallel (
                      // ....
                  )
              }
          }

          stage("Docker") {
              node('docker') {
                  // ....
              }
          }

          stage("Tests") {
              parallel (
                  // ....
              )
          }

          {noformat}

          Javascript console shows this log:

          {noformat}
          stageview.js:4557 No "data-stageId" on stage.
          stageview.js:4557 No "data-stageId" on stage.
          {noformat}
          Nick Sonneveld made changes -
          Description Original: Attached is a screenshot of the stage view rendering weird. The time for the current stage doesn't seem to update either. Sometimes refreshing the page helps.

          Our jenkinsfile essentially looks like this:

          {noformat}
          #!groovy

          node('linux') {
              stage("Checkout") {
                  commitTag = checkout...
              }

              stage("Build") {
                  parallel (
                      // ....
                  )
              }
          }

          stage("Docker") {
              node('docker') {
                  // ....
              }
          }

          stage("Tests") {
              parallel (
                  // ....
              )
          }

          {noformat}

          Javascript console shows this log:

          {noformat}
          stageview.js:4557 No "data-stageId" on stage.
          stageview.js:4557 No "data-stageId" on stage.
          {noformat}
          New: Attached is a screenshot of the stage view rendering weird. The time for the current stage doesn't seem to update either. Sometimes refreshing the page helps (but not always!).

          Our jenkinsfile essentially looks like this:

          {noformat}
          #!groovy

          node('linux') {
              stage("Checkout") {
                  commitTag = checkout...
              }

              stage("Build") {
                  parallel (
                      // ....
                  )
              }
          }

          stage("Docker") {
              node('docker') {
                  // ....
              }
          }

          stage("Tests") {
              parallel (
                  // ....
              )
          }

          {noformat}

          Javascript console shows this log:

          {noformat}
          stageview.js:4557 No "data-stageId" on stage.
          stageview.js:4557 No "data-stageId" on stage.
          {noformat}

          Sam Van Oort added a comment -

          sonneveldsmartward If by "time doesn't update" do you mean that the runtime of a stage which includes a parallel does not update? But others do?

          If so, that's JENKINS-38536 - I've got a code fix in place that's just pending the final merge/release to be incorporated.

          > No data-stageId on stage

          That's a known issue: JENKINS-37910 - shouldn't be particularly impactful AFAIK.

          Sam Van Oort added a comment - sonneveldsmartward If by "time doesn't update" do you mean that the runtime of a stage which includes a parallel does not update? But others do? If so, that's JENKINS-38536 - I've got a code fix in place that's just pending the final merge/release to be incorporated. > No data-stageId on stage That's a known issue: JENKINS-37910 - shouldn't be particularly impactful AFAIK.

          svanoort Yes I think that's what I mean. Most of our stages involve a parallel step so I didn't think to blame that for the lack of updates. I'll update ticket to only include rendering issues.

          Nick Sonneveld added a comment - svanoort Yes I think that's what I mean. Most of our stages involve a parallel step so I didn't think to blame that for the lack of updates. I'll update ticket to only include rendering issues.
          Nick Sonneveld made changes -
          Summary Original: Stage view renders incorrectly and time doesn't update in real time. New: Stage view renders incorrectly with stages appearing multiple times.
          Nick Sonneveld made changes -
          Description Original: Attached is a screenshot of the stage view rendering weird. The time for the current stage doesn't seem to update either. Sometimes refreshing the page helps (but not always!).

          Our jenkinsfile essentially looks like this:

          {noformat}
          #!groovy

          node('linux') {
              stage("Checkout") {
                  commitTag = checkout...
              }

              stage("Build") {
                  parallel (
                      // ....
                  )
              }
          }

          stage("Docker") {
              node('docker') {
                  // ....
              }
          }

          stage("Tests") {
              parallel (
                  // ....
              )
          }

          {noformat}

          Javascript console shows this log:

          {noformat}
          stageview.js:4557 No "data-stageId" on stage.
          stageview.js:4557 No "data-stageId" on stage.
          {noformat}
          New: Attached is a screenshot of the stage view rendering weird. Sometimes refreshing the page helps (but not always!).

          Our jenkinsfile essentially looks like this:

          {noformat}
          #!groovy

          node('linux') {
              stage("Checkout") {
                  commitTag = checkout...
              }

              stage("Build") {
                  parallel (
                      // ....
                  )
              }
          }

          stage("Docker") {
              node('docker') {
                  // ....
              }
          }

          stage("Tests") {
              parallel (
                  // ....
              )
          }

          {noformat}

          Javascript console shows this log:

          {noformat}
          stageview.js:4557 No "data-stageId" on stage.
          stageview.js:4557 No "data-stageId" on stage.
          {noformat}

          but this doesn't seem to be related to the issue.
          David van Laatum made changes -
          Attachment New: screenshot-1.png [ 34673 ]
          David van Laatum made changes -
          Attachment New: ajax.json [ 34674 ]

            Unassigned Unassigned
            sonneveldsmartward Nick Sonneveld
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: