...
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 |
---|
|
...
Data for the metric can be collected from GITLAB GitLab CI /or Jenkins. When using Jenkins make sure Pipeline plugin is installed.
...