Skip to content

Commit 402e399

Browse files
authored
Run datanode unit tests with surefire forkCount=4 (#17698)
1 parent 754e500 commit 402e399

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/unit-test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ jobs:
6262
- name: Test Datanode Module with Maven
6363
shell: bash
6464
if: ${{ matrix.it_task == 'datanode'}}
65-
run: mvn clean integration-test -Dtest.port.closed=true -pl iotdb-core/datanode -am -DskipTests -Diotdb.test.only=true
65+
# forkCount=4 runs up to 4 surefire JVMs in parallel. reuseForks=false
66+
# is left on (set in iotdb-core/datanode/pom.xml) so each test class
67+
# still gets a fresh JVM — only cross-fork parallelism changes.
68+
# The pom already wires <workingDirectory>...fork_${surefire.forkNumber}
69+
# for filesystem isolation; datanode UTs do no socket binding (grep'd:
70+
# zero ServerSocket / bind() / TServer.serve() calls in tests), so
71+
# cross-fork resource conflicts are not a concern.
72+
run: mvn clean integration-test -Dtest.port.closed=true -pl iotdb-core/datanode -am -DskipTests -Diotdb.test.only=true -DforkCount=4
6673
- name: Test Other Modules with Maven
6774
shell: bash
6875
if: ${{ matrix.it_task == 'others'}}

0 commit comments

Comments
 (0)