Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • 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 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Packages
    • Packages
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issues
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #53837

Closed
Open
Opened Nov 12, 2018 by Cédric Tabin@ctabin
  • Report abuse
  • New issue
Report abuse New issue

Auto-cancel redundant, pending/delayed pipelines

Problem to solve

We have heavy piplines to run when a MR is merged. We regularly merge multiple MRs in a short period, and hence multiple master pipelines are triggered. Moreover, in our MRs, we often do multiple pushes in short time and then wait for the pipeline to run. Most of the time, only the last pipeline matters to us.

The goal is to allow gitlab to automatically cancel redundant pipelines, which already work if the pipeline is pending. However, we would like that gitlab also cancel redundant piplines that are idle (delayed).

Further details

All our primary steps of the pipeline are delayed of 10 minutes with the following snipped:

webclient-build-master:
  ...
  only:
    - master
  when: delayed
  start_in: 10 minutes

So what we expect, if that when a MR is merge while the pipeline is hidden, the latter is being automatically cancelled. Currently, we have to cancel those idle pipelines manually.

Proposal

Consider a pipeline the same as "pending" if all of its first steps are in "idle" mode (delayed and not started, shown with a timer in CI/CD).

Linked issues

  • Discussion
  • Designs
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
devopsverify feature pipeline
Assign labels
  • View project labels
Reference: gitlab-org/gitlab-foss#53837