Display build minutes (EE only)

Description

We are going to start calculating shared CI runner build minutes used per user/group; now we need to report build minute usage to users. Perhaps this should be an EE-only feature, but the current MR is in CE.

Proposal

  • Maybe add a new page into group settings?
  • Report shared runner build minutes used this month
  • [Stretch] Show history of build minutes used each month
  • [Stretch] Show max build minutes used in last X months
  • [Stretch] Show build minute limit and indication of whether you are under/over
  • [Stretch] Project estimated build minutes for the rest of the month
  • [Stretch] Or show current build minute usage relative to prorated monthly limit
  • [Stretch] Show when user/group is over limit
  • [Stretch] Know if user/group has purchased Bronze package, show information about it

Design

  • Pipeline list label: image
  • Pipeline list label tooltip: tooltipquota
  • Group settings pipeline quote dropdown: (wording should be: Build minute quota) buildminutredropdownwithprogressbar
  • Group settings pipeline quota screen: pipeline_quote_v2
  • When editing a group as admin at /admin/groups/groupname/edit: (With the help icon leading to an help page explaining build minutes.) image
  • Warning on groups and projects that have CI and shared runners enabled visible to any member: image
  • Same warning for group admins (stretch): image
  • 80% warning for group admins (stretch): image

Links / references