Skip to content

Add auto_cancel_on_new_commit to ci_pipeline_metadata and remove a const

What does this MR do and why?


This is the first step of #412473 (closed).

  1. <--HERE-->
  2. Add new syntax of workflow:auto_cancel:on_new_c... (!137892 - merged)
  3. Add `interruptible` to trigger jobs (!138508 - merged)
  4. Add auto_cancel:on_new_commit to canceling redu... (!139358 - merged)
  5. workflow:rules:auto_cancel (#436467 - closed)

In this change, we are;

  • removing the NOT NULL constraint of the name column because now a ci_pipeline_metadata row can be created without a name.
  • adding a new column auto_cancel_on_new_commit to the ci_pipeline_metadata table.

In the next step, we'll accept workflow:auto_cancel:on_new_commit from the CI config and use it in Ci::CancelPipelineService. You may see this POC: !133328 (closed).

workflow:
  auto_cancel:
    on_new_commit: conservative # (default), other options: "interruptible", "disabled"

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 Furkan Ayhan

Merge request reports