Skip to content

Draft: Remove `any_projects_with_shared_runners_enabled?` method

What does this MR do and why?

Related to gitlab-com/gl-infra/production#5622 (closed)

In this MR we are removing Namespace#any_projects_with_shared_runners_enabled?

The method causes performance issues when a namespace contains a large number of projects in nested groups: gitlab-com/gl-infra/production#5622 (closed)

In addition, this method is not really needed since CI minutes quota is assigned per namespace regardless whether shared runners are used or not:

  • If no project has shared runners enabled, we simply show 0% used
  • If no project has shared runners enabled, the usage remains at 0% and won't reach the minimum notification threshold (70%) that would trigger a "Buy more minutes" banner

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