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

Execution time of parallel blocks of in-flight jobs wrong

    Details

    • Similar Issues:

      Description

      Desired behaviour

      • Duration should be 20s for the whole pipeline.
      • ed1 node duration should be 20s
      • ed2 node duration should be 10s

      Undesired behaviour

      • Duration should be 20s for the whole pipeline.
      • ed1 node duration should be 20s
      • ed2 node duration should be 10s but is reported as 20s

      Example

      def map = [:]
      
      map['ed1'] = {
          node() {
              sleep 20
          }
      }
      
      map['ed2'] = {
          node() {
              sleep 10
          }
      }
      
      stage('Stage 1') {
          parallel map
      }
      

      Original request
      Hi,

      the execution time of a stage containing two parallel jobs shows, after the first job has finished, only the execution time of the first job, as long as the second job is running.
      After the second job has finished, the displayed time is updated to the right runtime.

      It would be nice if the time could be right during the execution of the job as well.

        Attachments

          Issue Links

            Activity

            cri Cornelius Riemenschneider created issue -
            svanoort Sam Van Oort made changes -
            Field Original Value New Value
            Component/s pipeline-graph-analysis-plugin [ 21693 ]
            Component/s pipeline-stage-view-plugin [ 21139 ]
            svanoort Sam Van Oort made changes -
            Component/s pipeline-stage-view-plugin [ 21139 ]
            svanoort Sam Van Oort made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            svanoort Sam Van Oort made changes -
            Component/s workflow-api-plugin [ 21711 ]
            Component/s pipeline-graph-analysis-plugin [ 21693 ]
            svanoort Sam Van Oort made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            svanoort Sam Van Oort made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jamesdumay James Dumay made changes -
            Link This issue blocks JENKINS-39158 [ JENKINS-39158 ]
            jamesdumay James Dumay made changes -
            Labels blueocean
            svanoort Sam Van Oort made changes -
            Component/s pipeline-stage-view-plugin [ 21139 ]
            svanoort Sam Van Oort made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            svanoort Sam Van Oort made changes -
            Link This issue is duplicated by JENKINS-40031 [ JENKINS-40031 ]
            svanoort Sam Van Oort made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            jochenafuerbacher Jochen A. F├╝rbacher made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Link This issue is blocked by JENKINS-41685 [ JENKINS-41685 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 20 (Web Link)" [ 15374 ]
            svanoort Sam Van Oort made changes -
            Status Reopened [ 4 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            bth Bruno Thomsen made changes -
            jamesdumay James Dumay made changes -
            Attachment timing.gif [ 37805 ]
            jamesdumay James Dumay made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jamesdumay James Dumay made changes -
            Description Hi,

            the execution time of a stage containing two parallel jobs shows, after the first job has finished, only the execution time of the first job, as long as the second job is running.
            After the second job has finished, the displayed time is updated to the right runtime.

            It would be nice if the time could be right during the execution of the job as well.
            *What you should see*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s

            *What you currently see*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s *but is reported as 20s*


            *Example*
            {code}
            def map = [:]

            map['ed1'] = {
                node() {
                    sleep 20
                }
            }

            map['ed2'] = {
                node() {
                    sleep 10
                }
            }

            stage('Stage 1') {
                parallel map
            }
            {code}

            *Original request*
            Hi,

            the execution time of a stage containing two parallel jobs shows, after the first job has finished, only the execution time of the first job, as long as the second job is running.
            After the second job has finished, the displayed time is updated to the right runtime.

            It would be nice if the time could be right during the execution of the job as well.
            jamesdumay James Dumay made changes -
            Description *What you should see*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s

            *What you currently see*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s *but is reported as 20s*


            *Example*
            {code}
            def map = [:]

            map['ed1'] = {
                node() {
                    sleep 20
                }
            }

            map['ed2'] = {
                node() {
                    sleep 10
                }
            }

            stage('Stage 1') {
                parallel map
            }
            {code}

            *Original request*
            Hi,

            the execution time of a stage containing two parallel jobs shows, after the first job has finished, only the execution time of the first job, as long as the second job is running.
            After the second job has finished, the displayed time is updated to the right runtime.

            It would be nice if the time could be right during the execution of the job as well.
            *Desired behaviour*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s

            *Undesired behaviour*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s *but is reported as 20s*


            *Example*
            {code}
            def map = [:]

            map['ed1'] = {
                node() {
                    sleep 20
                }
            }

            map['ed2'] = {
                node() {
                    sleep 10
                }
            }

            stage('Stage 1') {
                parallel map
            }
            {code}

            *Original request*
            Hi,

            the execution time of a stage containing two parallel jobs shows, after the first job has finished, only the execution time of the first job, as long as the second job is running.
            After the second job has finished, the displayed time is updated to the right runtime.

            It would be nice if the time could be right during the execution of the job as well.
            jamesdumay James Dumay made changes -
            Description *Desired behaviour*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s

            *Undesired behaviour*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s *but is reported as 20s*


            *Example*
            {code}
            def map = [:]

            map['ed1'] = {
                node() {
                    sleep 20
                }
            }

            map['ed2'] = {
                node() {
                    sleep 10
                }
            }

            stage('Stage 1') {
                parallel map
            }
            {code}

            *Original request*
            Hi,

            the execution time of a stage containing two parallel jobs shows, after the first job has finished, only the execution time of the first job, as long as the second job is running.
            After the second job has finished, the displayed time is updated to the right runtime.

            It would be nice if the time could be right during the execution of the job as well.
            *Desired behaviour*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s

            *Undesired behaviour*
            * Duration should be 20s for the whole pipeline.
            * ed1 node duration should be 20s
            * ed2 node duration should be 10s *but is reported as 20s*

            !timing.gif!

            *Example*
            {code}
            def map = [:]

            map['ed1'] = {
                node() {
                    sleep 20
                }
            }

            map['ed2'] = {
                node() {
                    sleep 10
                }
            }

            stage('Stage 1') {
                parallel map
            }
            {code}

            *Original request*
            Hi,

            the execution time of a stage containing two parallel jobs shows, after the first job has finished, only the execution time of the first job, as long as the second job is running.
            After the second job has finished, the displayed time is updated to the right runtime.

            It would be nice if the time could be right during the execution of the job as well.
            jamesdumay James Dumay made changes -
            Link This issue relates to JENKINS-43746 [ JENKINS-43746 ]
            svanoort Sam Van Oort made changes -
            Priority Major [ 3 ] Minor [ 4 ]
            svanoort Sam Van Oort made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            svanoort Sam Van Oort made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            svanoort Sam Van Oort made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal OSS-2262 (Web Link)" [ 18371 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1538 (Web Link)" [ 18660 ]
            jiangty_addepar Damien Jiang made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jiangty_addepar Damien Jiang made changes -
            Link This issue duplicates JENKINS-51208 [ JENKINS-51208 ]
            jiangty_addepar Damien Jiang made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]

              People

              • Assignee:
                svanoort Sam Van Oort
                Reporter:
                cri Cornelius Riemenschneider
              • Votes:
                4 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: