mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1250] [MERGED] ci: the needs-rebase labeler no longer runs per pull request push (PR-CONFLICT-LABEL-LOAD) #1282
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1282
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1250
Author: @Mouad-Scriptz-0
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:ci/conflict-label-no-per-pr-runs📝 Commits (1)
364754dci: the needs-rebase labeler no longer runs per pull request push (PR-CONFLICT-LABEL-LOAD)📊 Changes
4 files changed (+19 additions, -17 deletions)
View changed files
📝
.github/workflows/conflict-label.yml(+8 -9)📝
CONTRIBUTING.md(+1 -2)📝
tests/test_pr_conflict_label.py(+7 -2)📝
tools/pr_conflict_label.py(+3 -4)📄 Description
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.