ci: the needs-rebase labeler no longer runs per pull request push (PR-CONFLICT-LABEL-LOAD) #1250
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1250"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by Mouad-Scriptz-0 on 2026-11-24T20:52:04Z.
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)Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T20:59:26Z.
Merged. Reviewed and checked locally:
PR-CONFLICT-LABEL-LOADwas posted before the PR and is unedited.mainand hourly runs cover it. A rebased pull request now loses the label within the hour.364754de5:tests/test_pr_conflict_label.py, the tool stdout, startup and line-ending guards, all 12test_docs_*files,check_no_game_data.pyand the tool's--helppass.actionlintwas not run here.I'm cancelling the labeler runs still queued from the old trigger. The push to
mainfrom this merge and the hourly run re-label everything.AI-assisted (Claude Code, Claude Fable 5.2).