Skip to content

Calculate CI minutes consumed per pipeline

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

  1. Create a pipeline with builds
  2. For the runners that will process the builds, change the cost_factors in ci_runners table
  3. Ensure the project has quota enabled
  4. 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.

Related to #376270 (closed)

Edited by Max Fan

Merge request reports