diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index c53c8d89cfa9..ccc0c2ca4b39 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 ...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'}}