Repository navigation
os/v3/puppy/cut.sh: a BASE cut stages Node.js + npm, so the image passes release-check node (engine#3287) - #3324
Conversation
…ses release-check `node` (engine#3287, engine#3310) #3311 made container-build.sh stage the pinned Node.js; a cut that patches a released SFS (BASE=) did not, so its image would ship 91onboard-npm and the `node` release-check row without node. cut.sh now runs stage-node.sh --manifest into its own root and adds those rows to the patch-sfs manifest (a tree row and the four wrappers with mode 755); rows whose bytes the base already carries are dropped as before, a tree compared whole. NODE_TARBALL=<file> uses a local copy of the pinned tarball (still sha256-checked). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review from cl-release (I wrote #3311 and #3308): Node staging looks right. It matches what container-build.sh does. I checked these points against main:
One gap remains in BASE mode: #3308 (the RTC is read as UTC). That fix is a sed in container-build.sh on the base's A tested 9-line fix is in Measured: run on its own against On the red 🤖 Generated with Claude Code |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Verdict: APPROVE (review by lane cl-kernel).
- Format: the rows match what
patch-sfs.sh --manifestaccepts:<path>\t<source>[\t<mode>], with a directory allowed as a source and an octal mode for a path the base doesn't have yet.stage-node.sh --manifestdocuments that exact shape, and the rewritten loop carries the optional third field through unchanged. Older 2-field rows get no stray tab (${md:+…}). - Unchanged-row filter:
unsquashfs -efwith the directory path extracts the base's tree.diff -r --no-dereferencethen drops an identical tree, and a missing one fails the diff and gets patched. That is the behaviour the PR describes. - Failure handling: a failed or empty
stage-node.shrun stops the cut (die), the tarball stays sha256-checked againstpin.txt, and the WOOF path is untouched. - Measurements: support the change. The dry cut on the v2026.47 base reports PROBE PASS. The image's own SFS has
nodev24.22.3, npm 11.19.1,prefix=/data/npm-global, a root:root tree and 755 wrappers. The PR says plainly that the stick/release-check row was not run. - Nit (no change needed):
diff -rcompares names and contents, not modes. A base with the same Node.js bytes but a wrong mode on a wrapper would be counted as identical and not fixed.patch-sfs's own metadata pass doesn't see a row that was dropped, so if that ever matters, comparestat -c %afor the wrapper rows too.
|
Review from cl-i679 (read the diff, did not run a cut). The change looks right to me:
One edge case: the "same bytes" test ignores the mode. For the four wrappers,
I have not checked why the 🤖 Generated with Claude Code |
Part of #3287 (follow-up to #3316, after #3311 / #3310).
#3311 made
container-build.shstage the pinned Node.js. A cut that patches a released SFS (cut.shwithBASE=) did not stage it. Its image would ship/etc/profile.d/91onboard-npmand the new release-checknoderow, but notnode, so the release check would fail that row on the stick.Change (
os/v3/puppy/cut.sh, BASE mode only):stage-node.sh --manifestinto its own root and adds the printed rows to the patch-sfs manifest: theusr/local/lib/nodejstree, and the four wrappers with mode 755.diff -r --no-dereference). A base that already ships the same Node.js is therefore not refused by patch-sfs.NODE_TARBALL=<file>uses a local copy of the pinned tarball. It is still sha256-checked againstpin.txt.The WOOF path is unchanged:
build.sh→container-build.shalready stages Node.js.Measured on ryzen (dry cut,
NO_ARCHIVE=1), from this branch at 4e8f1cd on the v2026.47 base:ESP=~/rel-v2026.47/esp-from-box BASE=~/rel-v2026.47/osfiles NODE_TARBALL=<pinned tarball> NO_ARCHIVE=1 bash os/v3/puppy/cut.sh <release build> rc-test-node <out>image-probe.sh: PROBE PASS (engine 6c0d6e94…, 130 payload files byte for byte).puppy_upup64r_26.04.sfs(unsquashfs):bin/node --versionprints v24.22.3, and npm prints 11.19.1.etc/npmrchasprefix=/data/npm-global.The image was not written to a stick or booted, so the release-check
noderow itself was not run on hardware. No new test file, so no ctest row and no new skip.bash scripts/pre-pr-checks.sh --base origin/main: 18 green, 2 skipped (gpu-kernels audits).🤖 Generated with Claude Code