Skip to content
Snippets Groups Projects

Track shared runners duration when job completes

Merged Fabio Pitino requested to merge ci-track-shared-runners-usage-duration into master
1 unresolved thread

What does this MR do and why?

Related to #254231 (closed)

In this MR we introduce a FF ci_always_track_shared_runners_usage that enables tracking of shared_runners_duration when a job completes.

Today when a job completes we track the amount of CI minutes consumed as job.duration * runner cost_factor. Until this MR we only tracked amount_used but for old public projects we currently use a cost_factor: 0 which means that we don't count CI minutes consumption in this scenario. However, we would like to know how long the namespace used shared runners for, regardless of the CI minutes billing. This is why we added tracking of shared_runners_duration separately from CI minutes even when CI minutes consumption is 0.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Fabio Pitino

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Fabio Pitino resolved all threads

    resolved all threads

  • Fabio Pitino marked this merge request as ready

    marked this merge request as ready

  • Fabio Pitino added 1 commit

    added 1 commit

    • 3e58db97 - Track build duration as well as CI minutes

    Compare with previous version

  • Fabio Pitino changed title from Ci track shared runners usage duration to Track shared runners duration when job completes

    changed title from Ci track shared runners usage duration to Track shared runners duration when job completes

  • Fabio Pitino changed the description

    changed the description

  • Fabio Pitino added 2 commits

    added 2 commits

    • ad908eac - 1 commit from branch accumulate-shared-runners-duration
    • 9d6e2c1c - Track build duration as well as CI minutes

    Compare with previous version

  • Fabio Pitino changed milestone to %14.5

    changed milestone to %14.5

  • Fabio Pitino marked this merge request as draft

    marked this merge request as draft

  • Fabio Pitino added 1 commit

    added 1 commit

    • 579a5f1e - Track build duration as well as CI minutes

    Compare with previous version

  • Fabio Pitino changed the description

    changed the description

  • Fabio Pitino marked this merge request as ready

    marked this merge request as ready

  • Fabio Pitino added 1 commit

    added 1 commit

    • 070938d4 - Track build duration as well as CI minutes

    Compare with previous version

  • Fabio Pitino
  • Fabio Pitino requested review from @avielle

    requested review from @avielle

  • Avielle Wolfe approved this merge request

    approved this merge request

  • Avielle Wolfe
  • Avielle Wolfe
  • Avielle Wolfe removed review request for @avielle

    removed review request for @avielle

  • :wave: @avielle, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline has been started.

    For more info, please refer to the following links:

  • Fabio Pitino added 2 commits

    added 2 commits

    • f4a5a4dc - 1 commit from branch accumulate-shared-runners-duration
    • 237362bb - Track build duration as well as CI minutes

    Compare with previous version

  • Fabio Pitino added 1 commit

    added 1 commit

    • 3d399a1d - Track build duration as well as CI minutes

    Compare with previous version

  • Fabio Pitino marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

    marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

  • mentioned in issue #254231 (closed)

  • Fabio Pitino deleted the accumulate-shared-runners-duration branch. This merge request now targets the master branch

    deleted the accumulate-shared-runners-duration branch. This merge request now targets the master branch

  • Author Maintainer

    @reprazent could you do the maintainer review?

  • Fabio Pitino requested review from @reprazent

    requested review from @reprazent

  • Bob Van Landuyt resolved all threads

    resolved all threads

  • Bob Van Landuyt resolved all threads

    resolved all threads

  • Bob Van Landuyt approved this merge request

    approved this merge request

  • Bob Van Landuyt enabled an automatic merge when the pipeline for 1140452e succeeds

    enabled an automatic merge when the pipeline for 1140452e succeeds

  • Bob Van Landuyt mentioned in commit 7154f335

    mentioned in commit 7154f335

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • Please register or sign in to reply
    Loading