Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !9362
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Merged
Created Feb 19, 2017 by Maxim Rydkin@innerwhisperContributor8 of 18 tasks completed8/18 tasks
  • Review changes

  • Download
  • Email patches
  • Plain diff

Add auto-cancel for pending pipelines on branch, if they are not HEAD

  • Overview 193
  • Commits 48
  • Pipelines 64
  • Changes 35

What does this MR do?

Decrease entropy in Gitlab universe 😸

First iteration for #8998 (closed)

  • Adds option "Auto-cancel pending pipelines" in "CI/CD Pipelines" project settings tab: when checkbox checked, all pending non-HEAD pipelines will be canceled by system, automatizing scenario:

    1. "User creates pipeline for branch" / "User pushes commit to gitlab"
    2. User goes to pipelines index page and cancel unnecessary (only pending) pipelines.
  • Adds target: '_blank' to doc links in "CI/CD Pipelines" project settings tab

  • Refactor spec/services/ci/create_pipeline_service_spec.rb, extracting execute_service method

UI:

  • Pipeline list:
    • Tooltip on canceled status badge
  • MR widget/commit widget:
    • Pipeline #12345678 was auto-canceled.. etc
    • Hovering over the words auto-canceled will bring the same tooltips
  • Pipeline page:
    • Tooltip on canceled status badge
  • Pipeline graph job node:
    • has improved tooltip with auto-canceled (not anything else)
  • Mini pipeline graph stage and job status icons
    • has improved tooltip with auto-canceled (not anything else)
  • Job list
    • Tooltip on canceled status badge
  • Job list in pipeline view
    • Tooltip on canceled status badge
  • Job view
    • Tooltip on canceled status badge

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Many reasons are discussed here #8998 (closed)

Screenshots (if relevant)

Option in CI/CD Pipelines Project settings tab:

Screen_Shot_2017-03-12_at_22.31.06

Pipeline list:

Screen_Shot_2017-04-04_at_22.26.12

Pipeline page:

Screen_Shot_2017-04-04_at_22.27.48

Job list:

Screen_Shot_2017-04-04_at_22.28.36

Job view:

Screen_Shot_2017-04-04_at_22.29.17

Job list in pipeline view:

Screen_Shot_2017-04-04_at_22.31.33

Setting:

Screen_Shot_2017-04-06_at_01.44.43

Does this MR meet the acceptance criteria?

  • Changelog entry added
  • Documentation created/updated
  • API support added
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Conform by the merge request performance guides
  • Conform by the style guides
  • Branch has no merge conflicts with master (if it does - rebase it please)
  • Squashed related commits together

What are the relevant issue numbers?

#8998 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 8998_skip_pending_commits_if_not_head