This is an automated email from the ASF dual-hosted git repository.

JackieTien97 pushed a commit to branch worktree-codecov-ci-opt
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 75007c82bcb2a3afc22ec4928867dea4305d5c7c
Author: JackieTien97 <[email protected]>
AuthorDate: Sun May 17 16:04:28 2026 +0800

    Speed up Codecov CI by running surefire with 2 parallel forks
    
    The codecov job currently runs ~66 min, ~51 min of which is the DataNode
    unit tests on a single JVM at a time. The datanode pom sets
    reuseForks=false (fresh JVM per test class) and surefire defaults to
    forkCount=1, so on the 4-core runner only one test class runs at any
    moment. The parent pom already configures per-fork working directories
    (fork_${surefire.forkNumber}), so the project is plumbed for parallel
    forks but never enables them.
    
    Pass -DforkCount=2 to the codecov maven invocation so two test JVMs run
    in parallel, cutting the DataNode UT phase roughly in half without
    changing test isolation semantics.
---
 .github/workflows/sonar-codecov.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/sonar-codecov.yml 
b/.github/workflows/sonar-codecov.yml
index adb943a7f62..f81885c5d63 100644
--- a/.github/workflows/sonar-codecov.yml
+++ b/.github/workflows/sonar-codecov.yml
@@ -50,7 +50,7 @@ jobs:
           restore-keys: ${{ runner.os }}-m2-
       - name: Test
         run: |
-          mvn -B -P with-code-coverage clean package -pl 
distribution,iotdb-client/cli,iotdb-client/session,iotdb-client/jdbc -am 
-Dtest.port.closed=true
+          mvn -B -P with-code-coverage clean package -pl 
distribution,iotdb-client/cli,iotdb-client/session,iotdb-client/jdbc -am 
-Dtest.port.closed=true -DforkCount=2
           mvn -B -P with-code-coverage post-integration-test -pl code-coverage
       - name: Upload coverage reports to codecov
         uses: codecov/codecov-action@v5

Reply via email to