[GHA] Flaky test: AsymmetricSyncTests ► insert[macos]
cmelchior opened this issue · comments
From: https://github.com/realm/realm-kotlin/runs/20418016911
Error:
kotlin.AssertionError: Number of documents was: -321716944
It has also been happening on Jenkins: https://ci.realm.io/blue/organizations/jenkins/realm%2Frealm-kotlin/detail/PR-1581/27/tests/
It has only surfaced on macOS...not Android/JVM.
Seems to be caused by https://youtrack.jetbrains.com/issue/KT-64139/Native-Bug-with-while-loop-coroutine-which-is-started-and-stopped-on-the-same-thread
Upgrading to 1.9.22 makes the problem go away. Since we cannot upgrade the entire project to this version we probably just need to re-write the code to work around it.
Also failed here: https://github.com/realm/realm-kotlin/runs/20528124152
Looks like this might be the root cause: realm/realm-core#7279
It was apparently a bug introduced in Core 13.24.1
Fixed by #1645