From 844e1080ffbd12df1fe7409ed7fdb3d64c39f710 Mon Sep 17 00:00:00 2001 From: diviocity Date: Tue, 1 Dec 2026 09:18:22 +0100 Subject: [PATCH] Allow slow guests to finish the Xvfb readiness query --- tests/x11/README.md | 2 ++ tests/x11/graphics.sh | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/x11/README.md b/tests/x11/README.md index 8faaea2..34034a0 100644 --- a/tests/x11/README.md +++ b/tests/x11/README.md @@ -132,6 +132,8 @@ The AMD64 NVMe sidecar fixture completed extraction, verified the package comman The worker built both instrumented probes against the existing signed SDKs and verified their target interpreters, GLX library dependencies and AArch64 load-segment alignment. The signed BusyBox shells passed controls for the default timeout, an override, invalid input and a failing client. See `foundation/release-mode-migration-glx-probes-01` and `foundation/release-mode-migration-glx-timeout-test-01`, receipt SHA-256 `6767c427bfcba8e771b8709ae07cbae6b40b421fb8c69d77e301a133f5234d21` and `c41f5f5a4b95ed98fe343d0a45ff7703b13a675292a5b5646ae36b8699451ae5`. +The first AMD64 ordinary-user fixture compiled with the installed GCC headers and LTO tools and passed EGL. Its readiness timer stopped `xset q` while it queried Xvfb, after the client printed `Keyboard Control:`. The readiness check now allows eight attempts of up to 90 seconds each. Both signed BusyBox shells passed controls for a server that started after retries, persistent timeouts and a server that exited. See `foundation/release-mode-migration-amd64-ordinary-readiness-01` and `foundation/release-mode-migration-glx-readiness-test-01`, receipt SHA-256 `7fc6d9315a94af6cc22611ee72c352c78a6a9df156744023d856cd982897719a` and `212f493acea367d0dad472b89508e4f3c273b4e93679db42300afee9b56534d2`. + 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`. The 2 GiB AMD64 migration guest reached the 5,400-second QEMU deadline during the GCC update. The worker read the disposable snapshot after QEMU exited. The installed binutils 2.43.1-5 and FreeGLUT 3.4.0-2 records showed PGP validation. The GCC 14.2.0-3 directory existed, but its installed record was absent and the permission migration was unverified. See `foundation/release-mode-migration-amd64-upgrade-terminal-01`, receipt SHA-256 `c66ab9af9e3c0305ba3b03fe2e6add7833da485e9b4cc8b47793dde8bf935a25`. diff --git a/tests/x11/graphics.sh b/tests/x11/graphics.sh index b295d76..39100fb 100644 --- a/tests/x11/graphics.sh +++ b/tests/x11/graphics.sh @@ -56,10 +56,12 @@ Xvfb-glx "$DISPLAY" -auth "$XAUTHORITY" -nolisten tcp -noreset -screen 0 128x128 +extension GLX +iglx >/tmp/xvfb-glx.log 2>&1 & server=$! attempt=0 -until timeout -k 5 15 xset q >/tmp/xset-glx.log 2>&1; do +# Loading xset and reading the server settings can take more than 15 +# seconds on an emulated guest even after Xvfb opens its socket. +until timeout -k 5 90 xset q >/tmp/xset-glx.log 2>&1; do kill -0 "$server" attempt=$((attempt + 1)) - [ "$attempt" -lt 30 ] + [ "$attempt" -lt 8 ] sleep 1 done -- 2.56.1