Repository navigation
os/v3/puppy: cut.sh builds the payload fresh, image-probe.sh can stop the write, archive-image.sh keeps the tested image (engine#3287) - #3316
Conversation
…probe that can stop the write, and the tested image archived (engine#3287) cut.sh rebuilds the engine package, Lemonade and the lemonade-onebit-<tag>/ payload in every run (refusing a build dir whose 1bit is from another commit), cuts the image with build.sh (WOOF) or by patching a released base (BASE), runs image-probe.sh and archives the image with archive-image.sh. image-probe.sh reads the image's own 1BIT-DATA partition with debugfs at its byte offset (no root, no mount), checks /1bit against its SHA256SUMS, and compares the SFS's opt/1bit-package with the payload tree byte for byte plus the release identity. Exit 0 pass, 1 mismatch, 2 could not look - never a silent skip. archive-image.sh copies the exact image under the archive root with its sha256, verifies the copy, and never overwrites a tag. tests/image_probe_test.sh covers all three outcomes and the archive on a miniature image. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the probe and the archive (engine#3287) Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍(Review updated until commit 38dc99a)Here are some key observations to aid the review process:
|
…n the build job instead of skipping (engine#3287) The test builds a miniature appliance image and reads it back unprivileged (no loop device, no mount). Run in the CI image ubuntu:26.04 with those three packages: image_probe_test 16 passed, 0 failed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Persistent review updated to latest commit 387dd3e |
…-tools is installed; drop its baseline line Measured on this PR's build: ctest_skips said 'patch_sfs_atomic is in tools/ci/ctest_skips.txt but it no longer skips' (the container is root and now has mksquashfs/unsquashfs), and the row passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Persistent review updated to latest commit 38dc99a |
Closes the three release-tooling items of #3287:
os/v3/puppy/cut.shos/v3/puppy/image-probe.shos/v3/puppy/archive-image.shDepends on #3313 and #3315 for a cut of
mainto pass end to end (found by running this cut: a package from the pinned toolchain fails the payload-runpath gate without #3313; patch-sfs refuses main's newusr/local/sbin/1bit-grow-datawithout #3315). This PR does not include them.cut.sh <engine build dir> <tag> <out dir>Run from the engine tree that configured the build. In ONE run it: re-packages the engine from the build with
package-linux.sh(refusing a build whose1bit versionnames another commit, or a dirty tree), rebuilds Lemonade (+web app, libwebsockets static, as c35) at the tree's pin and checks the payload'slemond-onebit --versioncarries that pin, assembleslemonade-onebit-<tag>/from those two (RUNPATH$ORIGINonly,pack_normalise_modes, nothing group/other-writable), builds the image -WOOF=+KERNEL_DIR=throughbuild.sh, orBASE=<osfiles>throughpatch-sfs.sh(the c35 path, withonebit-models.txtandrelease-identityregenerated from the payload;BUILT-FROM.txtsays the base was not rebuilt) - thenmkimage.sh, then the probe (must exit 0), then the archive. Every staged directory is removed and rebuilt each run. It writes no stick, tags nothing, publishes nothing.image-probe.sh <img> (--payload <dir> | --engine-sha <sha>) [--tag <tag>]Reads the image's own
1BIT-DATAext4 withdebugfsat the partition's byte offset and the SFS withunsquashfs- no mount, no loop device, no root - so "could not mount the image" (what let the c34 probe print skipped and the write proceed) is no longer a path. Checks/1bitagainst the image's ownSHA256SUMS, the engine bytes andrelease-identity(engine sha, payload label), anddiff -r --no-dereferenceofopt/1bit-packageagainst the payload tree. Exit 0 PASS, 1 FAIL (mismatch), 2 REFUSED (could not look).archive-image.sh <img> <tag> [<root>]Copies the exact image to
$ONEBIT_IMAGE_ARCHIVE/<tag>/1bit-os-puppy-<tag>.img(default~/release-archive) with.sha256, the probe log,BUILT-FROM.txtand the payload listing; verifies the copy's hash; read-only; refuses to overwrite a tag.Measured (ryzen, 2026-11-22)
562dd9b6…): PASS against c35's payload (130 files byte for byte, identitylemonade-onebit-rc-2026-11-22-c35); FAIL (1) against a fresh build's engine sha and against c35's payload with one file changed; REFUSED (2) on a truncated image and with no expectation.4abd78bd…. Not booted (no stick written: owner's test-at-the-end rule).cut.shrefused a build dir whose 1bit was built from the previous commit (built from engine 'ebf92774d3f1', this tree is 423ea6372480: rebuild before cutting), and again after an incremental build that did not reconfigure.Tests
tests/image_probe_test.sh(ctestimage_probe, no root): a miniature image in mkimage's layout; 16 rows - pass,--engine-shapass, wrong tag, stale payload, a payload differing outside1bit/1bit, an extra file, an identity naming another engine, a frugal set disagreeing with itsSHA256SUMS(all exit 1), truncated / missing image / no expectation / malformed sha (all exit 2), and the archive (byte-identical,.sha256verifies, refuses to overwrite).scripts/pre-pr-checks.sh --base origin/mainfrom a clean worktree: 17 green, 3 skipped.🤖 Generated with Claude Code