Skip to content

[hotfix][ci] Cancel superseded CI runs for the same PR - #1359

Merged
wenjin272 merged 1 commit into
apache:mainfrom
wenjin272:codex/cancel-stale-pr-ci
Nov 6, 2026
Merged

wenjin272 merged 1 commit into
apache:mainfrom
wenjin272:codex/cancel-stale-pr-ci

Conversation

@wenjin272

Copy link
Copy Markdown
Contributor

Purpose of change

Repeated pushes to a PR currently leave earlier CI runs consuming runners. Add workflow-level concurrency keyed by workflow name and PR number so a new run cancels an older run for the same PR. Fall back to the unique run ID for push and manual events, keeping those runs independent.

Tests

  • Parsed the workflow YAML and verified that only the concurrency block changed; triggers and jobs are identical.
  • git diff --check passed.
  • Cancellation across successive pushes has not been exercised on GitHub yet.

API

No public API changes.

Documentation

  • doc-needed
  • doc-not-needed
  • doc-included

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

Generated-by: Codex CLI 0.153.4 (GPT-6)

Group PR workflow runs by workflow name and PR number. Use the unique run ID for non-PR events so push and manual runs remain independent.

Generated-by: Codex CLI 0.153.4 (GPT-6)

Co-authored-by: Codex <codex@openai.com>
@github-actions github-actions Bot added doc-not-needed Your PR changes do not impact docs fixVersion/1.0.0 The feature or bug should be implemented/fixed in the 1.0.0 version. priority/major Default priority of the PR or issue. labels Nov 6, 2026
@wenjin272
wenjin272 merged commit 64e9e0f into apache:main Nov 6, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs fixVersion/1.0.0 The feature or bug should be implemented/fixed in the 1.0.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant