Skip to content

Tests seem to be intermittently hanging in CI #295

@lawrence-forooghian

Description

@lawrence-forooghian

see e.g. https://github.com/ably/ably-chat-swift/actions/runs/15616761631/job/43991521521

Not sure if this is something new introduced by recent tests, or whether the hangs that were introduced by typing indicator tests (mentioned in #283) were never properly fixed, or something else.

Update, 23 Oct 2025: The hangs in the typing tests were fixed in #451. There still appears to be an intermittent hang in the integration tests on iOS; in #452 I added logging to diagnose this. See https://github.com/ably/ably-chat-swift/actions/runs/18748399688/job/53482504692 for example, in which it appears the room.attach() calls are hanging:


[1761223749.264327] [await] roomNameWithSlashInTheName() AblyChatTests/IntegrationTests.swift:668 - AFTER Sandbox.createAPIKey()
[1761223749.2959418] [await] roomNameWithSlashInTheName() AblyChatTests/IntegrationTests.swift:676 - BEFORE txClient.rooms.get()
[1761223749.3035002] [await] roomNameWithSlashInTheName() AblyChatTests/IntegrationTests.swift:681 - AFTER txClient.rooms.get()
[1761223749.303536] [await] roomNameWithSlashInTheName() AblyChatTests/IntegrationTests.swift:682 - BEFORE rxClient.rooms.get()
[1761223749.3037338] [await] roomNameWithSlashInTheName() AblyChatTests/IntegrationTests.swift:687 - AFTER rxClient.rooms.get()
[1761223749.304329] [await] roomNameWithSlashInTheName() AblyChatTests/IntegrationTests.swift:693 - BEFORE rxRoom.attach()
2025-10-23 12:49:09.316805+0000 xctest[15551:64644] [connection] nw_socket_set_connection_idle [C1.1.1.1:3] setsockopt SO_CONNECTION_IDLE failed [42: Protocol not available]
[1761223749.31886] [await] basicIntegrationTest() AblyChatTests/IntegrationTests.swift:82 - AFTER Sandbox.createAPIKey()
[1761223750.468114] [await] basicIntegrationTest() AblyChatTests/IntegrationTests.swift:91 - BEFORE txClient.rooms.get()
[1761223750.468723] [await] basicIntegrationTest() AblyChatTests/IntegrationTests.swift:100 - AFTER txClient.rooms.get()
[1761223750.468748] [await] basicIntegrationTest() AblyChatTests/IntegrationTests.swift:101 - BEFORE rxClient.rooms.get()
[1761223750.4688802] [await] basicIntegrationTest() AblyChatTests/IntegrationTests.swift:111 - AFTER rxClient.rooms.get()
[1761223750.4689069] [await] basicIntegrationTest() AblyChatTests/IntegrationTests.swift:117 - BEFORE rxRoom.attach()

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

Labels

testingIncludes all kinds of automated tests, the way that we run them and the infrastructure around them.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions