Skip to content

Use drop! to process stuck builds

Allison Browne requested to merge ab-use-drop-bang-to-cancel into master

What does this MR do and why?

Use drop! to process stuck builds

Using build.drop! will allow build.doom! to be called which sets the job to failed while bypassing validations, so that we don't continue to re-process the same build in the case of in-valid records.

We saw builds being re-processed when they were left orphaned form the pipelines which made them invalid:

https://gitlab.com/-/project/7444821/uploads/9c8e8a3831473c5bc6c3b1eef75ed2df/Screenshot_2024-09-09_at_3.29.06_PM.png

We are still seeing the worker try to process this build(from the above graph) to get it to a completed state.

The root cause of invalid data was a broken ON DELETE CASCADE and a broken foreign key constraint. This left builds without a pipeline.

See:

Issue: #485597

Edited by Allison Browne

Merge request reports