ci: the smoke job compares the floor, not the major number (#2488) #2497
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!2497
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/1124-0002"
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?
Fixes #2488
#2491 landed the part the issue described: the smoke job downloads and asserts a floor runtime instead of using the runner image's Node 20. But the assertion it landed was a major-number test:
That accepts 22.0.0 through 22.17.9, every one of which is below the floor and is exactly the runtime that cannot
require('./segment.ts')- the failure the step was added to catch, reported as a pass. The same block stood in theTypecheckjob.The comparison now lives once, in
scripts/check-node-floor.js: it reads the>=X.Y.Zform out ofengines.node, compares three numbers, refuses a spec or a version it cannot parse (never "at or above"), and takes--titleso each job keeps the::error title=tag that names the check. Both jobs call it; the pinned tarball and the symlink-over are untouched.test/node-floor.test.js(12 assertions) holds it: 22.17.9 and 21.99.0 refused, 22.18.0 and 22.20.0 accepted,v22.23.5accepted,22/v22.18/bananarefused, the job title reaches the log, the smoke job provisions its runtime before it starts the smoke client, and nocase "$(node --version)"line comes back to ci.yml.Verified:
node scripts/syntax-check.js555 files (550 JavaScript, 5 TypeScript); node-floor 12, ci-disk-hygiene 13, classify-change 6, node-surface 8, doc-citations 11 - 50 assertions, 0 failures;audit-port-types,audit-devicesandcheck-control-bytes.tsclean. The 472-suite full run does not fit this host's 420 s foreground cap and background node is unusable here (the wrapper printsstdin is not a ttyand exits 1), so the whole suite is left to CI.