From c098c2d02bf81f433d5a80f7da5f09b3073a48ae Mon Sep 17 00:00:00 2001 From: diviocity Date: Tue, 1 Dec 2026 07:33:31 +0100 Subject: [PATCH] Stream package migration progress to guest serial --- tests/x11/README.md | 2 ++ tests/x11/public-mode-upgrade.sh | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/x11/README.md b/tests/x11/README.md index 1ac601c..0666c4d 100644 --- a/tests/x11/README.md +++ b/tests/x11/README.md @@ -128,6 +128,8 @@ The AMD64 sidecar and signed migration fixtures keep their original backing disk The AMD64 SATA sidecar fixture passed all six compiler checks and verified the sidecar checksum. After 5,314 seconds, its ext2 snapshot showed 5,620 more inodes than the original backing disk. QEMU reached the 5,400-second deadline during extraction. The NVMe replay verified the same backing disk's checksum and ext2 format, then booted the same volume identity. The SATA timeout evidence is in `foundation/release-mode-migration-sata-sidecar-progress-01`, receipt SHA-256 `513b0c8848a62857d0c04a3df5f12b716b8f27a0c355a8b0704006dc114921ee`. +The migration fixture streams the package transaction to serial and keeps a copy for its hook-error check. The worker ran the fixture's logging block with the signed BusyBox shell and tee applet for each target. It observed both output streams before releasing a held package command, verified that tee preserved a failed package command's exit status, and checked that a reported hook failure stopped the fixture. See `foundation/release-mode-migration-stream-fixture-01`, receipt SHA-256 `c5aecd55f7659f68abf295bad3c8a7b86920fc2d884321e344d422433f33faf5`. + Use the same signed feed for the downloadable X11 sidecar. Cold-install `vinix-release-desktop` into one client. Into a second client, cold-install both `vinix-release-desktop` and `vinix-release-x11` with the target font hooks enabled. ```sh diff --git a/tests/x11/public-mode-upgrade.sh b/tests/x11/public-mode-upgrade.sh index 0454e6c..e2c63f2 100644 --- a/tests/x11/public-mode-upgrade.sh +++ b/tests/x11/public-mode-upgrade.sh @@ -8,12 +8,11 @@ test "$(id -u)" = 0 test "$(vpac o --quiet /usr/bin/pkg)" = vinix-pkg test "$(stat -c '%a' /usr/include/libiberty)" = 700 -pkg upgrade >/tmp/public-mode-upgrade.log 2>&1 || { - cat /tmp/public-mode-upgrade.log - exit 1 -} -cat /tmp/public-mode-upgrade.log -if grep -E '^error:|failed to run .*hook|scriptlet failed' /tmp/public-mode-upgrade.log; then +log=/tmp/public-mode-upgrade.log +set -o pipefail +pkg upgrade 2>&1 | tee "$log" +set +o pipefail +if grep -E '^error:|failed to run .*hook|scriptlet failed' "$log"; then exit 1 fi -- 2.56.1