← Back to Pull requests

Boot a real VM in CI before every release, and fix Windows #1

Closed
unknown closed this pull request without merging on Oct 12, 2026 20:16 UTC
View on GitHub
unknown unknown commented on Oct 12, 2026 17:42 UTC
Author

CI never booted a VM, so nothing showed that a released binary could start, run and stop a guest. A new e2e job (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_support is 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 that start fails 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_init in chardev/char-pipe.c) and serves only that one, so the guest never ran. Windows now gets no control channel and stop powers 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 on PATH, rejected vmmbox's arguments and left the VM key world-readable. Windows' own OpenSSH is now preferred.
4. Guest panic. start now 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 max boots 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 max panic 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 warnings clean on all four targets. In CI on this tree: both full boots and all three nohw jobs pass. Not exercised: a boot on Linux arm64, macOS or Windows arm64 (the runners cannot), or bare-metal Windows.

Diff: 371 lines (+278 / -93) across 4 files Reviewer: ericcurtin Review duration: 153m
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
0.43
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.8% (MEDIUM) · Higher = larger blast radius
42.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.9% · Safe to merge
16.9%