Streams that appear while WirePlumber is still starting up can wedge its
event queue: no default sink is chosen, nothing is linked and volume
changes are dropped. This made the smoke test fail intermittently
locally and in CI. The test now polls moonmix-probe until a default sink
exists before starting the streams, then until the playback stream is
linked; four local runs in a row pass.
Also play a regular file instead of /dev/zero (PipeWire 1.4's pw-cat
exited silently on it in CI) and change the volume of the active sink,
since CI's PipeWire 1.4 did not apply a volume set on a suspended
null sink.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
tools/smoke-test.sh starts a private PipeWire + WirePlumber with null
sinks/source and test streams, exercises every action through
moonmix-probe and renders the GUI offscreen under broadway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>