Skip to content

Desktop Swift CI: PushToTalkStateMachineTests hangs on owner-transition hub drain #10499

Closed

Description

@undivisible

PushToTalkStateMachineTests/testOwnerTransitionTerminatesActiveHubAndDrainsItsPhysicalSession hangs on CI (main + PRs). Suite times out; peer suites can fail on SwiftPM lock wait.

Activity

  1. undivisible commented on Jul 24, 2026

    @undivisible
    CollaboratorAuthor

    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 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.

  2. 7 remaining items

  3. Git-on-my-level commented on Jul 29, 2026

    @Git-on-my-level
    Member

    Closing as resolved at HEAD (1ef0976ef9).

    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.
    • desktop/macos/scripts/swift-test-skips.json no longer lists testOwnerTransitionTerminatesActiveHubAndDrainsItsPhysicalSession — 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 the FC-ptt-owner-boundary-bootstrap-hang failure-class (registered via #10141).

  4. moved this from Someday to In review in omi TODO / bountieson Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions