Populate dedicated hosted runner compute minute usage

What does this MR do and why?

When the runner completes a job we check if it's coming from a hosted runner (in 18.0 based on the lookup table hosted_runners and on dedicated instance). In pre-18.0 this will be based on if the creator is and AdminBot and if the instance is a dedicated instance

  • If YES: we accumulate the duration in hosted_runners_monthly_usages
  • If NO: and it's an instance runner, we only accumulate the duration in the existing project|namespace_monthly_usages, that we use for GitLab.com.
Edited by Allison Browne

Merge request reports

Loading