Cancel already running pipeline on MR when pushing new commits
When opening an MR a pipeline run will be triggered. If a new commit is added to this MR a new pipeline will be started and the pipeline from an earlier commit should be cancelled.
Problem Statement
Multiple running (parallel) pipelines on a single MR. The result of the "old" pipeline is irrelevant.
Who will benefit?
Everyone
Benefits and risks
This will speed-up MRs and maybe other parallel CI runs and save resources on the test infrastructure.
Proposed solution
Examples
There is an GitHub Action (cancel-workflow-action) that does excactly this.
Priority/Severity
-
High (This will bring a huge increase in performance/productivity/usability/legislative cover) -
Medium (This will bring a good increase in performance/productivity/usability) -
Low (anything else e.g., trivial, minor improvements)