Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CI: Automatically cancel non-generated workflows#3919

Merged
henrymercer merged 1 commit into
maingithub/codeql-action:mainfrom
henrymercer/workflow-concurrencygithub/codeql-action:henrymercer/workflow-concurrencyCopy head branch name to clipboard
May 20, 2026
Merged

CI: Automatically cancel non-generated workflows#3919
henrymercer merged 1 commit into
maingithub/codeql-action:mainfrom
henrymercer/workflow-concurrencygithub/codeql-action:henrymercer/workflow-concurrencyCopy head branch name to clipboard

Conversation

@henrymercer
Copy link
Copy Markdown
Contributor

Specify concurrency groups for non-generated workflows so we can cancel in-progress runs when new commits are pushed to a PR.

Specify concurrency groups for non-generated workflows so we can cancel in-progress runs when new commits are pushed to a PR.
@henrymercer henrymercer requested a review from a team as a code owner May 20, 2026 15:42
Copilot AI review requested due to automatic review settings May 20, 2026 15:42
@github-actions github-actions Bot added the size/XS Should be very easy to review label May 20, 2026
@henrymercer henrymercer marked this pull request as draft May 20, 2026 15:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds workflow-level concurrency settings to several non-generated GitHub Actions workflows so that, for pull request-triggered runs, older in-progress runs are automatically cancelled when new commits are pushed.

Changes:

  • Added concurrency.group to deduplicate workflow runs per ref.
  • Enabled cancel-in-progress only for pull_request events (leaving push/schedule/manual runs non-cancelling).
  • Applied the same concurrency pattern consistently across the targeted non-generated workflows.
Show a summary per file
File Description
.github/workflows/test-codeql-bundle-all.yml Adds concurrency to cancel superseded PR runs for the “CodeQL Bundle All” workflow.
.github/workflows/query-filters.yml Adds concurrency to cancel superseded PR runs for query filter test runs.
.github/workflows/python312-windows.yml Adds concurrency to cancel superseded PR runs for the Python 3.12 Windows workaround test workflow.
.github/workflows/pr-checks.yml Adds concurrency to cancel superseded PR runs for the main PR checks workflow.
.github/workflows/debug-artifacts-safe.yml Adds concurrency to cancel superseded PR runs for debug artifact upload checks.
.github/workflows/debug-artifacts-failure-safe.yml Adds concurrency to cancel superseded PR runs for debug artifacts-after-failure checks.
.github/workflows/codescanning-config-cli.yml Adds concurrency to cancel superseded PR runs for code scanning config CLI tests.
.github/workflows/check-expected-release-files.yml Adds concurrency to cancel superseded PR runs for the expected release files checker.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 0

@henrymercer henrymercer marked this pull request as ready for review May 20, 2026 15:49
@henrymercer henrymercer added this pull request to the merge queue May 20, 2026
Merged via the queue into main with commit c5297a2 May 20, 2026
431 of 446 checks passed
@henrymercer henrymercer deleted the henrymercer/workflow-concurrency branch May 20, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Should be very easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.