Skip to content

Fix race condition with policy attachment resources

Patrick Rice requested to merge fix-flakey-security-attachment-resource into main
  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

There appears to be a race condition where in a GitLab environment under heavy load, the "Unassign" action from an old security policy project will execute after an Update's "assign" action, causing the update to end with no policy project assigned. To fix this, a retry block is added to update that will retry until the assigned policy project matches the planned one.

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading