Calculate CI minutes consumed per pipeline
requested to merge 376270-display-the-total-shared-runner-execution-time-ci-minutes-consumed-per-pipeline-on-the into master
What does this MR do and why?
We will need a way to see how much CI Compute Credits a pipeline takes. We'll do this by analyzing all the completed builds and runners for the pipeline and aggregate them.
Screenshots or screen recordings
N/A
How to set up and validate locally
- Create a pipeline with builds
- For the runners that will process the builds, change the cost_factors in
ci_runners
table - Ensure the project has quota enabled
- Trigging in the console
pipeline.total_ci_minutes_consumed
will tell you the amount all the builds use
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #376270 (closed)
Edited by Max Fan