Skip to content

release/1.2: Mixer Link test flakes fixed as in ShowKit (#1215, #1248, #1249) - #1310

Merged
Skeyelab merged 1 commit into
release/1.2from
port-mixerlink-test-flakes-1.2
Dec 3, 2026
Merged

Skeyelab merged 1 commit into
release/1.2from
port-mixerlink-test-flakes-1.2

Conversation

@Skeyelab

@Skeyelab Skeyelab commented Dec 3, 2026

Copy link
Copy Markdown
Member

Refs #1215, #1248, #1249

release/1.2 was 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

How it differs from ShowKit

  • The #if canImport(Network) guards (ShowKit#20, and the one around the extension in Loopback.swift) are left out: this branch is Apple-only. Loopback.swift imports Foundation and Network at the top instead.
  • Comments say #1215 where ShowKit says ShowRecorder #1215.
  • Otherwise the test code is the same as ShowKit's. Before the port, the seven files on this branch differed from ShowKit's only by these fixes, the guards and two later SoundcheckPlayer additions to FakeXAirMixer (not ported). XAirDriver.swift and MixerLinkController.swift match 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) that powerCycleAtOnce relies on.

Checked

  • Not built or run locally: the port was written on Linux and MixerLink needs Network.framework. macOS CI on this PR is the check.
  • Ran locally: scripts/spelling-check.sh and scripts/vocab-check.sh, both pass. scripts/verify.sh was not run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ

…#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
@Skeyelab
Skeyelab merged commit 3d6bb7e into release/1.2 Dec 3, 2026
1 check passed
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant