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

jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0c4064dc24 [ISSUE #8810] Fix independent execution of e2e and 
benchmark deployments (#8812)
0c4064dc24 is described below

commit 0c4064dc24d7d40485197713d61b341d6dbfb4a0
Author: 小陈 <[email protected]>
AuthorDate: Fri Oct 11 16:43:07 2024 +0800

    [ISSUE #8810] Fix independent execution of e2e and benchmark deployments 
(#8812)
    
    * Fix e2e and benchmark tests dependency issues
    
    * Update job naming
    
    * Fix bug
    
    * Update
---
 .github/workflows/push-ci.yml | 77 ++++++++++++++++++++++++++++++++++---------
 1 file changed, 62 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml
index cc2a053eba..9e13794b31 100644
--- a/.github/workflows/push-ci.yml
+++ b/.github/workflows/push-ci.yml
@@ -101,18 +101,16 @@ jobs:
           printf '%s\n' "${a[@]}" | jq -R . | jq -s .
           echo version-json=`printf '%s\n' "${a[@]}" | jq -R . | jq -s .` >> 
$GITHUB_OUTPUT
 
-  deploy:
+  deploy-e2e:
     if: ${{ success() }}
-    name: Deploy RocketMQ
+    name: Deploy RocketMQ For E2E
     needs: [list-version,docker]
     runs-on: ubuntu-latest
     timeout-minutes: 60
     strategy:
       matrix:
         version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
-        test-type: [e2e, benchmark]
     steps:
-      - run: echo "Running ${{ matrix.test-type }}... "
       - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: Deploy rocketmq
         with:
@@ -137,10 +135,44 @@ jobs:
                 repository: ${{env.DOCKER_REPO}}
                 tag: ${{ matrix.version }}
 
+  deploy-benchmark:
+    if: ${{ success() }}
+    name: Deploy RocketMQ For Benchmarking
+    needs: [list-version,docker]
+    runs-on: ubuntu-latest
+    timeout-minutes: 60
+    strategy:
+      matrix:
+        version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
+    steps:
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
+        name: Deploy rocketmq
+        with:
+          action: "deploy"
+          ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
+          test-version: "${{ matrix.version }}"
+          chart-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-docker.git";
+          chart-branch: "master"
+          chart-path: "./rocketmq-k8s-helm"
+          job-id: "001-${{ strategy.job-index }}"
+          helm-values: |
+            nameserver:
+              image:
+                repository: ${{env.DOCKER_REPO}}
+                tag: ${{ matrix.version }}
+            broker:
+              image:
+                repository: ${{env.DOCKER_REPO}}
+                tag: ${{ matrix.version }}
+            proxy:
+              image:
+                repository: ${{env.DOCKER_REPO}}
+                tag: ${{ matrix.version }}
+
   test-e2e-grpc-java:
     if: ${{ success() }}
     name: Test E2E grpc java
-    needs: [list-version, deploy]
+    needs: [list-version, deploy-e2e]
     runs-on: ubuntu-latest
     timeout-minutes: 60
     strategy:
@@ -176,7 +208,7 @@ jobs:
   test-e2e-golang:
     if: ${{ success() }}
     name: Test E2E golang
-    needs: [list-version, deploy]
+    needs: [list-version, deploy-e2e]
     runs-on: ubuntu-latest
     timeout-minutes: 60
     strategy:
@@ -217,7 +249,7 @@ jobs:
   test-e2e-remoting-java:
     if: ${{ success() }}
     name: Test E2E remoting java
-    needs: [ list-version, deploy ]
+    needs: [ list-version, deploy-e2e ]
     runs-on: ubuntu-latest
     timeout-minutes: 60
     strategy:
@@ -254,7 +286,7 @@ jobs:
     if: ${{ success() }}
     runs-on: ubuntu-latest
     name: Performance benchmark test
-    needs: [ list-version, deploy ]
+    needs: [ list-version, deploy-benchmark ]
     timeout-minutes: 60
     steps:
       - uses: 
apache/rocketmq-test-tool/benchmark-runner@ce372e5f3906ca1891e4918b05be14608eae608e
@@ -262,14 +294,14 @@ jobs:
         with:
           action: "performance-benchmark"
           ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
-          job-id: 1
+          job-id: "001-${{ strategy.job-index }}"
           # The time to run the test, 15 minutes
           test-time: "900"
           # Some thresholds set in advance
           min-send-tps-threshold: "12000"
           max-rt-ms-threshold: "500"
           avg-rt-ms-threshold: "10"
-          max-2c-rt-ms-threshold: "100"
+          max-2c-rt-ms-threshold: "150"
           avg-2c-rt-ms-threshold: "10"
       - name: Upload test report
         if: always()
@@ -278,18 +310,16 @@ jobs:
           name: benchmark-report
           path: benchmark/
 
-  clean:
+  clean-e2e:
     if: always()
-    name: Clean
-    needs: [list-version, test-e2e-grpc-java, test-e2e-golang, 
test-e2e-remoting-java, benchmark-test]
+    name: Clean E2E
+    needs: [ list-version, test-e2e-grpc-java, test-e2e-golang, 
test-e2e-remoting-java ]
     runs-on: ubuntu-latest
     timeout-minutes: 60
     strategy:
       matrix:
         version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
-        test-type: [ e2e, benchmark ]
     steps:
-      - run: echo "Cleaning ${{ matrix.test-type }}... "
       - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: clean
         with:
@@ -298,3 +328,20 @@ jobs:
           test-version: "${{ matrix.version }}"
           job-id: ${{ strategy.job-index }}
           
+  clean-benchmark:
+    if: always()
+    name: Clean Benchmarking
+    needs: [ list-version, benchmark-test ]
+    runs-on: ubuntu-latest
+    timeout-minutes: 60
+    strategy:
+      matrix:
+        version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
+    steps:
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
+        name: clean
+        with:
+          action: "clean"
+          ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
+          test-version: "${{ matrix.version }}"
+          job-id: "001-${{ strategy.job-index }}"
\ No newline at end of file

Reply via email to