You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop Swift CI: PushToTalkStateMachineTests hangs on owner-transition hub drain #10499
PushToTalkStateMachineTests/testOwnerTransitionTerminatesActiveHubAndDrainsItsPhysicalSession hangs on CI (main + PRs). Suite times out; peer suites can fail on SwiftPM lock wait.
CI logs showed the hang was not in owner-b hub drain. After a prior owner-boundary test, the next call to beginPushToTalkForAutomation() hung during startListening() (polluted hub/singleton state). Owner-boundary tests only needed the effect handler installed.
Fix landing on open PRs
installOwnerBoundaryEffectHandlerForTesting() (DEBUG) configures the automation bar/handler without starting capture. Owner-boundary tests now use that seam; temporary skip removed.
The headless hang was caused by owner-boundary tests installing the voice-turn effect handler through beginPushToTalkForAutomation(), which calls startListening() and deadlocks on polluted RealtimeHub/singleton state on CI runners. The fix landed in #10501 — fix(desktop): keep owner transition tests hermetic (merged 2026-07-24):
desktop/macos/Desktop/Sources/FloatingControlBar/PushToTalkManager+OwnerBoundaryTestSupport.swift:6 adds a DEBUG-only installOwnerBoundaryEffectHandlerFixture() that only calls configureVoiceTurnCoordinator(barState:) — it starts no screen/audio capture and no system muting.
desktop/macos/Desktop/Tests/VoiceTurnDomainTests/PushToTalkStateMachineTests.swift:228 now calls manager.installOwnerBoundaryEffectHandlerFixture() (and hub.installOwnerBoundaryFixture(ownerID:) at :229) instead of the hanging automation bootstrap.
The fix commit reports PushToTalkStateMachineTests passed 50/50. The contract is now guarded by the FC-ptt-owner-boundary-bootstrap-hang failure-class (registered via #10141).
Activity
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(desktop): stop owner-boundary tests from starting PTT
fix(desktop): stop owner-boundary tests from starting PTT
fix(desktop): stop owner-boundary tests from starting PTT
fix(desktop): stop owner-boundary tests from starting PTT
fix(desktop): stop owner-boundary tests from starting PTT
undivisible commentedon Jul 24, 2026
Update
CI logs showed the hang was not in owner-b hub drain. After a prior owner-boundary test, the next call to
beginPushToTalkForAutomation()hung duringstartListening()(polluted hub/singleton state). Owner-boundary tests only needed the effect handler installed.Fix landing on open PRs
installOwnerBoundaryEffectHandlerForTesting()(DEBUG) configures the automation bar/handler without starting capture. Owner-boundary tests now use that seam; temporary skip removed.Failure-Class: new→FC-ptt-owner-boundary-bootstrap-hang)fix(desktop): stop owner-boundary tests from starting PTT
chore(desktop): raise PushToTalkManager line-count baseline for PTT r…
7 remaining items
fix(desktop): stop owner-boundary tests from starting PTT
feat(desktop): optimize Rewind capture policy with per-app heartbeat,…
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(desktop): stop owner-boundary tests from starting PTT
Git-on-my-level commentedon Jul 29, 2026
Closing as resolved at HEAD (
1ef0976ef9).The headless hang was caused by owner-boundary tests installing the voice-turn effect handler through
beginPushToTalkForAutomation(), which callsstartListening()and deadlocks on pollutedRealtimeHub/singleton state on CI runners. The fix landed in #10501 — fix(desktop): keep owner transition tests hermetic (merged 2026-07-24):desktop/macos/Desktop/Sources/FloatingControlBar/PushToTalkManager+OwnerBoundaryTestSupport.swift:6adds a DEBUG-onlyinstallOwnerBoundaryEffectHandlerFixture()that only callsconfigureVoiceTurnCoordinator(barState:)— it starts no screen/audio capture and no system muting.desktop/macos/Desktop/Tests/VoiceTurnDomainTests/PushToTalkStateMachineTests.swift:228now callsmanager.installOwnerBoundaryEffectHandlerFixture()(andhub.installOwnerBoundaryFixture(ownerID:)at:229) instead of the hanging automation bootstrap.desktop/macos/scripts/swift-test-skips.jsonno longer liststestOwnerTransitionTerminatesActiveHubAndDrainsItsPhysicalSession— the temporary skip (added in fix(desktop/ci): stop flaky timeouts in the Swift test-suite runner #10490) is removed.The fix commit reports
PushToTalkStateMachineTests passed 50/50. The contract is now guarded by theFC-ptt-owner-boundary-bootstrap-hangfailure-class (registered via #10141).fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(ci): skip hung PushToTalk owner-transition hub drain test
fix(desktop): stop owner-boundary tests from starting PTT
fix(desktop): resolve PTT input routing off the main actor (BasedHard…