-
Notifications
You must be signed in to change notification settings - Fork 29
Modify computeChunkTiming to always use the start time of lastNode as the endTime for parallel branches #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… the endTime for parallel branches
timja
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking in to this and tracking it down!
|
It would be awesome to get this shipped. |
|
@jglick @dwnusbaum @car-roll could this get reviewed please? |
|
@timja you seem to have write permission here (I am not sure how), so you should just be the maintainer, since |
Org owner but sure will do |
|
IMO this plugin should just be deprecated, and you should copy all relevant functionality into |
|
Pipeline: REST API depends on it, and for one, I think Pipeline Stage View depends on it too. If we decide to deprecate, we got to first get feature-parity with the Pipeline Stage View so that it can be deprecated too. |
|
I just meant to deprecate it so that no one tries to use it in new code. Blue Ocean and Stage View will exist probably forever and use this code. If you are making a new Pipeline visualization plugin, I would recommend copying what you need or ideally using it as inspiration for your own |
Fix for JENKINS-75640 after discussion on jenkinsci/pipeline-graph-view-plugin#368.
The current implementation of
StatusAndTiming#computeChunkTimingalways computes the timing of parallel branches using the start time of closing parallel step node - the start time of the current branch's start node for completed builds. This isn't correct as each branch may take a different amount of time.This change removes the conditions around using the the start time of branch's end node so that it will be used for both active and complete builds.
Testing done
The StatusAndTimingTest#testBasicParallelFail test already has basic validation that branch timings are correct. I've just updated the assert logic so that comparison timing is also computed using the branch's end node instead of the after node.
Submitter checklist