Closed alexjpwalker closed 1 year ago
Intermittently the following error occurs when running //test/integration:test-texteditor:
//test/integration:test-texteditor
==================== Test output for //test/integration:test-texteditor: JUnit4 Test Runner .localhost:38985: Constructing TypeDB Core runner localhost:38985: Extracting distribution archive... 10:46:30.958 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Executing [tar, -xf, external/vaticle_typedb_artifact_linux-x86_64/file/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd.tar.gz, -C, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb9835869499585689234] in /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/bazel-out/k8-fastbuild/bin/test/integration/test-texteditor.runfiles/vaticle_typedb_studio/.. 10:46:30.971 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Started Process[pid=5788, exitValue="not exited"] 10:46:31.350 [main] DEBUG org.zeroturnaround.exec.WaitForProcess -- Process[pid=5788, exitValue=0] stopped with exit code 0 localhost:38985: Distribution archive extracted. localhost:38985: Runner constructed localhost:38985: TypeDB Coreis starting... localhost:38985: Distribution is located at /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb9835869499585689234/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd localhost:38985: Data directory is located at /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb9835869499585689234/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data localhost:38985: Server bootup command = [typedb, server, --server.address, localhost:38985, --storage.data, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb9835869499585689234/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data] 10:46:31.358 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Executing [typedb, server, --server.address, localhost:38985, --storage.data, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb9835869499585689234/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data] in /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb9835869499585689234/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd. 10:46:31.359 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Started Process[pid=5794, exitValue="not exited"] localhost:38985: Can't yet connect to server... ================================================================ ________ __ __ _____ _______ _____ _____ |__ __|\ \ / /| _ \ | _ || _ \ | _ \ | | \ \/ / | | | || | |__|| | | || | | | | | \ / | |/ / | |___ | | | || |/ / | | | | | __/ | ___| | | | || _ \ | | | | | | | | __ | | | || | | | | | | | | | | |_| || |/ / | |/ / |__| |__| |__| |_______||_____/ |_____/ A STRONGLY-TYPED DATABASE ================================================================ localhost:38985: Can't yet connect to server... 10:46:32.323 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- TypeDB Server is now running and will keep this process alive. 10:46:32.325 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- You can press CTRL+C to shutdown this server. 10:46:32.325 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- 10:46:32.325 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- version: 2.24.8 10:46:32.325 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- listening to address: localhost:38985 10:46:32.325 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- data directory configured to: /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb9835869499585689234/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data 10:46:32.325 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- bootup completed in: 676 ms 10:46:32.325 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- localhost/127.0.0.1:38985: Started Os arch: amd64 10:46:42.060 [DefaultDispatcher-worker-1 @coroutine#3064] INFO com.vaticle.typedb.studio.service.connection.TransactionState -- [CNX11] TypeDB Connection: Transaction has been successfully committed and closed -- all writes have been persisted. localhost:38985: Stopping... 10:46:44.975 [WaitForProcess-Process[pid=5794, exitValue="not exited"]] DEBUG org.zeroturnaround.exec.WaitForProcess -- Process[pid=5794, exitValue=143] stopped with exit code 143 localhost:38985: Stopped. .localhost:37907: Constructing TypeDB Core runner localhost:37907: Extracting distribution archive... 10:46:45.112 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Executing [tar, -xf, external/vaticle_typedb_artifact_linux-x86_64/file/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd.tar.gz, -C, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb5294481765719943405] in /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/bazel-out/k8-fastbuild/bin/test/integration/test-texteditor.runfiles/vaticle_typedb_studio/.. 10:46:45.113 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Started Process[pid=5971, exitValue="not exited"] 10:46:45.523 [main] DEBUG org.zeroturnaround.exec.WaitForProcess -- Process[pid=5971, exitValue=0] stopped with exit code 0 localhost:37907: Distribution archive extracted. localhost:37907: Runner constructed localhost:37907: TypeDB Coreis starting... localhost:37907: Distribution is located at /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb5294481765719943405/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd localhost:37907: Data directory is located at /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb5294481765719943405/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data localhost:37907: Server bootup command = [typedb, server, --server.address, localhost:37907, --storage.data, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb5294481765719943405/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data] 10:46:45.524 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Executing [typedb, server, --server.address, localhost:37907, --storage.data, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb5294481765719943405/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data] in /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb5294481765719943405/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd. 10:46:45.525 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Started Process[pid=5977, exitValue="not exited"] localhost:37907: Can't yet connect to server... ================================================================ ________ __ __ _____ _______ _____ _____ |__ __|\ \ / /| _ \ | _ || _ \ | _ \ | | \ \/ / | | | || | |__|| | | || | | | | | \ / | |/ / | |___ | | | || |/ / | | | | | __/ | ___| | | | || _ \ | | | | | | | | __ | | | || | | | | | | | | | | |_| || |/ / | |/ / |__| |__| |__| |_______||_____/ |_____/ A STRONGLY-TYPED DATABASE ================================================================ localhost:37907: Can't yet connect to server... 10:46:46.462 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- TypeDB Server is now running and will keep this process alive. 10:46:46.464 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- You can press CTRL+C to shutdown this server. 10:46:46.464 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- 10:46:46.464 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- version: 2.24.8 10:46:46.464 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- listening to address: localhost:37907 10:46:46.464 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- data directory configured to: /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb5294481765719943405/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data 10:46:46.464 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- bootup completed in: 645 ms 10:46:46.464 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- localhost/127.0.0.1:37907: Started 10:46:51.642 [typedb-service::0] ERROR com.vaticle.typedb.core.server.TransactionService -- [TXN07] Invalid Transaction Operation: Attempted schema writes when transaction type does not allow. 10:46:51.644 [Thread-20] ERROR com.vaticle.typedb.studio.service.connection.TransactionState -- [CNX08] TypeDB Connection: Transaction was closed, due to: [CXN05] The transaction is closed because of the error(s): status: Internal, message: "[TXN07] Invalid Transaction Operation: Attempted schema writes when transaction type does not allow.", details: [], metadata: MetadataMap { headers: {} } E.localhost:43419: Constructing TypeDB Core runner localhost:43419: Extracting distribution archive... 10:46:52.706 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Executing [tar, -xf, external/vaticle_typedb_artifact_linux-x86_64/file/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd.tar.gz, -C, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb2863459914266522026] in /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/bazel-out/k8-fastbuild/bin/test/integration/test-texteditor.runfiles/vaticle_typedb_studio/.. 10:46:52.707 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Started Process[pid=6096, exitValue="not exited"] 10:46:53.092 [main] DEBUG org.zeroturnaround.exec.WaitForProcess -- Process[pid=6096, exitValue=0] stopped with exit code 0 localhost:43419: Distribution archive extracted. localhost:43419: Runner constructed localhost:43419: TypeDB Coreis starting... localhost:43419: Distribution is located at /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb2863459914266522026/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd localhost:43419: Data directory is located at /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb2863459914266522026/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data localhost:43419: Server bootup command = [typedb, server, --server.address, localhost:43419, --storage.data, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb2863459914266522026/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data] 10:46:53.094 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Executing [typedb, server, --server.address, localhost:43419, --storage.data, /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb2863459914266522026/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data] in /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb2863459914266522026/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd. 10:46:53.094 [main] DEBUG org.zeroturnaround.exec.ProcessExecutor -- Started Process[pid=6101, exitValue="not exited"] localhost:43419: Can't yet connect to server... ================================================================ ________ __ __ _____ _______ _____ _____ |__ __|\ \ / /| _ \ | _ || _ \ | _ \ | | \ \/ / | | | || | |__|| | | || | | | | | \ / | |/ / | |___ | | | || |/ / | | | | | __/ | ___| | | | || _ \ | | | | | | | | __ | | | || | | | | | | | | | | |_| || |/ / | |/ / |__| |__| |__| |_______||_____/ |_____/ A STRONGLY-TYPED DATABASE ================================================================ localhost:43419: Can't yet connect to server... localhost:43419: Can't yet connect to server... 10:46:54.102 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- TypeDB Server is now running and will keep this process alive. 10:46:54.104 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- You can press CTRL+C to shutdown this server. 10:46:54.104 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- 10:46:54.104 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- version: 2.24.8 10:46:54.104 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- listening to address: localhost:43419 10:46:54.104 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- data directory configured to: /home/factory/.cache/bazel/_bazel_factory/af70d6155771fa3dc436a4a18c272dea/execroot/vaticle_typedb_studio/_tmp/603b3c0c4246c5606fd6fe7b3fd24158/typedb2863459914266522026/typedb-server-linux-x86_64-f73907a60494228973cf3372b3eecb91770c90dd/server/data 10:46:54.104 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- bootup completed in: 689 ms 10:46:54.104 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -- localhost:43419: waiting for server to start (2s)... localhost/127.0.0.1:43419: Started 10:47:03.576 [DefaultDispatcher-worker-4 @coroutine#9966] INFO com.vaticle.typedb.studio.service.connection.TransactionState -- [CNX11] TypeDB Connection: Transaction has been successfully committed and closed -- all writes have been persisted. 10:47:12.933 [DefaultDispatcher-worker-4 @coroutine#12431] INFO com.vaticle.typedb.studio.service.connection.TransactionState -- [CNX11] TypeDB Connection: Transaction has been successfully committed and closed -- all writes have been persisted. localhost:43419: Stopping... localhost:43419: Stopped. 10:47:14.556 [WaitForProcess-Process[pid=6101, exitValue="not exited"]] DEBUG org.zeroturnaround.exec.WaitForProcess -- Process[pid=6101, exitValue=143] stopped with exit code 143 . Time: 47.772 There was 1 failure: 1) schemaWriteAndRollback(com.vaticle.typedb.studio.test.integration.TextEditorTest) java.lang.NullPointerException at com.vaticle.typedb.studio.test.integration.TextEditorTest$schemaWriteAndRollback$1$1$3.invoke(TextEditorTest.kt:153) at com.vaticle.typedb.studio.test.integration.TextEditorTest$schemaWriteAndRollback$1$1$3.invoke(TextEditorTest.kt:151) at com.vaticle.typedb.studio.test.integration.common.StudioActions$waitUntilAssertionPasses$2.invoke(StudioActions.kt:110) at com.vaticle.typedb.studio.test.integration.common.StudioActions$waitUntilAssertionPasses$2.invoke(StudioActions.kt:105) at androidx.compose.ui.test.DesktopComposeUiTest.waitUntil(ComposeUiTest.desktop.kt:188) at androidx.compose.ui.test.junit4.DesktopComposeTestRule.waitUntil(DesktopComposeTestRule.desktop.kt:78) at com.vaticle.typedb.studio.test.integration.common.StudioActions.waitUntilAssertionPasses(StudioActions.kt:105) at com.vaticle.typedb.studio.test.integration.TextEditorTest$schemaWriteAndRollback$1$1.invokeSuspend(TextEditorTest.kt:151) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279) 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 com.vaticle.typedb.studio.test.integration.TextEditorTest$schemaWriteAndRollback$1.invoke(TextEditorTest.kt:128) at com.vaticle.typedb.studio.test.integration.TextEditorTest$schemaWriteAndRollback$1.invoke(TextEditorTest.kt:127) at com.vaticle.typedb.studio.test.integration.common.TypeDBRunners.withTypeDB(TypeDBRunners.kt:36) at com.vaticle.typedb.studio.test.integration.common.TypeDBRunners.withTypeDB$default(TypeDBRunners.kt:30) at com.vaticle.typedb.studio.test.integration.TextEditorTest.schemaWriteAndRollback(TextEditorTest.kt:127) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at androidx.compose.ui.test.junit4.DesktopComposeTestRule$apply$1$evaluate$1.invoke(DesktopComposeTestRule.desktop.kt:54) at androidx.compose.ui.test.junit4.DesktopComposeTestRule$apply$1$evaluate$1.invoke(DesktopComposeTestRule.desktop.kt:53) at androidx.compose.ui.test.DesktopComposeUiTest.runTest(ComposeUiTest.desktop.kt:123) at androidx.compose.ui.test.junit4.DesktopComposeTestRule$apply$1.evaluate(DesktopComposeTestRule.desktop.kt:53) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at com.google.testing.junit.runner.internal.junit4.CancellableRequestFactory$CancellableRunner.run(CancellableRequestFactory.java:108) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at com.google.testing.junit.runner.junit4.JUnit4Runner.run(JUnit4Runner.java:116) at com.google.testing.junit.runner.BazelTestRunner.runTestsInSuite(BazelTestRunner.java:145) at com.google.testing.junit.runner.BazelTestRunner.main(BazelTestRunner.java:76) FAILURES!!! Tests run: 4, Failures: 1 BazelTestRunner exiting with a return value of 1 JVM shutdown hooks (if any) will run now. The JVM will exit once they complete. -- JVM shutdown starting at 2023-10-05 10:47:17 -- ================================================================================ INFO: Elapsed time: 166.756s, Critical Path: 48.99s INFO: 11 processes: 6 internal, 5 local. INFO: Build completed, 1 test FAILED, 11 total actions //test/integration:test-projectbrowser PASSED in 14.8s //test/integration:test-queryrunner PASSED in 32.9s //test/integration:test-quickstart PASSED in 23.9s //test/integration:test-typebrowser PASSED in 44.8s //test/integration:test-texteditor FAILED in 48.9s
Intermittently the following error occurs when running
//test/integration:test-texteditor
: