Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate failures in test case AuthTests test__148__JWT_and_realtime__when_token_expires_and_has_a_means_to_renew__reconnects_using_authCallback_and_obtains_a_new_token (181c0d92-7356-4faf-acd0-7cc9b78a0aa2) #1336

Open
lawrence-forooghian opened this issue Apr 7, 2022 · 1 comment
Assignees
Labels
failing-test Where an automated test is failing either locally or in CI. Perhaps flakey, wrong or bug.

Comments

@lawrence-forooghian
Copy link
Collaborator

lawrence-forooghian commented Apr 7, 2022

https://test-observability.herokuapp.com/repos/ably/ably-cocoa/test_cases/181c0d92-7356-4faf-acd0-7cc9b78a0aa2

AuthTests.test__148__JWT_and_realtime__when_token_expires_and_has_a_means_to_renew__reconnects_using_authCallback_and_obtains_a_new_token

Split from #1330.

┆Issue is synchronized with this Jira Task by Unito

@lawrence-forooghian
Copy link
Collaborator Author

lawrence-forooghian commented May 5, 2022

Failures seen so far for which I have logs. Doesn't seem like any of them have anything to do with the test itself.

  • https://test-observability.herokuapp.com/repos/ably/ably-cocoa/failures/05ab57fb-1ae3-451e-b5ff-40a668caf81f, which seems to fail to open a WebSocket connection. No other failures in this upload.

    2022-05-02 12:44:19.340672+0000 xctest[24602:1469504] DEBUG: (ARTWebSocketTransport.m:132) R:0x7fb50013cda0 WS:0x7fb50005ecf0 websocket connect with token
    2022-05-02 12:44:19.341395+0000 xctest[24602:1469504] DEBUG: (ARTWebSocketTransport.m:194) R:0x7fb50013cda0 WS:0x7fb50005ecf0 url wss://sandbox-realtime.ably.io:443/?agent=ably-cocoa/1.2.10%20iOS/14.4.0&accessToken=***
    2022-05-02 12:44:19.348152+0000 xctest[24602:1469504] [connection] nw_socket_handle_socket_event [C148.1:1] Socket SO_ERROR [54: Connection reset by peer]
    2022-05-02 12:44:19.349403+0000 xctest[24602:1466885] CFNetwork SSLHandshake failed (-9806)
    2022-05-02 12:44:19.349517+0000 xctest[24602:1466885] TCP Conn 0x7fb50023e270 SSLHandshake failed (-9806)
    2022-05-02 12:44:19.349850+0000 xctest[24602:1468968] DEBUG: (ARTWebSocketTransport.m:311) R:0x7fb50013cda0 WS:0x7fb50005ecf0 websocket did receive error Error Domain=NSOSStatusErrorDomain Code=-9806 "(null)" UserInfo={_kCFStreamErrorCodeKey=-9806, _kCFStreamErrorDomainKey=3}
    2022-05-02 12:44:19.350060+0000 xctest[24602:1468968] DEBUG: (ARTRealtime.m:1511) R:0x7fb50013cda0 realtime transport failed: <ARTRealtimeTransportError: 0x7fb5001509e0 {
      type: Other
      badResponseCode: 0
      url: wss://sandbox-realtime.ably.io:443/?agent=ably-cocoa/1.2.10%20iOS/14.4.0&accessToken=***
      error: Error Domain=NSOSStatusErrorDomain Code=-9806 "(null)" UserInfo={_kCFStreamErrorCodeKey=-9806, _kCFStreamErrorDomainKey=3}
    }>
    2022-05-02 12:44:19.352591+0000 xctest[24602:1468968] VERBOSE: (ARTRealtime.m:480) R:0x7fb50013cda0 realtime state transitions to 7 - Failed
    2022-05-02 12:44:19.352730+0000 xctest[24602:1468968] DEBUG: RT:0x7fb50013cda0 realtime is transitioning from 1 - Connecting to 7 - Failed
    
  • https://test-observability.herokuapp.com/repos/ably/ably-cocoa/failures/286b03a9-ddf2-4399-a509-d79b957ca03d, which seems to time out wen opening a WebSocket connection. 3 other failures in this upload.

    2022-04-14 07:57:19.723759+0000 xctest[66013:198189] DEBUG: (ARTWebSocketTransport.m:132) R:0x7fdd5c9e1c90 WS:0x7fdd5c8bb330 websocket connect with token
    2022-04-14 07:57:19.724031+0000 xctest[66013:198189] DEBUG: (ARTWebSocketTransport.m:194) R:0x7fdd5c9e1c90 WS:0x7fdd5c8bb330 url wss://sandbox-realtime.ably.io:443/?agent=ably-cocoa/1.2.10%20iOS/14.4.0&accessToken=***
    2022-04-14 07:57:29.405090+0000 xctest[66013:190209] VERBOSE: (ARTRealtime.m:941) R:0x7fdd5c9e1c90 connection timed out
    2022-04-14 07:57:29.405373+0000 xctest[66013:190209] VERBOSE: (ARTRealtime.m:480) R:0x7fdd5c9e1c90 realtime state transitions to 3 - Disconnected
    2022-04-14 07:57:29.405539+0000 xctest[66013:190209] DEBUG: RT:0x7fdd5c9e1c90 realtime is transitioning from 1 - Connecting to 3 - Disconnected
    
  • https://test-observability.herokuapp.com/repos/ably/ably-cocoa/failures/cc82954d-21d1-4cc7-b118-f9b416c44e51, which seems to be the same as the previous one. 6 other failures in this upload.

    2022-04-13 14:19:58.703433+0000 xctest[91661:252344] DEBUG: (ARTWebSocketTransport.m:132) R:0x7ff0979b7eb0 WS:0x7ff097c0ce60 websocket connect with token
    2022-04-13 14:19:58.704086+0000 xctest[91661:252344] DEBUG: (ARTWebSocketTransport.m:194) R:0x7ff0979b7eb0 WS:0x7ff097c0ce60 url wss://sandbox-realtime.ably.io:443/?agent=ably-cocoa/1.2.10%20iOS/14.4.0&accessToken=***
    2022-04-13 14:20:08.243062+0000 xctest[91661:255179] VERBOSE: (ARTRealtime.m:941) R:0x7ff0979b7eb0 connection timed out
    2022-04-13 14:20:08.243306+0000 xctest[91661:255179] VERBOSE: (ARTRealtime.m:480) R:0x7ff0979b7eb0 realtime state transitions to 3 - Disconnected
    2022-04-13 14:20:08.243455+0000 xctest[91661:255179] DEBUG: RT:0x7ff0979b7eb0 realtime is transitioning from 1 - Connecting to 3 - Disconnected
    

I'm a bit clueless about this one for now. Seems like they're just transient Realtime/network-related issues so far. Not sure why this test is failing more frequently than others, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failing-test Where an automated test is failing either locally or in CI. Perhaps flakey, wrong or bug.
Development

No branches or pull requests

2 participants