Repository navigation
release/1.2: Mixer Link test flakes fixed as in ShowKit (#1215, #1248, #1249) - #1310
Merged
Merged
Conversation
…#1249) Test code only, ported by hand from ShowKit PRs 18, 21 and 24: - XAirDriverTests.missingMixStateIsSkippedQuickly counts the mix-state queries instead of timing the read (#1249). - A fake Mixer's failed listen is tried again every 25 ms and throws after 10 s instead of waiting forever; powerCycle waits for the Link to come up after connect; new test powerCycleAtOnce (#1215). - Loopback.listen is the one listener under FakeWing, FakeXAirMixer and FakeTextMixer, and moves off a port that nothing can reach; new test LoopbackListenTests.movesOffAnUnreachablePort (#1248). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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 #1215, #1248, #1249
release/1.2was cut before MixerLink moved to ShowKit and keeps its own copy of the tests. This ports three merged ShowKit fixes to that copy by hand. Test code only; no product code changes.What is ported
XAirDriverTests.missingMixStateIsSkippedQuicklylimited a read to 3 s of wall clock and failed on busy runners. It now counts the mix-state queries (mixStateQueries == ["/ch/01/mix/on"]), with the USB routing answered andLoopback.mixedTimeoutas the reply timeout.FakeXAirMixer.powerOn()listened on the same port again and only watched for.ready, so a listen that failed with "Address already in use" waited forever. A failed listen is now tried again every 25 ms and throws after 10 s.powerCyclewaits for the Link to come up afterconnect. New testpowerCycleAtOnce.Loopback.listenis now the one listener underFakeWing,FakeXAirMixerandFakeTextMixer: it probes the port with two silent connections and moves to another port if they cannot get through. It carries the retry from ShowKit#21. New testLoopbackListenTests.movesOffAnUnreachablePort.How it differs from ShowKit
#if canImport(Network)guards (ShowKit#20, and the one around the extension inLoopback.swift) are left out: this branch is Apple-only.Loopback.swiftimports Foundation and Network at the top instead.#1215where ShowKit saysShowRecorder #1215.FakeXAirMixer(not ported).XAirDriver.swiftandMixerLinkController.swiftmatch ShowKit's apart from the guards, including the retry after a failed connect (Mixer Link: a Connect or Retry that fails while the mixer is away stops retrying #1209) thatpowerCycleAtOncerelies on.Checked
scripts/spelling-check.shandscripts/vocab-check.sh, both pass.scripts/verify.shwas not run.🤖 Generated with Claude Code
https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ