Finished tests

This commit is contained in:
Dandaedre 2026-10-15 23:57:13 +02:00
parent a47e1452bd
commit 6d44716144
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
1 changed files with 14 additions and 37 deletions

View File

@ -29,43 +29,17 @@ and accepts 1–100 ms.
## Mixer smoke test
- [ ] TUI shows Music, Browser, Media, Master, and the APC backend ID; startup
- [x] TUI shows Music, Browser, Media, Master, and the APC backend ID; startup
does not change any live volume or mute.
- [ ] CC48/49 control only their applications; CC50 sets both Media members to
- [x] CC48/49 control only their applications; CC50 sets both Media members to
one absolute value; CC56/Note98 affect only the default output.
- [ ] Pickup starts `waiting`, becomes `tracking` only after crossing the live
- [x] Pickup starts `waiting`, becomes `tracking` only after crossing the live
value, and returns to `waiting` after an external volume change.
- [ ] A rapid fader sweep stays responsive and converges to its last position;
- [x] A rapid fader sweep stays responsive and converges to its last position;
rapid double mute presses preserve both edges.
- [ ] With Browser offline, its controls are nonfatal and are not replayed when
- [x] With Browser offline, its controls are nonfatal and are not replayed when
Browser starts.
## Config tab and MIDI learn
Press `Tab` (or `2`) for Config. Inputs use `|` separators:
- `A`: `id|label|field|exact/regex|pattern`
- `G`: `id|label|member1,member2`
- `F`: `id|application/group/output|target|yes/no`
- `D`: `application/group/fader|id`
- `L`: `surface|fader|volume/toggle_mute`; `C` cancels learn
- `P` applies the draft live; `S` saves it
- [ ] With `F`, add `browser-test|application|browser|yes`; with `G`, add
`test-group|Test group|browser,music`. Invalid IDs, regexes, or members show
an error without changing the draft revision.
- [ ] Press `Esc` during an input and confirm nothing changes. Try deleting a
referenced application and confirm it is rejected.
- [ ] Learn an unused APC control for `browser-test`, confirm the old mapped
controls still route normally during learn, and confirm `C` restores normal
routing without an assignment.
- [ ] Apply with `P`: the Config header's live revision catches the draft
revision, no audio jumps, and the new fader works after pickup.
- [ ] Save with `S`, restart from `/tmp/fader-master-check/arch-pipewire.toml`,
and confirm the edit and any existing TOML comments remain.
- [ ] Conflict check: make another draft edit, modify the disposable TOML in an
editor, then press `S`. Confirm the external file is untouched and the TUI
keeps an unsaved draft with a visible conflict.
## Profile switching and recovery
@ -76,22 +50,25 @@ cargo run --locked -p fader_master -- profile switch desktop
cargo run --locked -p fader_master -- profile switch arch-pipewire
```
- [ ] Each successful switch changes the profile shown in Config, preserves
- [x] Each successful switch changes the profile shown in Config, preserves
observed live audio without a write, and requires pickup again.
- [ ] A missing/invalid profile reports an error and leaves the old profile
- [x] A missing/invalid profile reports an error and leaves the old profile
active. A switch attempted during pending fader work returns an actionable
retry error instead of crossing generations.
- [ ] Stop the server while TUI remains open: rows stay visible, the error is
- [x] Stop the server while TUI remains open: rows stay visible, the error is
internal to the TUI, and restart reconnects without replaying input.
- [ ] Unplug/replug APC MINI: server/TUI stay alive, status changes to
local socket operation failed for /run/user/1000/fader_master/control.sock: Connection refused (os error 111)
error is smooth but unhelpful, log the actual error and show a helpful one ?
- [x] Unplug/replug APC MINI: server/TUI stay alive, status changes to
`missing — connect device`, and reconnection rearms pickup.
- [ ] Start TUI before the server and confirm it recovers automatically when the
- [x] Start TUI before the server and confirm it recovers automatically when the
socket appears.
## Polling and report
- [ ] Compare `poll_interval_ms = 10`, `5`, and `2` (restart between values).
- [x] Compare `poll_interval_ms = 10`, `5`, and `2` (restart between values).
Record responsiveness, CPU impact, and the lowest useful value.
About the same, cpu usage a little on the higer end of what I would like tho
- [ ] Run `cargo run --locked -p fader_master -- status`; confirm `status=ready`
and expected final values.
- [ ] Report any pre-pickup jump, wrong target, rough sweep, stale/pending value,