Jonathan Lennox
05/26/2022, 7:36 PMmvn -Dtest=TccGeneratorNodeTest test
it takes only 1.5 seconds again.suspend
to the declarations of the test's beforeSpec
methods.sam
05/27/2022, 5:46 PMJonathan Lennox
05/28/2022, 11:48 PMsam
05/29/2022, 2:26 PMbump-kotlin
branch:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page and the dump file /home/sam/development/workspace/jitsi-media-transform/target/surefire-reports/2022-05-29T09-26-30_623-jvmRun1.dumpstream
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.472 s
[INFO] Finished at: 2022-05-29T09:26:32-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project jitsi-media-transform: There are test failures.
[ERROR]
[ERROR] Please refer to /home/sam/development/workspace/jitsi-media-transform/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] There was an error in the forked process
[ERROR] io/kotlintest/specs/ShouldSpec
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] io/kotlintest/specs/ShouldSpec
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:658)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:278)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:244)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1194)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1022)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:868)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
Jonathan Lennox
05/29/2022, 2:33 PMsam
05/29/2022, 2:33 PMJonathan Lennox
05/29/2022, 2:33 PMsam
05/29/2022, 2:34 PMJonathan Lennox
05/29/2022, 2:34 PMsam
05/29/2022, 2:35 PMJonathan Lennox
05/29/2022, 2:35 PMsam
05/29/2022, 2:37 PMJonathan Lennox
05/29/2022, 2:45 PMsam
05/29/2022, 2:45 PM[WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page and the dump file /home/sam/development/workspace/jitsi-media-transform/target/surefire-reports/2022-05-29T09-46-40_841-jvmRun1.dumpstream
Jonathan Lennox
05/29/2022, 2:47 PMsam
05/29/2022, 2:48 PMJonathan Lennox
05/29/2022, 2:49 PMsam
05/29/2022, 2:50 PMJonathan Lennox
05/29/2022, 2:50 PMsam
05/29/2022, 2:51 PMJonathan Lennox
05/29/2022, 2:51 PMsam
05/29/2022, 2:51 PMJonathan Lennox
05/29/2022, 2:52 PMsam
05/29/2022, 2:52 PM[INFO] Tests run: 116, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:11 min
[INFO] Finished at: 2022-05-29T09:56:17-05:00
[INFO] ------------------------------------------------------------------------
Jonathan Lennox
05/29/2022, 2:57 PM<argLine>-Xmx1G</argLine>
to the maven-surefire-plugin configuration, and the tests now seem to take much longer on my Mac. I suspect something's leaking memory, and if JVM's heap is too small the GC starts thrashing?sam
05/29/2022, 2:57 PM[INFO] Tests run: 125, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2022-05-29T09:57:46-05:00
[INFO] ------------------------------------------------------------------------
Jonathan Lennox
05/29/2022, 2:58 PMsam
05/29/2022, 2:59 PMGRADLE_OPTS: -Dorg.gradle.configureondemand=false -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
Jonathan Lennox
05/29/2022, 3:15 PM<argLine>-Xmx1994391552</argLine>
(the default MaxHeapSize on my AWS instance) it runs slowly. When I set it to <argLine>-Xmx1822425088</argLine>
(the default MaxHeapSize on the Azure instances GitHub uses) it takes interminably long. I'll see if I can attach and profile it.io.mockk.impl.stub.SpyKStub
has a retained memory size of 1,930,015,280 bytes.