Boot a real VM in CI before every release, and fix Windows #1
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 371 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1"
general
weight: 0.35
ericcurtin
CI never booted a VM, so nothing showed that a released binary could start, run and stop a guest. A new
e2ejob (ci/e2e.sh) does that for each shipped binary, and the release waits for it. The Windows test showed vmmbox could not boot a VM there, so the fixes are included.What runs where
Probing GitHub's runners found a hypervisor on only two.
| Platform | Hypervisor | Test |
|---|---|---|
| Linux x86_64 | KVM (after a udev rule) | full boot |
| Windows x64 | WHPX | full boot |
| Linux arm64 | none (no
/dev/kvm) |nohw|| macOS arm64 | none (
kern.hv_supportis 0) |nohw|| Windows arm64 | none (WHPX off; enabling it needs a reboot) |
nohw|Full boot: pull, boot, run commands, check the shared home both ways (Linux, macOS), stop gracefully, boot again to check the disk survived, stop,
rm.nohw: pull the image for that architecture and check thatstartfails with a clear error; it warns if the runner can boot after all.Windows fixes
1. QMP pipe. QEMU's Windows pipe chardev blocks at start-up until a client connects (
win_chr_pipe_initinchardev/char-pipe.c) and serves only that one, so the guest never ran. Windows now gets no control channel andstoppowers the guest off over SSH, falling back to killing QEMU. macOS and Linux are unchanged. (Loopback TCP is reachable by other users; AF_UNIX needs a new dependency and unsafe code.)2. No sound device. QEMU refuses to start; vmmbox now restarts without sound, as it already does for the GPU. The restart also starts a new virtio-fs server (it exits with QEMU, which had already connected), so the fallback works with a shared home; the GPU one never did. CI exercises this on Linux with
VMMBOX_AUDIO=bogus.3. Wrong
ssh. Git for Windows' ssh, ahead of Windows' OpenSSH onPATH, rejected vmmbox's arguments and left the VM key world-readable. Windows' own OpenSSH is now preferred.4. Guest panic.
startnow fails in seconds with the panic message instead of after the 300 s SSH timeout; the SSH timeout error also says what ssh last complained about.Flake, and an open question
On the Windows runners WHPX runs inside a Hyper-V VM, and now and then the guest kernel panics at boot in
fpu__init_system_xstate: 1 in about 10 of the-cpu maxboots I could see. The CI test retries only that failure (up to 3 times, with a warning). I did not change the CPU model, since I cannot test bare-metal Windows: does-cpu maxpanic outside CI?Not fixed
Ubuntu 24.04's
apt install virtiofsd(1.10) lacks--translate-uid, which vmmbox always passes, so VMs do not start there, and the install hint recommends it. The Linux job uses Homebrew's virtiofsd.Testing
183 unit tests,
clippy -D warningsclean on all four targets. In CI on this tree: both full boots and all threenohwjobs pass. Not exercised: a boot on Linux arm64, macOS or Windows arm64 (the runners cannot), or bare-metal Windows.