Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !23464

The source project of this merge request has been removed.
Merged
Created Nov 29, 2018 by Cédric Tabin@ctabinContributor6 of 6 tasks completed6/6 tasks

Interruptible builds for redundant pipelines

  • Overview 405
  • Changes 16

What does this MR do?

When many pipelines are triggered (even on protected branches), GitLab should be able to automatically cancel redundant pipelines, even if the latter are already running.

With this MR, the goal is to introduce a new job keyword in the .gitlab-ci.yml named interruptible which will tell GitLab if a job is safe to be killed while it's running. Hence, when a new pipeline is created, any redundant pipeline already created (and started) will be cancelled if all the running or finished jobs are noted as interruptible. If any of the jobs are not interruptible, then the pipeline will be left to finish.

Closes gitlab#32022 (closed)

Proposal

The goal is to allow to configure any interruptible job like this:

build-master:
  script: make
  interruptible: true

With this keyword, it is possible to finely tune GitLab to let him know if any running redundant pipeline can be cancelled or not.

Related issues

  • #53837 (closed)
  • #32741 (moved)
  • #35533 (moved)
  • #60172 (moved)
  • #63303 (moved)
  • #8998 (closed)

Related MR

  • !23172 (closed)
  • https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9679
  • https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15450

Previous implementations

  • ctabin/gitlab-ce!1
  • ctabin/gitlab-ce!2

General checklist

  • Changelog entry added, if necessary
  • Documentation created/updated
  • Tests added for this feature/bug
  • Conforms to the code review guidelines
  • Conforms to the merge request performance guidelines
  • Conforms to the style guides
Edited Sep 16, 2019 by Jason Yavorska
Assignee
Assign to
Reviewer
Request review from
12.3
Milestone
12.3 (Past due)
Assign milestone
Time tracking
Source branch: issue-32741