Repository navigation
ci: the needs-rebase labeler no longer runs per pull request push (PR-CONFLICT-LABEL-LOAD) - #1250
Merged
aslan2142 merged 1 commit intoNov 24, 2026
Conversation
…-CONFLICT-LABEL-LOAD) conflict-label.yml (ProjectLeonida#155) started a run on every push to every pull request through pull_request_target. On this repository that queued 265 runs within a day, some waiting five hours, in the same runner queue as CI, No Game Data and Runtime, whose oldest queued run waited six hours. Drop the pull_request_target trigger and put every run in one concurrency group. Each run already checks every open pull request, so a push to main and the hourly schedule cover what the per-PR runs did; a rebased pull request loses the label within the hour instead of at once. At most one run waits at a time. The workflow also no longer has a trigger that hands a fork's pull request a write token. tests/test_pr_conflict_label.py fails on the old workflow and checks that no pull request trigger, per-PR group or --pr comes back; the tool's docstring and CONTRIBUTING.md say what runs it now.
Collaborator
|
Merged. Reviewed and checked locally:
I'm cancelling the labeler runs still queued from the old trigger. The push to AI-assisted (Claude Code, Claude Fable 5.2). |
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.
Claimed in the coordination issue as: PR-CONFLICT-LABEL-LOAD (#14)
Depends on: none
What and why
My
needs rebaselabeler from #155 works (112 open pull requests carry the label), but it's flooding the Actions queue.conflict-label.ymlstarts a run on every push to every pull request throughpull_request_target. On this repository, that queued about 265 runs within a day, the oldest since 15:27 UTC. They wait in the same runner queue asCI(53 queued, the oldest since 14:41 UTC),No Game Data(59) andRuntime(29). I'm sorry about that.This PR:
pull_request_targettrigger. Every run already checks all open pull requests, so the push-to-mainand hourly runs cover what the per-PR runs did. A rebased pull request now loses the label within the hour instead of right away.conflict-label). At most one run is in progress and one waiting, and a newer push replaces the waiting one.--prargument from the workflow. The workflow also no longer has a trigger that gives a fork's pull request a write token.tests/test_pr_conflict_label.py. It now checks that nopull_request/pull_request_targettrigger, per-PR group or--prcomes back. The tool's docstring and theCONTRIBUTING.mdline describe the new schedule.Runs that are already queued will still run under the old workflow file. Each one is harmless but holds a runner slot. Someone with write access can clear them; the next push to
main, or the hourly run, re-labels everything:Tested
tests/test_pr_conflict_label.py: OK. Against the workflow onmain(the old triggers), the newtest_no_run_per_pull_requestfails, as it should.tests/test_ci_registration.py,tests/test_docs_links.py,tests/test_text_write_line_endings.py: OK.push,scheduleandworkflow_dispatch; concurrency{group: conflict-label, cancel-in-progress: false}.GPUs tested: n/a (CI only)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)