bazelbuild / bazelbuild/continuous-integration

Add `cancel_intermediate_builds` to all buildkite pipelines

Open
#1,351 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
302
Forks
194
Avg merge
1d 19h
Merged PRs (30d)
41

Description

A few pipelines have `cancel_intermediate_builds` set, which cancels running jobs when new commits are pushed to existing branches. I think we should enable this for all pipelines to reduce CI queuing, which is especially helpful for macOS CI. I would also recommend we set `cancel_intermediate_builds_branch_filter = '!master'` (or `!main`) to make sure this doesn't apply to the default branch

Contributor guide

Open the contributing guide

Research direction

Start by locating the Buildkite pipeline definitions and comparing the pipelines that already set `cancel_intermediate_builds`. Apply the requested setting across all pipelines while excluding the default branch with the proposed branch filter, then verify the CI configuration reflects both requirements.

Written by the indexing model from the issue text.

Assessment

Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.