Skip to content

[Darwin] Random failure in MTRSwiftDeviceTests test018_SubscriptionErrorWhenNotResubscribing #39111

Open
@bzbarsky-apple

Description

@bzbarsky-apple

Reproduction steps

https://github.com/project-chip/connectedhomeip/actions/runs/15160103742/job/42625609953

The basic problem is here:

2025-05-21T11:48:22.7379530Z 2025-05-21 11:47:59.059532+0000 xctest[53945:147749] [DataManagement] 	InteractionModelRevision = 12
2025-05-21T11:48:22.7380510Z 2025-05-21 11:48:02.364402+0000 xctest[53945:147749] [DataManagement] }

Note that we lost the timeslice there for 3300ms between two consecutive log lines.

This is followed by:

2025-05-21T11:48:22.7447720Z 2025-05-21 11:48:02.371352+0000 xctest[53945:147749] [DataManagement] Subscription established in 3392ms with SubscriptionID = 0xcddd5345 MinInterval = 1s MaxInterval = 10s Peer = 01:0000000012344321
...
2025-05-21T11:48:22.7468780Z /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/CHIPTests/MTRSwiftDeviceTests.swift:463: error: -[MatterTests.MTRSwiftDeviceTests test018_SubscriptionErrorWhenNotResubscribing] : Asynchronous wait failed: Exceeded timeout of 3 seconds, with unfulfilled expectations: "First subscription complete".

Because yes, if we lose the timeslice for 3.3 seconds we will blow through a 3-second timeout.

Platform

darwin

Platform Version(s)

No response

Type

Unit tested

(Optional) If manually tested please explain why this is only manually tested

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions