Description
Issue Summary
The Duration field for a build is incorrectly reporting the duration between reruns when there's a failed job in addition to the time it took to run.
For example, when executing a first run and on the Plan it takes about 1 second. Then, rerun the failed job after some time. Instead of reporting the duration to be maybe 2 seconds of actual runtime, Bamboo is instead reporting the duration to include the time between the run and re-run (1 day for example).
The duration fields for each individual job are still accurate, but they are not accurate for the entire build.
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Create a plan
- Create multiple stages with dummy tasks
- Have 1 of the stages fail
- Run the build
- Wait a couple of minutes/hours and rerun failed/incomplete jobs only
Expected Results
You would see when you first ran the plan Duration was less than a second and we would expect the Duration to be equivalent when rerunning it (1 second + 1 second for example).
Actual Results
You actually see the plan Duration summing the time period between the run and the rerun
We can see that we ran the plan at 6:05PM and the Duration was less than 1 second.
When we reran the plan at 6:09PM, the Duration was 4 minutes when it should have been the same as when we ran the plan the first time (<1 second).
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available