This is an automated email from the ASF dual-hosted git repository.
JackieTien97 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 402e399ea2e Run datanode unit tests with surefire forkCount=4 (#17698)
402e399ea2e is described below
commit 402e399ea2e611239a5609415f45365184dd6f44
Author: Jackie Tien <[email protected]>
AuthorDate: Sun May 17 19:24:49 2026 +0800
Run datanode unit tests with surefire forkCount=4 (#17698)
---
.github/workflows/unit-test.yml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
index c53c8d89cfa..ccc0c2ca4b3 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -62,7 +62,14 @@ jobs:
- name: Test Datanode Module with Maven
shell: bash
if: ${{ matrix.it_task == 'datanode'}}
- run: mvn clean integration-test -Dtest.port.closed=true -pl
iotdb-core/datanode -am -DskipTests -Diotdb.test.only=true
+ # forkCount=4 runs up to 4 surefire JVMs in parallel. reuseForks=false
+ # is left on (set in iotdb-core/datanode/pom.xml) so each test class
+ # still gets a fresh JVM — only cross-fork parallelism changes.
+ # The pom already wires
<workingDirectory>...fork_${surefire.forkNumber}
+ # for filesystem isolation; datanode UTs do no socket binding (grep'd:
+ # zero ServerSocket / bind() / TServer.serve() calls in tests), so
+ # cross-fork resource conflicts are not a concern.
+ run: mvn clean integration-test -Dtest.port.closed=true -pl
iotdb-core/datanode -am -DskipTests -Diotdb.test.only=true -DforkCount=4
- name: Test Other Modules with Maven
shell: bash
if: ${{ matrix.it_task == 'others'}}