-
New Feature
-
Resolution: Duplicate
-
Minor
-
Jenkins Enterprise
The pipeline job report shows incorrect message "building on an executor" . Please see the attached file.
Current status and reproducing the issue:
-------------------------------------------------------
Create a pipeline job with below simple script:
echo "" + new java.util.Date() timeout(3) { node ('windows && linux') { // should no be satisfiable and will spend 3 minutes in the queue before the timeout abort "impossible" } }
After running the pipeline job, it waits for the build to timeout. It should have spent at least 3 minutes (the initial queue time + 3 minutes waiting for a slave to match windows && linux) in the queue - rather than running.
Look at the time reported by the job
- 9 ms waiting in the queue;
* 3 min 0 sec building on an executor;- 3 min 0 sec total from scheduled to completion.
The report in not correct for 3 min 0 sec building on an executor; and it needs to change to 3 min 0 sec executing the pipeline because executing the pipleine != building on an executor
Now I'm guessing someone will point out that whilst it was waiting for a node it was actually running the CPS thread so it was running - but that is really just an implementation detail and not what users expect to see.
Now the interesting part would come with steps in parallel
- should it sum up all time spent waiting for all nodes, and the build time is that a sum of the build time on all slaves - such that a build could have finished in 10 minutes but report 20 minutes waiting in the queue and 45 minutes building on an executor...
I think the reporting here needs to be changed to be pipeline specific at least so it says:
* 9 ms initially waiting in the queue; * 3 min 0 sec executing the pipeline; < executing the pipleine != building on an executor) * 3 min 0 sec total from scheduled to completion.
- is related to
-
JENKINS-52074 Metrics plugin does not track pipeline queuing time correctly
-
- Resolved
-
-
JENKINS-42416 Metrics should include Pipeline "node()" sections.
-
- Closed
-
-
JENKINS-52075 Track the cumulative execution time of Pipeline jobs
-
- Resolved
-
- links to
[JENKINS-35630] Building on an executor for Pipeline job is incorrect
Component/s | New: metrics-plugin [ 18751 ] | |
Component/s | Original: workflow-plugin [ 18820 ] | |
Assignee | Original: Jesse Glick [ jglick ] | |
Labels | New: workflow |
Workflow | Original: JNJira [ 171977 ] | New: JNJira + In-Review [ 184534 ] |
Labels | Original: workflow | New: pipeline workflow |
Labels | Original: pipeline workflow | New: pipeline |
Issue Type | Original: Bug [ 1 ] | New: New Feature [ 2 ] |
Link |
New:
This issue is related to |
Remote Link | New: This issue links to "CloudBees Internal CD-26 (Web Link)" [ 19040 ] |
This text is contributed by the Metrics plugin, it seems. Probably TimeInQueueAction should be restricted to AbstractBuild; it makes little sense for other Run types.