realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
889 stars 52 forks source link

[GHA] Various SocketTimeouts for Sync Tests #1634

Open cmelchior opened 5 months ago

cmelchior commented 5 months ago

Running Sync tests on Github Actions appear a lot more flaky than they did on Jenkins. It is unclear exactly what the issue is. It could either be that the GHA network is just flaky or it could be our BAAS server test infrastructure.

But we should find a way to address it. It might be something as simple as just raising the connection timeout, but this needs to be investigated.

Below are just a few examples of the errors seen. The timeout is not associated with a single test:

https://github.com/realm/realm-kotlin/actions/runs/7561504211/job/20603264715

❌ realmQuery_subscribe_anonymousTwice[macos]
    io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=http://18.207.129.183:37397/api/admin/v3.0/auth/providers/local-userpass/login, socket_timeout=60000] ms

https://github.com/realm/realm-kotlin/runs/20531085620

❌ recoverOrDiscardUnsyncedChangesStrategyMode[macos]
    io.realm.kotlin.mongodb.exceptions.ConnectionException: [Custom][CustomError(4000)] io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=http://18.207.129.183:36091/api/client/v2.0/app/test-app-pbs-vnjxh/location, socket_timeout=60000] ms.