Display total CI minutes on pipeline runs

Created on 22 August 2024, 3 months ago
Updated 27 August 2024, 3 months ago

Problem/Motivation

Gitlab shows the wall time for a completely pipeline by default.

See for example this core MR pipeline that finished in 4m55s https://git.drupalcode.org/project/drupal/-/pipelines/261246 (yay) or this one that finished in 8 minutes https://git.drupalcode.org/project/drupal/-/pipelines/260977

However, by default it doesn't show the total CI minutes - e.g. if we have 7 parallel functional test jobs each taking 4 minutes each, that's 28 minutes of runner time, not 4 minutes.

From what I can tell, this feature is implemented in gitlab, but behind a feature flag, see for example these two closed issues.
https://gitlab.com/gitlab-org/gitlab/-/issues/370041
https://gitlab.com/gitlab-org/gitlab/-/issues/376270

However I can't find documentation for it, or a reference to what the exact name of the feature flag is yet.

If we can show this on the pipelines, that would for example allow us to compare how 11.x is doing compared to 10.2.x.

A further step might be to set up monitoring of CI minutes-per-pipeline so we can see if it's going up or down.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Component

GitLab

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024