Skip to content

Skip auto-cancel pipelines when child pipeline is created

Fabio Pitino requested to merge skip-auto-cancelation-with-child-pipelines into master

What does this MR do and why?

Related to #377712 (closed) (Feature flag issue)

Related to #377527 (closed) (main issue)

In an attempt to fix the race conditions being experienced in Dynamically generated downstream child pipeline... (#377527 - closed) we are disabling the auto-cancelation of other pipelines when a child pipeline is created.

It turns out that auto-cancelation is not needed when a child pipeline is being created. We only want to cancel other pipelines in the same ref when a new parent or standalone pipeline is created. Child pipelines are considered sub-pipelines of the parent, hence they should not affect other pipelines in the same ref.

This allows us to also simplify the query to fetch auto_cancelable_pipelines.

This change is implemented behind a feature flag ci_skip_auto_cancelation_on_child_pipelines.

Screenshots or screen recordings

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

How to set up and validate locally

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

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Fabio Pitino

Merge request reports