-
Notifications
You must be signed in to change notification settings - Fork 0
fix(actions): retain the latest pending coalescer event #1770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f02486d
test(actions): require pending coalescer queue preservation
seonghobae ed2acac
fix(actions): preserve pending current-head cleanup runs
seonghobae 0551759
test(actions): require latest-pending coalescer admission
seonghobae d6bf882
fix(actions): retain only the latest pending cleanup trigger
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,10 +6,15 @@ on: | |
|
|
||
| concurrency: | ||
| group: current-head-run-coalescer-${{ github.repository }}-${{ github.event.pull_request.number }} | ||
| # Do not restore cancel-in-progress: true here. This job is the control-plane | ||
| # worker that retires redundant runs; cancelling it during a push burst lets | ||
| # the redundant runs survive and worsens the 60-job ceiling. | ||
| # The active worker must finish because it retires redundant runs that consume | ||
| # the shared Actions ceiling. A later synchronize event must not kill it. | ||
| cancel-in-progress: false | ||
| # Keep exactly one pending successor. GitHub replaces that pending run when a | ||
| # newer event enters the group, so the retained successor always represents | ||
| # the latest head instead of accumulating up to 100 stale-head invocations. | ||
| # The script still verifies the event-bound expected head against the live PR | ||
| # before any mutation and fails closed if the head moved again. | ||
| queue: single | ||
|
Comment on lines
+12
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| permissions: | ||
| actions: write | ||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Cleanup runs starve during push bursts
During runner starvation,
queue: singlereplaces each waiting cleanup whenever another push arrives. Sustained pushes can prevent cleanup from running, leaving redundant jobs consuming the shared ceiling.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.