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

oxsean pushed a commit to branch split-unit-test
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit 67eb0848a6d52ff0b7868aae2edbc05b90ecb18d
Author: Sean Yang <[email protected]>
AuthorDate: Mon Sep 9 22:48:56 2024 +0800

    test
---
 .github/workflows/build-and-test-scheduled-3.3.yml | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build-and-test-scheduled-3.3.yml 
b/.github/workflows/build-and-test-scheduled-3.3.yml
index aca04d2402..27746d5dde 100644
--- a/.github/workflows/build-and-test-scheduled-3.3.yml
+++ b/.github/workflows/build-and-test-scheduled-3.3.yml
@@ -122,7 +122,7 @@ jobs:
     name: Preparation for Unit Test on ${{ matrix.os }}
     runs-on: ${{ matrix.os }}-latest
     env:
-      JOB_COUNT: 2
+      JOB_COUNT: 1
       ZOOKEEPER_VERSION: 3.6.4
     strategy:
       matrix:
@@ -187,7 +187,7 @@ jobs:
         os: [ ubuntu, windows ]
         jdk: [ 8, 11, 17, 21 ]
         ser: [ hessian2, fastjson2 ]
-        job_id: [ 1, 2 ]
+        job_id: [ 1 ]
     steps:
       - name: Checkout code
         uses: actions/checkout@v4
@@ -228,7 +228,16 @@ jobs:
         run: |
           set -o pipefail
           modules=$(cat test/jobs/test_modules_${{ matrix.job_id }}.txt)
-          ./mvnw ${{ env.MAVEN_ARGS }} clean test verify 
-Pjdk15ge-simple,'!jdk15ge','!demo',skip-spotless -pl "$modules" 
-DtrimStackTrace=false -Dmaven.test.skip=false -Drat.skip=false 
-Dflatten.skip=true -DembeddedZookeeperPath=${{ github.workspace 
}}/.tmp/zookeeper 2>&1 | tee >(grep -n -B 5 -A 200 "FAILURE! -- in" > 
test_errors.log)
+          set -x
+          while true; do
+            pid=$(${{ env.ZOOKEEPER_VERSION }}/bin/jps | grep dubbo | awk 
'{print $1}')
+            if [ ! -z "$pid" ]; then
+              echo "Dumping threads for process $pid"
+              ${{ env.ZOOKEEPER_VERSION }}/bin/jstack $pid
+            fi
+            sleep 30
+          done &
+          ./mvnw ${{ env.MAVEN_ARGS }} clean test verify 
-Pjdk15ge-simple,'!jdk15ge','!demo',skip-spotless -pl "$modules" 
-DtrimStackTrace=false -Dmaven.test.skip=false -Drat.skip=false 
-Dflatten.skip=true -DembeddedZookeeperPath=${{ github.workspace 
}}/.tmp/zookeeper > test.log
       - name: Print test error log
         if: failure()
         run: cat test_errors.log

Reply via email to