ci: the smoke job runs on the floor runtime, because the source is TypeScript now #2491
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!2491
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/smoke-floor"
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 first converted module broke a job that had no runtime guarantee, and the crash stack says exactly why:
Server smoke and Docker buildruns on the runner image's Node 20.20.2, andengine/segment.tscannot be loaded below 22.18 — type stripping is what makes a.tsfile runnable at all. So the job driving the API end to end was testing a tree it cannot load, while its image build passed beside it. Filed as #2488; this is the fix.Why the old design stopped being valid. This job deliberately printed its runtime rather than asserting one, on the argument that the matrix holds the version line and this job only exercises the HTTP surface. That held while every file the smoke client loaded was JavaScript. A
.tsmodule in the server's require graph makes the runtime a property of the tree under test, not a preference — so the step now asserts the floor and names it in the failure.What changes (
.forgejo/workflows/ci.yml, thedockerjob only):Provide the runtime the smoke client needsv22.23.5tarball the Typecheck job and the test legs use, symlinked over the image's NodeWhich runtime is running thisnode --version && npm --versioncasethat fails with::error title=Server smoke and Docker build::… below the 22.18 floor the repo declaresNothing else moves: same smoke script, same 180 s bound, same eight Dockerfile static checks, same
::errortitles, same detach-and-report shape. The provisioning step keeps the job'sif:guard, so a data-only diff still skips it exactly as before, and the tarball is not re-downloaded if a previous step already unpacked it.Evidence this is the whole failure and not a coincidence
v20.20.2/npm 10.8.2in theEBADENGINEwarning) and theSyntaxError: Missing initializer in const declarationthat Node 20 produces when it parsesconst x: Tas JavaScript.Test (Node 22)+Test (Node 24)were green on the same commit: they already provision 22/24.Gates:
node scripts/check-ci-disk-hygiene.jsexit 0 (7 workflow files),node scripts/syntax-check.js548 files all OK. This PR touches no source file, so the suite is unaffected — the proof is the smoke job on this PR itself: it must go green having assertedv22.x.