Skip to content

Commit

Permalink
Extend benchmark based on the original workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chi3316 committed Sep 24, 2024
1 parent 6047851 commit b98eee8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 163 deletions.
162 changes: 0 additions & 162 deletions .github/workflows/benchmark.yml

This file was deleted.

28 changes: 27 additions & 1 deletion .github/workflows/push-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ jobs:
name: versionlist
path: rocketmq-docker/image-build-ci/versionlist/*


list-version:
if: >
github.repository == 'apache/rocketmq' &&
Expand All @@ -101,6 +100,7 @@ jobs:
a=(`ls versionlist`)
printf '%s\n' "${a[@]}" | jq -R . | jq -s .
echo version-json=`printf '%s\n' "${a[@]}" | jq -R . | jq -s .` >> $GITHUB_OUTPUT
deploy:
if: ${{ success() }}
name: Deploy RocketMQ
Expand All @@ -110,7 +110,9 @@ jobs:
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:
Expand All @@ -134,6 +136,7 @@ jobs:
image:
repository: ${{env.DOCKER_REPO}}
tag: ${{ matrix.version }}
test-e2e-grpc-java:
if: ${{ success() }}
name: Test E2E grpc java
Expand Down Expand Up @@ -247,6 +250,27 @@ jobs:
name: test-e2e-remoting-java-log.txt
path: testlog.txt

benchmark-test:
if: ${{ success() }}
runs-on: ubuntu-latest
name: Performance benchmark test
needs: [ list-version, deploy ]
timeout-minutes: 60
steps:
- uses: chi3316/rocketmq-test-tool/benchmark-runner@9d8452cb2f25f611e6f7de29a95c781a718ac156
name: Performance benchmark
with:
action: "performance-benchmark"
ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
job-id: 1
test-time: "600"
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: benchmark-report
path: benchmark/

clean:
if: always()
name: Clean
Expand All @@ -256,7 +280,9 @@ jobs:
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:
Expand Down

0 comments on commit b98eee8

Please sign in to comment.