ci: typecheck takes a slot in the first dispatch wave instead of queueing behind the legs #2500
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!2500
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/1124-0027"
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 (before). Job order in
ci.ymlis dispatch order.typecheckwas placed last on the argument thatdocker+ both legs +typecheckare exactly the four jobs the runner takes at once, so nothing queues behind it.That holds on an idle host and not on this one. Measured from
/api/v1/repos/jaylouisw/packetforge/actions/tasksover the 37 CI runs since the job landed (run numbers 10054-10196):armliststypecheckinneeds, soArm auto-mergecannot be created until that status exists. In run 10187 arm's task 26449 was created 00:21:20, 100 s after the last leg reported.Change. Move the
typecheckjob to just afterdockerand beforetest- shortest job first (18 s against 52-63 s for a leg), so it owns a slot in the first dispatch wave and is never the straggler the merge gate waits on. Nothing else moves.Coverage unchanged, proven rather than asserted. Parsing both revisions and comparing
jobs.{docker,test,typecheck,arm}as objects: all four are identical; only their order in the file changed (docker,test,typecheck,arm->docker,typecheck,test,arm). Same steps, same pinned runtimes (v22.23.5 in typecheck and on the Node 22 leg, v24.22.3 on the Node 24 leg), samePF_TEST_CONCURRENCY(12 on 22, 10 on 24), same bounds, sameTypecheck/No any/Test (Node *)status names, samearm.needs. No script, test or gate touched.After. Run 10216 (pull request #2500, head
2a234499),/actions/tasks:Arm auto-merge(task 26562) was created 00:51:22, 12 s after the last leg reported (baseline median 63 s), and reported success in 3 s.TypecheckandNo anyare in the status set, and the four job definitions are byte-identical tomain's.Every check on 10216 is green: docker 41 s, Typecheck 16 s, Node 22 65 s, Node 24 78 s (legs slow on a contended host at 00:50Z, which is exactly the case this change is for).
Rebase blocked on a workflow-structure conflict — needs Jay's decision.
Automated rebase watchdog, 2026-11-24 01:1x. This PR is green 6/6 on head
2a234499butmergeable=falseon two consecutive polls, so I tried the rebase in a scratch worktree. It cannot be finished mechanically.File:
.forgejo/workflows/ci.ymlonly (161+/147-).What the conflict is. The PR moves the
typecheckjob from aftertestto before it (first dispatch wave). Main has since touched that job's content, so git matches the move as a deletion at the old position and the merge lands:mergeableresult contains twotypecheck:keys — line 713 (this PR, inserted cleanly) and line 1794 (main's copy, the conflicted hunk) — which is an invalid workflow, not a merge.Why I did not just keep one side. The two copies have diverged in content, not only position. This branch still carries the old floor guard:
at lines 310 and 804, while main replaced it in
0c342993(#2497, "the smoke job compares the floor, not the major number") withnode scripts/check-node-floor.js --title Typecheck, because thev22.*glob accepted 22.0.0–22.17.9 — below the 22.18 floor, where.tsparses as JavaScript (#2488). Taking this branch's side silently reintroduces that bug; taking main's side deletes the move this PR exists to make. Choosing between those is a behaviour question, so per the standing rule it is not mine to answer.Verified:
2a234499= 6/6 success (Typecheck, Test Node 22, Test Node 24, Server smoke and Docker build, PR rebase, Arm auto-merge), 7 commits behind8bc5fbe5; the green run predates0c342993. No test suite was run — the rebase never got pastgit rebase --continue. Scratch worktree removed, nothing pushed, branch untouched.Recommended resolution (for whoever reauthors it,
pf-loop-cior Jay): rebase onto currentmain, keeptypecheckin the first wave beforetest, and carry main'scheck-node-floor.jscall plus its surrounding comment into the moved block — main's content, this PR's position. Then re-push and let CI re-run.Duplicate job keys are the reason this could not be accepted as-is. needs Jay's decision.
Superseded by #2512, which landed the same change on current main as
9221e7b0.Why this one could not land.
ci.ymlconflicts against main (CONFLICT (content), verified locally withgit merge-tree origin/main origin/ci/1124-0027) because this branch was cut before main's ownci.ymlwork and both sides rewrote the job block. Re-doing the same permutation on the current base is exactly what #2512 is: it went 6/6 green one2e2dca3and merged, leaving main withjobs: docker, typecheck, test, armandarm.needs: [test, docker, typecheck]unchanged.Nothing is lost by closing this: the ordering change, the comment rewrite and the
arm.needsset are all on main now. Closing as superseded, not merging, per the duplicate-PR rule. The branchci/1124-0027is left in place.Pull request closed