Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The algorithm of finding a red pipeline:

Step 1 - PERF searches for a red pipeline.

Step 2 - When finds it, PERF checks if the next pipeline is green:

...

Time overall = calendar week time in hours (24*7 hours)

Assumptions:

  • Failed pipeline is not included
  • If Only successful and failed pipelines are considered here, i.e. pipelines in queued or "in progress" states are ignored.
  • If a pipeline end timestamp is later than a week end then pipeline end timestamp is a week end timestamp.
  • If a pipeline start timestamp is earlier than a week start then pipeline start timestamp is a week start timestamp.

...

Visually the calculation is shown in the picture:  (TODO - adjust the diagram below to make it more clear).

Info
  1. “Virtual” points on Start and End points of an iteration – taken as last known status of pipeline execution out of the iteration horizon (if available)
  2. RED segments: from a commit which broke a pipeline till a commit which fixed it (take START time points of pipeline executions)

...

Data for the metric can be collected from GITLAB GitLab CI /or Jenkins. When using Jenkins make sure Pipeline plugin is installed.

...