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

aaronai 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 6c9359fbfc [ISSUE #6824] Add golang e2e test (#6825)
6c9359fbfc is described below

commit 6c9359fbfc144fbb8ced50b4d592ec879ca863db
Author: deepsola <[email protected]>
AuthorDate: Fri Jun 9 14:35:49 2023 +0800

    [ISSUE #6824] Add golang e2e test (#6825)
    
    * Update push-ci.yml, add golang test
    
    * Update pr-e2e-test.yml, add golang test
---
 .github/workflows/pr-e2e-test.yml | 96 ++++++++++++++++++++++++++++++++++-----
 .github/workflows/push-ci.yml     | 94 ++++++++++++++++++++++++++++++++++----
 2 files changed, 170 insertions(+), 20 deletions(-)

diff --git a/.github/workflows/pr-e2e-test.yml 
b/.github/workflows/pr-e2e-test.yml
index b73cc43ec5..d0371e3113 100644
--- a/.github/workflows/pr-e2e-test.yml
+++ b/.github/workflows/pr-e2e-test.yml
@@ -103,7 +103,7 @@ jobs:
       matrix:
         version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
     steps:
-      - uses: 
apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: Deploy rocketmq
         with:
           action: "deploy"
@@ -126,10 +126,9 @@ jobs:
               image:
                 repository: ${{env.DOCKER_REPO}}
                 tag: ${{ matrix.version }}
-
-  e2e-test:
+  test-e2e-grpc-java:
     if: ${{ success() }}
-    name: E2E Test
+    name: Test E2E grpc java
     needs: [list-version, deploy]
     runs-on: ubuntu-latest
     timeout-minutes: 60
@@ -137,17 +136,17 @@ jobs:
       matrix:
         version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
     steps:
-      - uses: 
apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: e2e test
         with:
           action: "test"
           ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
           test-version: "${{ matrix.version }}"
-          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e.git";
+          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e";
           test-code-branch: "master"
           test-code-path: java/e2e
           test-cmd: "mvn -B test"
-          job-id: ${{ strategy.job-index }}
+          job-id: 0
       - name: Publish Test Report
         uses: mikepenz/action-junit-report@v3
         if: always() # always run even if the previous step fails
@@ -160,24 +159,99 @@ jobs:
         if: always()
         name: Upload test log
         with:
-          name: testlog.txt
+          name: test-e2e-grpc-java-log.txt
+          path: testlog.txt
+          
+  test-e2e-golang:
+    if: ${{ success() }}
+    name: Test E2E golang
+    needs: [list-version, deploy]
+    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: e2e test
+        with:
+          action: "test"
+          ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
+          test-version: "${{ matrix.version }}"
+          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e";
+          test-code-branch: "master"
+          test-code-path: golang
+          test-cmd: |
+            cd ../common &&  mvn -Prelease -DskipTests clean package -U
+            cd ../rocketmq-admintools && source bin/env.sh
+            cd ../golang && go get -u 
github.com/apache/rocketmq-clients/golang && gotestsum --junitfile 
./target/surefire-reports/TEST-report.xml ./mqgotest/... -timeout 2m  -v
+          job-id: 0
+      - name: Publish Test Report
+        uses: mikepenz/action-junit-report@v3
+        if: always() # always run even if the previous step fails
+        with:
+          report_paths: '**/test_report/TEST-*.xml'
+          annotate_only: true
+          include_passed: true
+          detailed_summary: true
+      - uses: actions/upload-artifact@v3
+        if: always()
+        name: Upload test log
+        with:
+          name: test-e2e-golang-log.txt
+          path: testlog.txt
+          
+  test-e2e-remoting-java:
+    if: ${{ success() }}
+    name: Test E2E remoting java
+    needs: [ list-version, deploy ]
+    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: e2e test
+        with:
+          action: "test"
+          ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
+          test-version: "${{ matrix.version }}"
+          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e";
+          test-code-branch: "master"
+          test-code-path: java/e2e-v4
+          test-cmd: "mvn -B test"
+          job-id: 0
+      - name: Publish Test Report
+        uses: mikepenz/action-junit-report@v3
+        if: always() # always run even if the previous step fails
+        with:
+          report_paths: '**/test_report/TEST-*.xml'
+          annotate_only: true
+          include_passed: true
+          detailed_summary: true
+      - uses: actions/upload-artifact@v3
+        if: always()
+        name: Upload test log
+        with:
+          name: test-e2e-remoting-java-log.txt
           path: testlog.txt
-
 
   clean:
     if: always()
     name: Clean
-    needs: [list-version, e2e-test]
+    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) }}
     steps:
-      - uses: 
apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: clean
         with:
           action: "clean"
           ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
           test-version: "${{ matrix.version }}"
           job-id: ${{ strategy.job-index }}
+          
diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml
index 089be5b54b..ad29a57c8a 100644
--- a/.github/workflows/push-ci.yml
+++ b/.github/workflows/push-ci.yml
@@ -108,7 +108,7 @@ jobs:
       matrix:
         version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
     steps:
-      - uses: 
apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: Deploy rocketmq
         with:
           action: "deploy"
@@ -131,9 +131,9 @@ jobs:
               image:
                 repository: ${{env.DOCKER_REPO}}
                 tag: ${{ matrix.version }}
-  e2e-test:
+  test-e2e-grpc-java:
     if: ${{ success() }}
-    name: E2E Test
+    name: Test E2E grpc java
     needs: [list-version, deploy]
     runs-on: ubuntu-latest
     timeout-minutes: 60
@@ -141,17 +141,92 @@ jobs:
       matrix:
         version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
     steps:
-      - uses: 
apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: e2e test
         with:
           action: "test"
           ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
           test-version: "${{ matrix.version }}"
-          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e.git";
+          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e";
           test-code-branch: "master"
           test-code-path: java/e2e
           test-cmd: "mvn -B test"
-          job-id: ${{ strategy.job-index }}
+          job-id: 0
+      - name: Publish Test Report
+        uses: mikepenz/action-junit-report@v3
+        if: always() # always run even if the previous step fails
+        with:
+          report_paths: '**/test_report/TEST-*.xml'
+          annotate_only: true
+          include_passed: true
+          detailed_summary: true
+      - uses: actions/upload-artifact@v3
+        if: always()
+        name: Upload test log
+        with:
+          name: test-e2e-grpc-java-log.txt
+          path: testlog.txt
+          
+  test-e2e-golang:
+    if: ${{ success() }}
+    name: Test E2E golang
+    needs: [list-version, deploy]
+    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: e2e test
+        with:
+          action: "test"
+          ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
+          test-version: "${{ matrix.version }}"
+          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e";
+          test-code-branch: "master"
+          test-code-path: golang
+          test-cmd: |
+            cd ../common &&  mvn -Prelease -DskipTests clean package -U
+            cd ../rocketmq-admintools && source bin/env.sh
+            cd ../golang && go get -u 
github.com/apache/rocketmq-clients/golang && gotestsum --junitfile 
./target/surefire-reports/TEST-report.xml ./mqgotest/... -timeout 2m  -v
+          job-id: 0
+      - name: Publish Test Report
+        uses: mikepenz/action-junit-report@v3
+        if: always() # always run even if the previous step fails
+        with:
+          report_paths: '**/test_report/TEST-*.xml'
+          annotate_only: true
+          include_passed: true
+          detailed_summary: true
+      - uses: actions/upload-artifact@v3
+        if: always()
+        name: Upload test log
+        with:
+          name: test-e2e-golang-log.txt
+          path: testlog.txt
+          
+  test-e2e-remoting-java:
+    if: ${{ success() }}
+    name: Test E2E remoting java
+    needs: [ list-version, deploy ]
+    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: e2e test
+        with:
+          action: "test"
+          ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
+          test-version: "${{ matrix.version }}"
+          test-code-git: 
"https://ghproxy.com/https://github.com/apache/rocketmq-e2e";
+          test-code-branch: "master"
+          test-code-path: java/e2e-v4
+          test-cmd: "mvn -B test"
+          job-id: 0
       - name: Publish Test Report
         uses: mikepenz/action-junit-report@v3
         if: always() # always run even if the previous step fails
@@ -164,23 +239,24 @@ jobs:
         if: always()
         name: Upload test log
         with:
-          name: testlog.txt
+          name: test-e2e-remoting-java-log.txt
           path: testlog.txt
 
   clean:
     if: always()
     name: Clean
-    needs: [list-version, e2e-test]
+    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) }}
     steps:
-      - uses: 
apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
+      - uses: 
apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
         name: clean
         with:
           action: "clean"
           ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
           test-version: "${{ matrix.version }}"
           job-id: ${{ strategy.job-index }}
+          

Reply via email to