From ac9e4d89f6f98790c55c276970e487b3626db66a Mon Sep 17 00:00:00 2001 From: Derek Ross Date: Sun, 1 Nov 2026 22:20:25 -0500 Subject: [PATCH] omamobile-audio: the watchdog's c9 rise test no longer races the clock The test set the "measured" 33 C 0.2 s after the watchdog started and expected its baseline at 0.6 s. On a loaded machine the step sometimes landed after the baseline was taken, so the watchdog saw 25 -> 41 C instead of 33 -> 41 C and the test failed for timing alone. It failed three times on 2026-11-01 (pull requests #256, #313, and main), and it aborted every nightly development publish, which builds and tests every package first: pkgs.omamobile.org/development stayed at omamobile-shell 0.2.45. The step now lands at once, the baseline is taken at 1.0 s and the rise comes at 2.0 s, a second's margin either side. No change to the watchdog itself. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d --- packages/omamobile-audio/test/all | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/omamobile-audio/test/all b/packages/omamobile-audio/test/all index bc24cd4ea..9d623cc40 100755 --- a/packages/omamobile-audio/test/all +++ b/packages/omamobile-audio/test/all @@ -511,7 +511,10 @@ c9settle() { # name settle steps...: steps are delay_s:temp_bytes, applied in o } c9settle c9-step 1.5 0.2:0x00,0x0a,0x00,0x00 # 25 -> 40 C: the measured value, a step ((rc == 0)) && ! muted && grep -c 's into a stream' "$r/watch.out" >/dev/null || { cat "$r/watch.out" >&2; fail "watchdog: in stage c9 the step from the reference to the measured coil does not mute"; } -c9settle c9-rise 0.6 0.2:0x00,0x08,0x40,0x00 1.2:0x00,0x0a,0x40,0x00 # 25 -> 33 in the window, then 33 -> 41 C +# The settle window leaves a second either side: on a loaded machine (CI, the +# nightly publish) the step to 33 C once landed after a 0.6 s baseline was +# taken, so the watchdog saw 25 -> 41 and the test failed for timing alone. +c9settle c9-rise 1.0 0.0:0x00,0x08,0x40,0x00 2.0:0x00,0x0a,0x40,0x00 # 25 -> 33 in the window, then 33 -> 41 C ((rc == 1)) && muted && grep -c 'jumped 8.0 C (33.0 -> 41.0)' "$r/run/speaker-protection" >/dev/null || { cat "$r/watch.out" >&2; fail "watchdog: in stage c9 a rise of 8 C above the measured value mutes"; } c9settle c9-cold 0.4 1.5:0x00,0x07,0xc0,0x00 # no step: the baseline at 0.4 s, then 25 -> 31 C ((rc == 1)) && muted && grep -c 'jumped 6.0 C' "$r/run/speaker-protection" >/dev/null || { cat "$r/watch.out" >&2; fail "watchdog: in stage c9 a 6 C rise after the settle window mutes"; }