qemu: rig agent, a framed guest shell on its own serial port (flare-edge M9 soak-lite) #40

Merged
noah merged 3 commits from rb/d15-rig-agent into rebuild 2026-10-31 19:40:35 -06:00
3 Commits
Author SHA1 Message Date
BFE EngineeringandClaude Opus 5.5 1e182a44e4 qemu: agent-test.sh counts a zombie child as killed (CI containers reap nothing)
ci / patches-apply (push) Successful in 1m1s
ci / test (pull_request) Successful in 9s
ci / kernel-build (pull_request) Skipped
ci / quality (pull_request) Successful in 28s
ci / mcdc (push) Successful in 35s
ci / bench (push) Successful in 7s
ci / test (push) Successful in 12s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / badges (push) Skipped
ci / qemu-tools (push) Successful in 2m21s
ci / bench (pull_request) Successful in 7s
ci / mcdc (pull_request) Successful in 35s
ci / kernel-symbols (push) Successful in 4m10s
ci / quality (push) Successful in 29s
ci / prune-artifacts (pull_request) Skipped
ci / qemu-tools (pull_request) Successful in 2m6s
ci / patches-apply (pull_request) Successful in 1m8s
ci / badges (pull_request) Skipped
ci / kernel-symbols (pull_request) Successful in 3m49s
Run 10403: under a CI job container's non-reaping PID 1 the script child
the deadline killed stays a zombie, and kill -0 still found it. The check
now reads the process state from /proc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS
2026-10-31 18:49:45 -06:00
BFE EngineeringandClaude Opus 5.5 bbc91618f8 qemu: agent-test.sh passes shellcheck (SC2016 on the guest-side script)
ci / quality (push) Successful in 34s
ci / badges (push) Skipped
ci / bench (pull_request) Successful in 1m5s
ci / prune-artifacts (pull_request) Skipped
ci / quality (pull_request) Successful in 35s
ci / badges (pull_request) Skipped
ci / test (push) Successful in 8s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / mcdc (push) Successful in 34s
ci / bench (push) Successful in 5s
ci / qemu-tools (push) Failing after 50s
ci / patches-apply (push) Successful in 21s
ci / test (pull_request) Successful in 20s
ci / mcdc (pull_request) Successful in 55s
ci / qemu-tools (pull_request) Failing after 49s
ci / patches-apply (pull_request) Successful in 1m29s
ci / kernel-build (pull_request) Skipped
ci / kernel-symbols (push) Successful in 4m52s
ci / kernel-symbols (pull_request) Successful in 5m54s
The qemu-tools job (run 10385) failed shellcheck on the single-quoted
script the test hands the agent: its expansions belong to the agent's
shell, so the info finding is disabled on that line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS
2026-10-31 18:11:34 -06:00
BFE EngineeringandClaude Opus 5.5 579ac260ca qemu: rig agent, a framed guest shell on its own serial port (flare-edge M9 soak-lite)
ci / test (push) Successful in 10s
ci / patches-apply (push) Successful in 25s
ci / quality (push) Successful in 36s
ci / badges (push) Skipped
ci / kernel-symbols (push) Successful in 4m38s
ci / mcdc (push) Successful in 37s
ci / bench (push) Successful in 6s
ci / qemu-tools (push) Failing after 15s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / test (pull_request) Successful in 9s
ci / prune-artifacts (pull_request) Skipped
ci / mcdc (pull_request) Successful in 34s
ci / bench (pull_request) Successful in 20s
ci / kernel-build (pull_request) Skipped
ci / qemu-tools (pull_request) Failing after 57s
ci / patches-apply (pull_request) Successful in 1m16s
ci / kernel-symbols (pull_request) Successful in 2m14s
ci / badges (pull_request) Skipped
ci / quality (pull_request) Successful in 2m51s
run.sh --agent SOCK adds a third pci-serial after ctl and rs485 (their
ttyS order is unchanged) and warden.agent on the command line. Stage-2
init then runs warden_agent (rootfs/etc/warden-lib.sh) on that port with
echo off: `@run ID SECS B64` runs a script and answers <<BEGIN ID>>, the
base64 of its output and <<END ID RC>>; `@chunk` pieces get past the
4095-byte cooked line; a script past its deadline is killed with its
process group and answers 124 (the panel BusyBox has no timeout). It is
the guest channel of flare-edge tools/soak/rig-qemu.py, which needs bus
reads and writes, the clock and /proc inside the gate image. Rig rootfs
only: no panel image carries it.

Tests: qemu/tests/agent-test.sh (sh and busybox sh, in CI) and new
run-sh-args-test.sh cases (agent last, warden.agent only with the flag).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS
2026-10-31 17:05:50 -06:00