ci(typecheck): the pinned Node download overlaps the checkout, as it already does everywhere else #2547
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!2547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/1124-0827"
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?
The Typecheck job was the last of the three jobs that need a pinned Node still paying for the 45 MB
nodejs.orgtarball serially, in front ofnpm ciand the compiler. The smoke/Docker job and both test legs already start that download at the top of their checkout and let the git fetch run over it.Baseline (measured,
/actions/tasksto 2026-11-24T08:27Z)Typecheck, 144 runs: median 22 s, p90 31 s, max 43 s.Test? no -Typecheck), 08:29:10 -> 08:29:49 = 39 s onmain.Change
The checkout step starts the pinned
v22.23.5download detached, beforegit init, into a staging directory renamed onto/opt/node-v22.23.5only oncebin/nodeis executable; the runtime step waits on a marker (bounded 60 s) and otherwise falls through to exactly the code it had: same bounded curl, same single retry, same[ -x ]assertion, samecheck-node-floor.jsverdict.Coverage unchanged — same pinned release, same symlink-over of node/npm/npx, same floor assertion, same
tsc --noEmit/No any/check-module-pathssteps in the same order.After: to be filled from the first
Typecheckrun on this head (see the run ids in the comments below).After (measured on this change's own runs)
CI / TypecheckTest (Node 22)sibling took 52 sCI / Typecheckmainafter the squash merge, host loaded: tests 1m11s/1m12s against a 56 s median, i.e. ~27% slower than usual across the whole matrixBaseline for the same job: median 22 s over 144 runs to 2026-11-24T08:27Z (p90 31 s, max 43 s); run 10539 / task 27940 on
mainwas 39 s under load.Like-for-like, using each run's own
Test (Node 22)leg as the load control: typecheck/test22 was 22/56 = 0.39 before and 18/52 = 0.35 after, so the download overlap took ~4 s off the job, which is what the legs' own note predicts for a 45 MB tarball against a 2.6 s checkout (3.5-6.1 s, minus what the checkout already covered).Coverage unchanged: same pinned
v22.23.5, same symlink-over of node/npm/npx, samecheck-node-floor.jsfloor verdict, sametsc --noEmit/No any/check-module-pathssteps in the same order. The prefetch cannot change the job's verdict: verified against all three paths (cold, prefetch failed, tree already present), and a.failedmarker leaves the old bounded two-attempt fetch in place.