`sweep-rails.sh` prints one verdict table across `macos-11 … macos-14` and that
table is read as four rails of one device. It was not: `boot-x86.sh` rebuilds
in-tree QEMU on every boot unless `QEMU_BIN` names something else, and the sweep
set nothing, so each rail booted whatever the tree held when its turn came.
Nothing forced those four to agree, and the way they stop agreeing is not
exotic. A sweep takes the better part of an hour. Anyone editing Rust during it —
which is the obvious thing to do with an hour of waiting, and which this session
deliberately did *not* do only because the trap was noticed — splits the run in
two, and the output is a well-formed table that looks exactly like one binary's.
The rails are the populations the table compares; they have to be one build or
the comparison is not one.
So the sweep now builds once, copies the result to a per-run pin, and exports
`QEMU_BIN` for every rail. Three details are load-bearing and each is a rule this
repository already paid for:
- **Exported, never argv.** `pkill -f 'qemu-system-x86_6[4].*reims-vgpu'` matches
whole command lines, so a pin named on one would match the shell that named it
and the shell would kill itself. An environment variable never appears in
`/proc/pid/cmdline`.
- **The pin lives in `vendor/qemu/build`.** QEMU finds `pc-bios` relative to its
own path, so a copy in `/tmp` dies on `kvmvapic.bin`.
- **A trap removes it.** Otherwise every sweep leaves ~110 MB behind. That is not
hypothetical: this working tree currently holds 58 such pins from earlier
sessions, 6.3 GB, none of them cleaned up by the harness that made them.
An operator who sets `QEMU_BIN` themselves keeps it, and the script says which of
the two happened on its own stdout, so a table can be attributed to a build after
the fact.
Component: `scripts/app-sweep-probe/sweep-rails.sh` (x86/Vulkan verification
harness only; no crate code touched, so no Rust test or clippy arm is affected).
Verified: `bash -n` clean. The four-rail sweep that motivated this ran to
completion immediately before it, on one tree, and reported macos-11 1/7,
macos-12 6/7, macos-13 7/7, macos-14 7/7 with **no guest kernel panic on any
rail** — checked by grepping each boot's own stdout, which outranks `probe
exit=0`.
Not verified: the pinned path has not itself been exercised by a full four-rail
run yet — the run above predates this change. The next sweep is that test, and
its first line will say `pinned …` if it took.