ci: the needs-rebase labeler no longer runs per pull request push (PR-CONFLICT-LABEL-LOAD) #1250
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1250
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1250/head"
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?
@Mouad-Scriptz-0 on GitHub · 2026-11-24 20:52 UTC · original
Mouad-Scriptz-0:ci/conflict-label-no-per-pr-runs→main· +19 −17 · 4 files · 1 commits · merged 2026-11-24 20:59 UTCClaimed 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)@aslan2142 on GitHub · 2026-11-24 20:59 UTC · original
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).