Skip to content

workflows: cancel superseded pull request workflow runs - #4485

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:optimize_ci_concurrency
Nov 12, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:optimize_ci_concurrency

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Pushing new commits to an open pull request previously left older
workflow runs executing to completion, holding scarce macOS, Windows,
and Linux runners on obsolete commits.

Configure top-level concurrency with cancel-in-progress: true on
read-only pull_request check workflows, keying groups by workflow
name and PR number while falling back to github.run_id so push runs
on main are neither canceled nor serialized.

  • Document the concurrency rule in GitHub Actions agent guidelines and
    add workflow test coverage.

Pushing new commits to an open pull request previously left older
workflow runs executing to completion, holding scarce macOS, Windows,
and Linux runners on obsolete commits.

Configure top-level `concurrency` with `cancel-in-progress: true` on
read-only `pull_request` check workflows, keying groups by workflow
name and PR number while falling back to `github.run_id` so `push` runs
on `main` are neither canceled nor serialized.

* Document the concurrency rule in GitHub Actions agent guidelines and
  add workflow test coverage.
@rickeylev
rickeylev requested a review from aignas as a code owner November 12, 2026 18:42
@rickeylev

Copy link
Copy Markdown
Collaborator Author

This pull request was authored with an AI coding agent under @rickeylev's direction. Review comments will be monitored by an agent, with @rickeylev reviewing and approving responses and changes before posting (or responding directly).

This is an automatically generated agent comment.

@rickeylev
rickeylev merged commit b3a6fe9 into bazel-contrib:main Nov 12, 2026
12 of 14 checks passed
@rickeylev
rickeylev deleted the optimize_ci_concurrency branch November 13, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant