jenkins-timeline-plugin icon indicating copy to clipboard operation
jenkins-timeline-plugin copied to clipboard

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

Open mcataford opened this issue 6 years ago • 6 comments

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):

  • OS: OSX
  • Jenkins TL 1.0.0

mcataford avatar Dec 03 '18 19:12 mcataford

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

mcataford avatar Dec 05 '18 18:12 mcataford

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.

mcataford avatar Dec 05 '18 22:12 mcataford

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

jakebolam avatar Dec 05 '18 22:12 jakebolam

Happened to my in progress build.

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

Stopped happening after it was done

sjoanes avatar Jul 08 '19 21:07 sjoanes

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

mcataford avatar Jul 09 '19 14:07 mcataford

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

bpoland avatar Dec 17 '21 17:12 bpoland