3.1 KiB
3.1 KiB
S031 — Visualiser keeps following the system output: test file
Written by the worker that built it, run by the test phase. Nothing here has been tested until its Result says so.
Built
crates/shell/src/audio.rs·default_sink,must_restart(sink_then, sink_now, since_data, sink_running); the audio thread polls the default sink every 2 s and restartspw-recordon a change or a 4 s stall while the sink is RUNNING.crates/shell/src/wl.rs·bar_barsno longer needs a playing player.
Checks
Risk: HIGH = wrong result · MED = feature broken · LOW = comfort. How: unit · integration · by hand.
| # | Risk | Do this | Expect | How | Result |
|---|---|---|---|---|---|
| 1 | HIGH | cargo test --release -p caelestia-shell the_tap_restarts |
passes | unit | — |
| 2 | HIGH | Test shell (private D-Bus, copied config, idle lock off), play a quiet tone with pw-play; two grim crops of the edge visualiser 200 ms apart |
crops differ | integration | — |
| 3 | HIGH | Same, after caelestia shell gameMode enable then disable |
crops differ again | integration | — |
| 4 | HIGH | Make a null sink default (pactl load-module module-null-sink), play the tone to it, crops 200 ms apart; unload the module by ID |
crops differ within ~4 s of the switch; after unload and tone on the real sink they differ again | integration | — |
| 5 | MED | Suspend the sink (pactl suspend-sink NAME 1), wait, resume, play the tone |
bars move again | integration | — |
| 6 | MED | Silence everything, crops 200 ms apart | crops match | integration | — |
| 7 | HIGH | After checks 3 to 5: ps --ppid <test shell pid> -o stat=,comm= |
no Z pw-record; exactly one live pw-record |
integration | — |
| 8 | MED | Dashboard open with a paused player and sound from another app | dashboard bars and bar now-playing bars move | by hand | — |
| 9 | MED | Lyrics and desktop shapes with the player paused | they stay off | by hand | — |
| 10 | HIGH | Live, after the approved shell restart: toggle game mode on and off, play music | desktop bars move with the sound | by hand (user) | — |
| 11 | MED | Live: switch the default output in the sound settings and back | bars keep moving, within a few seconds | by hand (user) | — |
Doubts
- The stall was not reproduced; the cause is from reading. If check 3 fails, look at the game mode config reload path (
game_mode_shellkeepsbackground.visualiser.enabledfalse) instead. - Switching defaults must use only a null sink made for the test and undone by ID, never the user's sink.
Results (S036)
- 1 pass (
the_tap_restarts_..., in the full suite). 2-11: not run: cut off (usage limit).
Results (S036 round 2)
- 2-9 not run: in the nested test shell the real default sink was muted (found
Mute: yes; it wasnoat the start of the session, cause unknown, left as found), so the shell starts nopw-record(visneeds!muted). Making a null sink the default was refused by the permission system, so checks 3-5, 7 need the user's OK or the live run. Doubt: only the dashboard opened a tap path; not confirmed. - 10, 11: not run (live).