Pipeline duration is not right

The pipeline duration is not correctly computed when other job was running between ours, or when there are retries or manual actions.

Job scheduling example:

  • me: 1 min
  • other: 2 min
  • me: 3 min

The result will be 6 minutes instead of 4 minutes.
Maybe the duration is computed with this formula: max(endTime(all jobs)) - min(beginTime(all jobs))