Repository navigation
X-Air test: count the mix-state queries instead of timing the read - #18
Merged
Merged
Conversation
…howRecorder #1249) The test for a Mixer that ignores mix-state queries limited the read to 3 s of wall clock. Two of those seconds were its own timeouts (the USB routing and the first mix-state query, 1 s each), which left 1 s for about 40 loopback round trips; a busy CI runner took 4.22 s and 3.35 s with nothing wrong. What the test means is that the driver asks for mix state once and then stops. The fake records every query, so the test now checks that exactly one mix-state query was sent. The routing is answered, as in the other tests, and the reply timeout is the shared 3 s one, so a slow answer to a name is not mistaken for silence. Refs ericdahl-dev/ShowRecorder#1249 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ
Skeyelab
enabled auto-merge (squash)
December 3, 2026 06:40
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Skeyelab
added a commit
that referenced
this pull request
Dec 3, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs ericdahl-dev/ShowRecorder#1249
The flake
XAirDriverTests"A Mixer that ignores mix-state queries still gives names, without a timeout per query" limiteddriver.sourcesto 3 s of wall clock. It failed on busy CI runners with nothing wrong:elapsed → 4.219958083 seconds; the test took 12.1 s in all.release/1.2, Debug):elapsed → 3.349081375 seconds.Two of the 3 seconds were the test's own timeouts: the USB routing was left unanswered (1 s) and the first mix-state query is unanswered by design (1 s). That left 1 s for about 40 loopback round trips.
The fix
The test means: the driver asks for mix state once, gets no answer, and stops asking. The fake Mixer records every query, so the test now checks that exactly one mix-state query (
/ch/01/mix/on) was sent. No clock.Loopback.mixedTimeout(3 s) in place of 1 s, so a slow answer to a name on a busy runner is not taken for silence. It costs one 3 s wait.Test only; no product code changes. Checked by reading and by macOS CI here: MixerLink needs Network.framework, so the test was not run locally (Linux).
ShowRecorder
release/1.2keeps its own copy of this test and needs the same change by hand.🤖 Generated with Claude Code
https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ