Proposal: Headless acceptance test runner for fast CI and safe local verification
Background & Problem
Currently, visual acceptance tests in test/acceptance.d/ rely on the full ISO test harness in omarchy-iso running inside a QEMU/KVM virtual machine. As noted in agents/skills/acceptance-tests.md, running tests directly inside the active host desktop is unsafe because tests interact with active windows, grab focus, and modify shell configuration.
While full KVM ISO testing remains essential for installer and bare-metal lifecycle validation, it introduces significant friction for day-to-day development and PR workflows:
- Environment restriction: Standard GitHub Actions runners (and many non-bare-metal CI environments) lack nested KVM virtualization (
/dev/kvm). - Turnaround time: Booting the full live ISO image and setting up the environment takes 1–2 minutes per test run.
- Developer workflow: Local developers cannot quickly verify a single acceptance test in the background without launching the ISO harness.
Tested Solution (Headless Wayland Container PoC)
We explored and benchmarked running Omarchy's acceptance suite headlessly inside an isolated Arch Linux container using modern Hyprland (Aquamarine backend):
- Virtual Display & Seat:
- Linux kernel
vkms(Virtual Kernel Modesetting) module exposes a virtual DRM render node (/dev/dri/card0). - A lightweight
seatddaemon manages session permissions without needing a full systemd-logind stack.
- Linux kernel
- Rendering:
- Software rendering via Mesa's LLVMpipe (
GALLIUM_DRIVER=llvmpipe/LIBGL_ALWAYS_SOFTWARE=1).
- Software rendering via Mesa's LLVMpipe (
- Control & Capture:
- Hyprland initializes on
Virtual-1. hyprctlIPC sockets connect reliably for window manipulation and state queries (hyprctl monitors,hyprctl layers).grimcaptures pixel-perfect PNG frames, andtesseractperforms OCR assertions.
- Hyprland initializes on
Benchmark Results (Cloud VM Runner PoC)
In our testing on a standard cloud instance (4 vCPU, no physical GPU):
- Compositor startup latency: ~250ms to Wayland socket readiness.
- End-to-end execution time: ~1.5s – 2.0s per test (Hyprland init -> app launch ->
hyprctlstate query ->grimcapture -> OCR assertion -> clean teardown). - Isolation: Complete isolation from the host session, preventing any input hijacking or config mutation.
Proposed Plan
- Add a lightweight headless runner script (e.g.
test/acceptance-headless [test-name]) backed by a minimal container/setup. - Integrate this runner into GitHub Actions CI so that PRs can validate visual regressions on every commit within seconds, complementing the heavier ISO release test suite.
Would you be open to a PR introducing this headless container harness?
Hi @Sebo1411 👋
Thanks for the proposal. GitHub's hosted Linux runners actually do have /dev/kvm, and omarchy-iso now publishes an installed Omarchy as a ready-to-boot VM image every night (nightly.omarchy.org). On a hosted runner it reaches the desktop in less than 10 seconds. That gives the acceptance suite the real installed system.
I also have some patches that make Hyprland work without a GPU (that's how tryomarchy.dev works only with a CPU) which we can explore as well but I am more comfortable with running our tests in a real VM installed from an official ISO so we don't introduce any drift.
Makes sense for CI. The main idea was really for local development: letting contributors run quick visual checks before pushing, without needing to download a large VM image or run QEMU in the background.
But keeping a single environment with the official image makes total sense to avoid drift. Good to know how nightly images are set up.