Skip to content

Commit 0dc85af

Browse files
committed
Set # of forks explicitly
1 parent 4c7fdf0 commit 0dc85af

3 files changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: Build code and run unit tests and basic checks
117117
run: |
118118
./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean install \
119-
-Pjqassistant -Pdist -Pci-build -Pparallel-tests -DskipITs
119+
-Pjqassistant -Pdist -Pci-build -Pparallel-tests-github -DskipITs
120120
env:
121121
DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY || '' }}"
122122
DEVELOCITY_BASE_URL: "${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}"
@@ -133,7 +133,7 @@ jobs:
133133
- name: Run integration tests in the default environment
134134
run: |
135135
./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean verify \
136-
-Pskip-checks -Pparallel-tests \
136+
-Pskip-checks -Pparallel-tests-github \
137137
${{ github.event.pull_request.base.ref && format('-Dincremental -Dgib.referenceBranch=refs/remotes/origin/{0}', github.event.pull_request.base.ref) || '' }}
138138
env:
139139
DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY || '' }}"

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ stage('Default build') {
423423
String commonMavenArgs = """ \
424424
--fail-at-end \
425425
-Pcoverage \
426-
-Pparallel-tests \
426+
-Pparallel-tests-jenkins \
427427
${toTestEnvironmentArgs(environments.content.jdk.default)} \
428428
"""
429429

@@ -1072,7 +1072,7 @@ void mavenNonDefaultBuild(BuildEnvironment buildEnv, String args, List<String> a
10721072
mvn """ \
10731073
clean install -Pci-build \
10741074
${toTestEnvironmentArgs(buildEnv)} \
1075-
-Pparallel-tests \
1075+
-Pparallel-tests-jenkins \
10761076
--fail-at-end \
10771077
$args \
10781078
"""

pom.xml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@
400400
<test.database.run.kind>h2</test.database.run.kind>
401401

402402
<!-- Parallel test execution: number of forked JVMs. Default 1 (sequential).
403-
Use -Pparallel-tests for 0.5C (half CPU cores), or set explicitly.
403+
Use -Pparallel-tests for 0.6C (60% of CPU cores), or set explicitly.
404404
Backend-specific properties allow different parallelism for ES (I/O-bound, shared container)
405405
vs Lucene (CPU-bound, local). -->
406406
<test.parallel.forkCount>1</test.parallel.forkCount>
@@ -1283,9 +1283,25 @@
12831283
<profile>
12841284
<id>parallel-tests</id>
12851285
<properties>
1286-
<test.parallel.forkCount>0.5C</test.parallel.forkCount>
1286+
<test.parallel.forkCount>0.6C</test.parallel.forkCount>
12871287
<test.parallel.forkCount.elasticsearch>4</test.parallel.forkCount.elasticsearch>
1288-
<test.parallel.forkCount.lucene>0.5C</test.parallel.forkCount.lucene>
1288+
<test.parallel.forkCount.lucene>0.6C</test.parallel.forkCount.lucene>
1289+
</properties>
1290+
</profile>
1291+
<profile>
1292+
<id>parallel-tests-github</id>
1293+
<properties>
1294+
<test.parallel.forkCount>2</test.parallel.forkCount>
1295+
<test.parallel.forkCount.elasticsearch>2</test.parallel.forkCount.elasticsearch>
1296+
<test.parallel.forkCount.lucene>2</test.parallel.forkCount.lucene>
1297+
</properties>
1298+
</profile>
1299+
<profile>
1300+
<id>parallel-tests-jenkins</id>
1301+
<properties>
1302+
<test.parallel.forkCount>4</test.parallel.forkCount>
1303+
<test.parallel.forkCount.elasticsearch>2</test.parallel.forkCount.elasticsearch>
1304+
<test.parallel.forkCount.lucene>4</test.parallel.forkCount.lucene>
12891305
</properties>
12901306
</profile>
12911307

0 commit comments

Comments
 (0)