Skip to content

Update runner managers owned by non-existing projects

What does this MR do and why?

This MR follows up on !176879 (merged) and adds a background migration to handle runner managers for runners that are owned by deleted projects (referenced through sharding_key_id in ci_runner_machines). There will be similar MRs to handle runners and runner taggings. If there is a fallback project association, we use the oldest still-existing association, otherwise we delete the runner manager.

Update runner managers owned by non-existing projects

Set sharding_key_id with fallback owner, or remove record if no fallback exists.

Changelog: added

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

n/a

How to set up and validate locally

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

n/a

Merge request reports

Loading