Build: Rework test workers calculation with respect to available memory

#KTI-787
This commit is contained in:
Vyacheslav Gerasimov
2022-03-21 16:27:16 +03:00
committed by teamcity
parent cae3d8a672
commit d9e8f0c180
9 changed files with 39 additions and 28 deletions
@@ -59,11 +59,10 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
projectTest(parallel = true, jUnitMode = JUnitMode.JUnit5) {
dependsOn(":dist")
dependsOn(":plugins:fir-plugin-prototype:plugin-annotations:jar")
workingDir = rootDir
useJUnitPlatform()
jvmArgs!!.removeIf { it.contains("-Xmx") }
maxHeapSize = "3g"
dependsOn(":plugins:fir-plugin-prototype:plugin-annotations:jar")
}
testsJar()
@@ -45,11 +45,9 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
}
}
projectTest(parallel = true, jUnitMode = JUnitMode.JUnit4) {
projectTest(parallel = true, jUnitMode = JUnitMode.JUnit4, maxHeapSizeMb = 3072) {
workingDir = rootDir
useJUnitPlatform()
jvmArgs!!.removeIf { it.contains("-Xmx") }
maxHeapSize = "3g"
dependsOn(":plugins:fir-plugin-prototype:jar")
dependsOn(":plugins:fir-plugin-prototype:plugin-annotations:jar")
}