fix: make the smoke test check results and avoid a WirePlumber stall
CI / check (pull_request) Successful in 9s
CI / native (pull_request) Failing after 1m4s

The smoke test only checked exit codes, so CI passed the probe steps
even though volume and mute never changed. Each step now asserts the
expected state after the action and prints pw-cat, WirePlumber and node
diagnostics on failure.

The test microphone was a null-audio-sink with a Source media class.
WirePlumber's event dispatcher intermittently stalls on such a node and
then links nothing and ignores volume changes, which is what failed in
CI. It is now a loopback virtual source, like echo-cancel; three local
runs in a row pass. Screenshots are re-rendered from the new setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SpriteandClaude Opus 5.5 committed 2026-11-22 22:58:18 +00:00
1 parent b18ab7aed1
commit 6c7f45d5f9
3 files changed
+62 -21

No files matched your search

+3 -3
View File
@@ -139,9 +139,9 @@ tools/smoke-test.sh /tmp/shot # needs pipewire, wireplumber, pw-cat, gtk4-
```
`tools/smoke-test.sh` starts a private PipeWire and WirePlumber in a temp
`XDG_RUNTIME_DIR`. The instance has two null sinks, a null source, and one
playback and one capture stream created with `pw-cat`; the CLI is used only
by the test harness. The script runs every probe action, checks the results,
`XDG_RUNTIME_DIR`. The instance has two null sinks, a loopback virtual
microphone, and one playback and one capture stream created with `pw-cat`; the CLI is used only
by the test harness. The script runs every probe action and checks its effect,
then starts the GUI under GTK's broadway backend. With `MOONMIX_SCREENSHOT`
set, the GUI renders each tab offscreen to a PNG and exits.