Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21784

Incorrectly reporting Duration with reruns with failed jobs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 9.0.0
    • 8.2.2
    • Builds, Jobs
    • None

    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

      1. Create a plan
      2. Create multiple stages with dummy tasks
      3. Have 1 of the stages fail
      4. Run the build
      5. 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

      Attachments

        Issue Links

          Activity

            People

              851f15845f55 Mateusz Szmal
              lmedina Lorenzo Bueno
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: