Purpose
Red Pipeline Time % shows a percentage of time pipelines stay failed.
How metric helps
Red Pipeline Time % helps to reveal an overall efficiency of an integration process and to highlight the most problematic entities (branches).
How it works
Chart overview
Chart shows Red Pipeline Time % in % - Axis Y by calendar week - Axis X. When hover over a series hint appears:
- <Branch name>: <metric value in %>
- <Red Pipeline Time>: <value in min>
Next to the chart name there is a link to GIT repository ('arrow').
<picture is based on sample data>
Calculation formula
The algorithm of finding a red pipeline:
1 PERF searches for a red pipeline
2 When finds it, PERF checks if the next pipeline is green
- if green - PERF calculates Red Pipeline Time segment
- if red - PERF keeps searching the red status switched to green so that this red status becomes the first in the row of red statuses before the green one.
Red Pipeline Time segment calculation:
Pipeline N-1 | ||
Pipeline N | Green | Red |
Green | 0 | Green end time- Red end time |
Red | 0 | 0 |
if N-1 prior to Red is also Red then go till the last Red |
Red Pipeline Time % = ∑Red Pipeline Time segment/Time overall
Time overall = calendar week time in hours (24*7 hours)
RAG thresholds: n/a.
Data Source
Data for the metric can be collected from GITLAB CI/Jenkins.