ci(auto-rebase): no checkout for a pass that cannot push (32 s → 22 s per tick) #2152
No reviewers
Labels
No labels
blocked-on-build
bug
device
device-request
enhancement
from-github
needs-datasheet
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/1119-1227"
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?
Baseline
auto-rebase.yml— Rebase open PRs and arm auto-merge, run 7513 (main, 2026-11-19T12:30:02Z, task 19784): 32 s, green, 5 mergeable open PRs,batch=5 rebased=0 current=0 conflicts=0 duplicates=0 armed=0 rearmed=3 red=2 no_checks=0 uncheckable=3.The tick spent 12:30:06.58 → 12:30:14.25 (7.7 s) fetching 792 refs into a working tree no line of the run read, plus the action clone and a
Post Check out the queuestep. Ten ticks sampled across today (runs 6833, 6901, 6985, 7065, 7140, 7209, 7289, 7356, 7421, 7487) all printedrebased=0; run 7506 printeduncheckable=2with "this pass holds only the run token" — a push with the run token raises nopull_requestevent, so the head it mints has no checks and can never be armed. The loop refuses every candidate for that reason, but only after the tree has been paid for.Median tick over 119 green ticks today: 29 s (p90 40 s) — ~59 min of runner slot per day.
After
Same file, run 7514 (branch
ci/1119-1227,workflow_dispatch, 12:35:40Z, task 19785): 22 s, green, same 5 mergeable PRs and identical counters (rearmed=3 red=2 uncheckable=3), with checkout and git prologue skipped:Re-measured after the guard-shape fix: run 7534 (12:43:44Z, task 19835) 17 s, same stand-down, arming still ran (
red=2 uncheckable=2).32 s → 22 s (-31%) on identical work; ~20 min/day of runner slot.
Change
push: false whenTOKENis unset or equalsRUN_TOKEN— the loop's own predicate, asked before the tree. The step publishes both outputs and exits on that branch.Check out the queueis gated onpush; thegit config/remote set-url/fetch mainprologue is gated on the same predicate.Coverage unchanged
Nothing is skipped: same arming calls, same
checks_green/checks_failedrules, same rebase path whenFORGEJO_TOKENis a user token (push=true, every command runs as before).Notes
Run 7517 (first commit) went red on
rebase-push-guard:scripts/check-rebase-push-guard.jsrequires the TOKEN/RUN_TOKEN comparison to be followed by a refusal, and the flag-only version was not. Fixed in179d23f6by exiting on that branch; that suite is green in the current run (7535/7536 legs).