Lets one QEMU run boot its own payload set, so flare-edge can boot the hook set (production payload plus the test-flavor warden-ui and wthctl) only for a flow that pins documents through the UI test hook, while every other flow in a batch keeps reading qemu/payload. Refs flare-edge #2054. Fixes#30.
Parts:
qemu/mkimage.sh: PAYLOAD_DIR (default qemu/payload) is copied into /usr/bin of both rootfs slots; a PAYLOAD_DIR that is not a directory fails closed. ui-drive.sh checks for warden-ui in the same directory.
qemu/tests/payload-dir.sh (14 checks): builds images on a copy of qemu/ and reads both slots back with debugfs. Wired into CI.
qemu/tests/test_qmp_drive.py (Fixes#30): every temp dir the module makes lands under one per-run root removed at exit (a run used to leave about 40 dirs in $TMPDIR); regression class TempDirs runs one test of each kind in a child under a fresh TMPDIR and checks it is empty afterwards.
READMEs (qemu/README.md, qemu/payload/README.md).
Local gate (bfe-mpc-0056, head eebfd23; this head only adds the merge of origin/rebuild bd4eb5c, whose tree change is #29 already on the branch, so the tree is identical):
qemu/tests/payload-dir.sh: all passed; 2 mutants of mkimage.sh caught.
qemu/tests/seed-dir.sh: passed.
python3 qemu/tests/test_qmp_drive.py: 71 tests OK; a cleanup mutant caught.
shellcheck -x qemu/.sh qemu/tests/.sh: clean.
flare-edge side (rb/w31-hook-set, stacked on flare-edge #2080) uses PAYLOAD_DIR: run-flowc-tests.sh ALL FLOWC TESTS PASSED (264 PASS), lane-prepush all steps passed.
Lets one QEMU run boot its own payload set, so flare-edge can boot the hook set (production payload plus the test-flavor warden-ui and wthctl) only for a flow that pins documents through the UI test hook, while every other flow in a batch keeps reading qemu/payload. Refs flare-edge #2054. Fixes #30.
Parts:
- qemu/mkimage.sh: PAYLOAD_DIR (default qemu/payload) is copied into /usr/bin of both rootfs slots; a PAYLOAD_DIR that is not a directory fails closed. ui-drive.sh checks for warden-ui in the same directory.
- qemu/tests/payload-dir.sh (14 checks): builds images on a copy of qemu/ and reads both slots back with debugfs. Wired into CI.
- qemu/tests/test_qmp_drive.py (Fixes #30): every temp dir the module makes lands under one per-run root removed at exit (a run used to leave about 40 dirs in $TMPDIR); regression class TempDirs runs one test of each kind in a child under a fresh TMPDIR and checks it is empty afterwards.
- READMEs (qemu/README.md, qemu/payload/README.md).
Local gate (bfe-mpc-0056, head eebfd23; this head only adds the merge of origin/rebuild bd4eb5c, whose tree change is #29 already on the branch, so the tree is identical):
- qemu/tests/payload-dir.sh: all passed; 2 mutants of mkimage.sh caught.
- qemu/tests/seed-dir.sh: passed.
- python3 qemu/tests/test_qmp_drive.py: 71 tests OK; a cleanup mutant caught.
- shellcheck -x qemu/*.sh qemu/tests/*.sh: clean.
- flare-edge side (rb/w31-hook-set, stacked on flare-edge #2080) uses PAYLOAD_DIR: run-flowc-tests.sh ALL FLOWC TESTS PASSED (264 PASS), lane-prepush all steps passed.
Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
mkimage.sh copies PAYLOAD_DIR (default qemu/payload) into /usr/bin of both
slots and fails closed when it is not a directory; ui-drive.sh checks for
warden-ui in the same directory. flare-edge boots the hook set (production
payload plus the test-flavor UI and wthctl) for a flow that pins documents
while the other flows of a batch keep reading qemu/payload (flare-edge#2054).
qemu/tests/payload-dir.sh builds the images on a copy of qemu/ and reads
both rootfs slots back with debugfs; wired into CI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
Every temp dir the module makes (a drive's out dir per run_script, the
console and QMP socket dirs) now lands under one root per run, removed at
exit; a run used to leave about 40 dirs in $TMPDIR. TempDirs runs one test
of each kind in a child under a fresh TMPDIR and checks it is empty after.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Lets one QEMU run boot its own payload set, so flare-edge can boot the hook set (production payload plus the test-flavor warden-ui and wthctl) only for a flow that pins documents through the UI test hook, while every other flow in a batch keeps reading qemu/payload. Refs flare-edge #2054. Fixes #30.
Parts:
Local gate (bfe-mpc-0056, head eebfd23; this head only adds the merge of origin/rebuild
bd4eb5c, whose tree change is #29 already on the branch, so the tree is identical):Generated with Claude Code
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG