realm / realm-kotlin

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

Flaky test `MongoCollectionFromClientTests.findOne_fails` #1806

Open clementetb opened 3 months ago

clementetb commented 3 months ago

Seen here

2024-07-10T21:18:33.6517570Z io.realm.kotlin.test.mongodb.common.mongo.MongoCollectionFromClientTests.findOne_fails FAILED
2024-07-10T21:18:33.6522100Z     kotlin.UninitializedPropertyAccessException: lateinit property app has not been initialized
2024-07-10T21:18:33.6526430Z         at kotlin.Throwable#<init>(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Throwable.kt:28)
2024-07-10T21:18:33.6531440Z         at kotlin.Exception#<init>(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Exceptions.kt:23)
2024-07-10T21:18:33.6536340Z         at kotlin.RuntimeException#<init>(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Exceptions.kt:34)
2024-07-10T21:18:33.6539770Z         at kotlin.UninitializedPropertyAccessException#<init>(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Exceptions.kt:154)
2024-07-10T21:18:33.6543760Z         at kotlin.native.internal#ThrowUninitializedPropertyAccessException(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/RuntimeUtils.kt:105)
2024-07-10T21:18:33.6548610Z         at io.realm.kotlin.test.mongodb.common.mongo.MongoCollectionTests#<get-app>(/Users/runner/work/realm-kotlin/realm-kotlin/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/mongo/MongoCollectionTests.kt:152)
2024-07-10T21:18:33.6554040Z         at io.realm.kotlin.test.mongodb.common.mongo.MongoCollectionTests#tearDown(/Users/runner/work/realm-kotlin/realm-kotlin/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/mongo/MongoCollectionTests.kt:191)
2024-07-10T21:18:33.6560370Z         at io.realm.kotlin.test.mongodb.common.mongo.$MongoCollectionFromClientTests$test$1.$tearDown$FUNCTION_REFERENCE$263.invoke#internal(/Users/runner/work/realm-kotlin/realm-kotlin/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/mongo/MongoCollectionTests.kt:124)
2024-07-10T21:18:33.6566820Z         at io.realm.kotlin.test.mongodb.common.mongo.$MongoCollectionFromClientTests$test$1.$tearDown$FUNCTION_REFERENCE$263.$<bridge-UNNN>invoke(/Users/runner/work/realm-kotlin/realm-kotlin/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/mongo/MongoCollectionTests.kt:124)
2024-07-10T21:18:33.6570750Z         at kotlin.Function1#invoke(/Users/teamcity/.gradle/daemon/8.4/[K][Suspend]Functions:1)
2024-07-10T21:18:33.6573800Z         at kotlin.native.internal.test.BaseClassSuite.TestCase#doAfter(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/TestSuite.kt:173)
2024-07-10T21:18:33.6577890Z         at kotlin.native.internal.test.TestCase#doAfter(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/TestSuite.kt:63)
2024-07-10T21:18:33.6581740Z         at kotlin.native.internal.test.TestCase#run(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/TestSuite.kt:54)
2024-07-10T21:18:33.6585790Z         at kotlin.native.internal.test.TestCase#run(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/TestSuite.kt:49)
2024-07-10T21:18:33.6589740Z         at kotlin.native.internal.test.TestRunner.run#internal(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/TestRunner.kt:263)
2024-07-10T21:18:33.6593960Z         at kotlin.native.internal.test.TestRunner.runIteration#internal(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/TestRunner.kt:289)
2024-07-10T21:18:33.6598080Z         at kotlin.native.internal.test.TestRunner#run(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/TestRunner.kt:304)
2024-07-10T21:18:33.6602300Z         at kotlin.native.internal.test#testLauncherEntryPoint(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/Launcher.kt:33)
2024-07-10T21:18:33.6606250Z         at kotlin.native.internal.test#main(/opt/buildAgent/work/b2e1db4d8d903ca4/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/test/Launcher.kt:38)
2024-07-10T21:18:33.6608650Z         at <global>.Konan_start(/Users/runner/.gradle/daemon/7.6/entryPointOwner:1)
2024-07-10T21:18:33.6609820Z         at <global>.Init_and_run_start(Unknown Source)
2024-07-10T21:18:33.6610640Z         at <global>.0x0(Unknown Source)
2024-07-10T21:18:33.6611450Z         at <global>.0x0(Unknown Source)
sync-by-unito[bot] commented 3 months ago

➤ PM Bot commented:

Jira ticket: RKOTLIN-1111