Repository navigation
Description
What's the problem
The parent criterion: "An old appliance upgrades to a build carrying the Go binary and rolls back with Bash still working" (pithead#4215). The RAUC A/B path (os/rauc, pithead os-update, scripts/release/appliance.sh) predates the Go CLI, and no tier4-kvm update leg asserts the binary's presence after an upgrade or that the CLI still works via Bash after a rollback.
What it impacts
Every existing appliance taking an update, and the upgrade/rollback guarantee every release depends on.
How I found it
Split from pithead#4215 after reading scripts/release/appliance.sh (bundle verification, keyring compare, sha256 sidecars, variant stamp) and the tests/os/run.sh phases (update, image-upgrade, crossupdate).
How important is it
High for the first release that carries a binary: an update that loses the working CLI on either slot breaks the appliance's entry point.
Acceptance criteria
- A tier4-kvm
updaterun on the head upgrades from an old build (without the Go binary) to a build with/opt/pithead/go/bin/pithead; after the upgrade the binary exists in the active slot andpithead statusandpithead doctorrun via Bash with clean exit status. - Rolling back to the old slot leaves the CLI working via Bash — the old slot has no binary and the launcher's missing-binary fallback must carry it — asserted in the same run.
- The existing update guards still pass: the
/etc/pithead-variantstamp compare andrauc infocompatibility metadata on the bundle that carries the binary. - Show the new assertions RED against a build without the binary (or the old head) and GREEN on the head; quote both runs or job ids.
Possible solutions
Extend the existing update phase with slot-aware assertions (binary present in the upgraded slot; CLI health check in both slots across the A/B flip) rather than a new phase, reusing the old-image seeding the update phase already performs.
Parent: #4215
Worker brief: Test tier: tier4-kvm (phase update).
Chunk 2/3 of pithead#4215. Depends on the sibling chunk that ships /opt/pithead/go/bin/pithead in the image: if the head's image lacks the binary, do not fake one into a bundle — block on that sibling.
Do: extend tests/os/run.sh's update-phase leg (the tests/os/phases/ modules, registered where CI/the battery runs them) to assert, across an old-image -> new-image upgrade and a rollback: binary present in the upgraded slot, pithead status/pithead doctor work via Bash after upgrade, and the CLI still works via Bash after rollback with no binary in the old slot. Keep the existing variant-stamp and rauc compatibility guards passing.
Constraints: branch from origin/develop-v2.1.0 (merge the base once the sibling lands); draft PR from the first working commit; no comments in code; remember the old-image warmup rule (boot job first for a cached baseline, then the old_image_commit leg); submit only tier-4 through bin/bench-submit with --base develop-v2.1.0; paste bench-ci evidence blocks unedited.
Activity
pithead-developer commentedon Dec 3, 2026
Blocked on #4528. Blocked on pithead#4528 (open, no PR): this chunk's acceptance criteria need the candidate image to carry /opt/pithead/go/bin/pithead, and the Worker brief states explicitly that when the head's image lacks the binary I must block on the sibling and not fake one into a bundle. Verified at head origin/develop-v2.1.0 (190234b): there is no go/ tree and no build step placing a binary at /opt/pithead/go/bin/pithead — only the launcher's missing-binary fallback (lib/pithead/00a-impl-launcher.sh:172, with its tier-1 contract test tests/stack/standalone/test_impl_launcher.sh) and docs; the go-module PR #4527 is still open, and the sibling ship task #4528 is open with no PR. Finished so far: full design recon — the new slot-aware assertions belong in the old-image-seeded cross-version leg phase_crossupdate (tests/os/phases/crossupdate.sh), which boots $PITHEAD_OLD_IMAGE from bench-ci options old_image/old_image_commit, provisions, installs the candidate bundle and waits for pithead-boot's own commit gate: assert the binary present in the upgraded slot with pithead status and pithead doctor exiting clean via Bash after upgrade, then roll back and assert the old slot has no binary and the CLI still works via Bash (the launcher's missing-binary fallback), while the /etc/pithead-variant stamp compare and rauc info compatibility guards on the binary-carrying bundle stay green; the phase's existing legs (tests/os/phases/update.sh) build both A/B slots from the same tree, so they cannot produce a real old build. When #4528 closes: merge develop-v2.1.0 into the branch, implement the leg registered in run.sh, and remember the old-image warm-up rule (boot job on the advertised VERSION-equal baseline first, then old_image_commit; timeout-minutes 240), submit via bin/bench-submit with --base develop-v2.1.0, and check pithead#4674 (fleet-wide red Build image (tor) row holds tier4 submits) before submitting. Unblocks when #4528 merges into develop-v2.1.0.
The runner resumes this issue when that one closes.