Skip to content

Resolve "Delete orphaned builds in production"

What does this MR do and why?

This is a background migration to take care of #485607 (closed)

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.

How to set up and validate locally

  • Tests, mostly
  • If you want to mess with the FKs locally and reproduce an orphaned Build record you can, but I think the stubbing strategy I use in the test is an accurate reflection, conceptually, of how we want this migration to behave without concerning ourselves with the past state of the database that allowed for the records to be the way they are.

Related to #485607 (closed)

Edited by drew stachon

Merge request reports

Loading