tophat / jenkins-timeline-plugin

A build timeline to facilitate the inspection of Jenkins pipelines and identify bottlenecks.
https://jenkinstimeline.com
Apache License 2.0
34 stars 11 forks source link

In some cases, timestamps are inconsistent, causing the timeline to crash. #45

Open mcataford opened 5 years ago

mcataford commented 5 years ago

Describe the bug In some cases, the timestamps for start are bigger than the ones for end, causing the timeline to crash.

To Reproduce Uncertain of steps.

Expected behavior The timeline should at least recover gracefully.

Screenshots screen shot 2018-12-03 at 2 51 21 pm

Desktop (please complete the following information):

mcataford commented 5 years ago

Can no longer reproduce, shelving until a build exhibiting this is found.

mcataford commented 5 years ago

Cause identified: during a long build, durationMillis can be negative if a stage or step is queued/has to wait.

Tentative soln: add handling around negative durationMillis values.

jakebolam commented 5 years ago

Wonder if there is a way to detect build in progress? And show this too

sjoanes commented 5 years ago

Happened to my in progress build.

Screen Shot 2019-07-08 at 4 46 17 PM

Stopped happening after it was done

mcataford commented 5 years ago

Thanks for the report! Yeah, I think it might be because of how it handles idle waiting as negative time.

bpoland commented 2 years ago

I also see this when one stage is waiting with waitUntil, it goes away once the build is finished.