Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Don't serialize AssessmentResults that implement JsonFileArchivableResult #619

Don't serialize AssessmentResults that implement JsonFileArchivableResult

Don't serialize AssessmentResults that implement JsonFileArchivableResult #619

GitHub Actions / Unit Test Results failed Nov 30, 2023 in 0s

2 fail, 85 pass in 18s

25 files   - 14  25 suites   - 14   18s ⏱️ -13s
87 tests ±  0  85 ✔️  -   2  0 💤 ±0  2 +2 
87 runs   - 46  85 ✔️  - 48  0 💤 ±0  2 +2 

Results for commit 51a0746. ± Comparison against earlier commit 7151412.

Annotations

Check warning on line 0 in org.sagebionetworks.bridge.kmm.shared.integration.IntegrationSmokeTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testIntegrationSmokeTest (org.sagebionetworks.bridge.kmm.shared.integration.IntegrationSmokeTest) failed

bridge-client/build/test-results/testDebugUnitTest/TEST-org.sagebionetworks.bridge.kmm.shared.integration.IntegrationSmokeTest.xml
Raw output
java.lang.IllegalStateException: ResultSet returned more than 1 row for BridgeResourceDatabase.sq:selectResourceById
	at app.cash.sqldelight.async.coroutines.QueryExtensionsKt$awaitAsOneOrNull$2.invoke(QueryExtensions.kt:50)
	at app.cash.sqldelight.async.coroutines.QueryExtensionsKt$awaitAsOneOrNull$2.invoke(QueryExtensions.kt:33)
	at app.cash.sqldelight.driver.jdbc.JdbcPreparedStatement.executeQuery(JdbcDriver.kt:272)
	at app.cash.sqldelight.driver.jdbc.JdbcDriver.executeQuery(JdbcDriver.kt:152)
	at org.sagebionetworks.bridge.kmm.shared.cache.BridgeResourceDatabaseQueries$SelectResourceByIdQuery.execute(BridgeResourceDatabaseQueries.kt:398)
	at app.cash.sqldelight.async.coroutines.QueryExtensionsKt.awaitAsOneOrNull(QueryExtensions.kt:33)
	at app.cash.sqldelight.coroutines.FlowQuery$mapToOneOrNull$1$1.invokeSuspend(FlowExtensions.kt:76)
	at _COROUTINE._BOUNDARY._(CoroutineDebugging.kt:46)
	at app.cash.sqldelight.coroutines.FlowQuery$mapToOneOrNull$$inlined$map$1$2.emit(FlowExtensions.kt:224)
	at app.cash.sqldelight.coroutines.FlowQuery$asFlow$1.invokeSuspend(FlowExtensions.kt:48)
	at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:230)
	at kotlinx.coroutines.flow.FlowKt__ReduceKt.first(Reduce.kt:183)
	at org.sagebionetworks.bridge.kmm.shared.integration.IntegrationSmokeTest$testIntegrationSmokeTest$1.invokeSuspend(IntegrationSmokeTest.kt:60)
	at org.sagebionetworks.bridge.kmm.shared.BaseTest$runTest$1.invokeSuspend(BaseTest.kt:13)
Caused by: java.lang.IllegalStateException: ResultSet returned more than 1 row for BridgeResourceDatabase.sq:selectResourceById
	at app.cash.sqldelight.async.coroutines.QueryExtensionsKt$awaitAsOneOrNull$2.invoke(QueryExtensions.kt:50)
	at app.cash.sqldelight.async.coroutines.QueryExtensionsKt$awaitAsOneOrNull$2.invoke(QueryExtensions.kt:33)
	at app.cash.sqldelight.driver.jdbc.JdbcPreparedStatement.executeQuery(JdbcDriver.kt:272)
	at app.cash.sqldelight.driver.jdbc.JdbcDriver.executeQuery(JdbcDriver.kt:152)
	at org.sagebionetworks.bridge.kmm.shared.cache.BridgeResourceDatabaseQueries$SelectResourceByIdQuery.execute(BridgeResourceDatabaseQueries.kt:398)
	at app.cash.sqldelight.async.coroutines.QueryExtensionsKt.awaitAsOneOrNull(QueryExtensions.kt:33)
	at app.cash.sqldelight.coroutines.FlowQuery$mapToOneOrNull$1$1.invokeSuspend(FlowExtensions.kt:76)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Check warning on line 0 in org.sagebionetworks.bridge.kmm.shared.repo.ScheduleTimelineRepoTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testBMC446AssessmentOrder (org.sagebionetworks.bridge.kmm.shared.repo.ScheduleTimelineRepoTest) failed

bridge-client/build/test-results/testDebugUnitTest/TEST-org.sagebionetworks.bridge.kmm.shared.repo.ScheduleTimelineRepoTest.xml
Raw output
java.lang.AssertionError: expected:<2> but was:<0>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:120)
	at kotlin.test.junit.JUnitAsserter.assertEquals(JUnitSupport.kt:32)
	at kotlin.test.AssertionsKt__AssertionsKt.assertEquals(Assertions.kt:63)
	at kotlin.test.AssertionsKt.assertEquals(Unknown Source)
	at kotlin.test.AssertionsKt__AssertionsKt.assertEquals$default(Assertions.kt:62)
	at kotlin.test.AssertionsKt.assertEquals$default(Unknown Source)
	at org.sagebionetworks.bridge.kmm.shared.repo.ScheduleTimelineRepoTest$testBMC446AssessmentOrder$1.invokeSuspend(ScheduleTimelineRepoTest.kt:3408)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.flow.internal.SafeCollector.invokeSuspend(SafeCollector.kt:48)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at org.sagebionetworks.bridge.kmm.shared.BaseTest.runTest(BaseTest.kt:13)
	at org.sagebionetworks.bridge.kmm.shared.repo.ScheduleTimelineRepoTest.testBMC446AssessmentOrder(ScheduleTimelineRepoTest.kt:3393)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:108)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at jdk.proxy1/jdk.proxy1.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)