Repository navigation
ci: cancel in-progress PR runs when new commits are pushed - #1248
Open
connorjclark wants to merge 2 commits into
Open
connorjclark wants to merge 2 commits into
connorjclark wants to merge 2 commits into
Conversation
connorjclark
requested review from
K53,
RyuSA,
jyane,
kkuchima,
kyasbal and
renamoo
as code owners
November 5, 2026 21:08
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
kyasbal
approved these changes
Nov 10, 2026
kyasbal
left a comment
Member
There was a problem hiding this comment.
@connorjclark Thank you for catching this issue. This is LGTM. So I'm gonna merge this soon.
kyasbal
enabled auto-merge
November 10, 2026 01:15
Member
|
/gcbrun |
kyasbal
disabled auto-merge
November 10, 2026 02:23
kyasbal
enabled auto-merge
November 10, 2026 02:23
kyasbal
disabled auto-merge
November 11, 2026 02:48
kyasbal
enabled auto-merge
November 11, 2026 02:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently,
.github/workflows/pullrequest.yamldoes not define aconcurrencyconfiguration. When new commits are pushed to an open PR—or when a stack of PRs is cascade-rebased and pushed—supersededPR Testsworkflow runs on the same PR continue executing all 8 jobs to completion alongside the new run.This PR adds a
concurrencyblock that:${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}), so distinct PRs in a stack continue running in parallel while superseded runs on the same PR are automatically cancelled.cancel-in-progressonpull_requestevents, leavingmerge_groupruns in the Merge Queue untouched.Estimated Impact:
Across the last 297
pull_requestruns onGoogleCloudPlatform/khi(104.2runner-hours /6,252runner-minutes in a 24-hour window), 121 runs (40.7%of PR runs) overlapped with a newer run on the same PR branch, accounting for~35–36%of total PR runtime—saving roughly~2,200runner-minutes per day (~66,000runner-minutes per month).🔒 b/582381028