Bumps the actions group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.2` | `4.1.7` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.3.3` | `4.3.5` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.7` | `4.1.8` | | [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `3.0.0` | `3.2.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.3.0` | `3.6.1` | | [docker/login-action](https://github.com/docker/login-action) | `3.2.0` | `3.3.0` | | [erlef/setup-beam](https://github.com/erlef/setup-beam) | `1.18.0` | `1.18.1` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.3.3` | `2.4.0` | Updates `actions/checkout` from 4.1.2 to 4.1.7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.2...692973e3d937129bcbf40652eb9f2f61becf3332) Updates `actions/upload-artifact` from 4.3.3 to 4.3.5 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](65462800fd...89ef406dd8) Updates `actions/download-artifact` from 4.1.7 to 4.1.8 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](65a9edc588...fa0a91b85d) Updates `docker/setup-qemu-action` from 3.0.0 to 3.2.0 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](68827325e0...49b3bc8e6b) Updates `docker/setup-buildx-action` from 3.3.0 to 3.6.1 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](d70bba72b1...988b5a0280) Updates `docker/login-action` from 3.2.0 to 3.3.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](0d4c9c5ea7...9780b0c442) Updates `erlef/setup-beam` from 1.18.0 to 1.18.1 - [Release notes](https://github.com/erlef/setup-beam/releases) - [Commits](a6e26b2231...b9c58b0450) Updates `ossf/scorecard-action` from 2.3.3 to 2.4.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](dc50aa9510...62b2cac7ed) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: erlef/setup-beam dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
346 lines
13 KiB
YAML
346 lines
13 KiB
YAML
name: Performance Test Suite
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'perf/**'
|
|
schedule:
|
|
- cron: '0 1 * * MON-FRI'
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
required: false
|
|
|
|
env:
|
|
TF_AWS_REGION: eu-west-1
|
|
TF_VAR_s3_bucket_name: tf-emqx-performance-test2
|
|
TF_VAR_test_duration: 1800
|
|
TF_VAR_prometheus_remote_write_region: eu-west-1
|
|
TF_VAR_prometheus_remote_write_url: ${{ secrets.TF_EMQX_PERF_TEST_PROMETHEUS_REMOTE_WRITE_URL }}
|
|
SLACK_WEBHOOK_URL: ${{ secrets.TF_EMQX_PERF_TEST_SLACK_URL }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
prepare:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'emqx'
|
|
container: ghcr.io/emqx/emqx-builder/5.3-9:1.15.7-26.2.5-3-ubuntu20.04
|
|
outputs:
|
|
BENCH_ID: ${{ steps.prepare.outputs.BENCH_ID }}
|
|
PACKAGE_FILE: ${{ steps.package_file.outputs.PACKAGE_FILE }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ github.event.inputs.ref }}
|
|
- name: Work around https://github.com/actions/checkout/issues/766
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
- id: prepare
|
|
run: |
|
|
echo "EMQX_NAME=emqx" >> $GITHUB_ENV
|
|
echo "CODE_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
|
echo "BENCH_ID=$(date --utc +%F)/emqx-$(./pkg-vsn.sh emqx)" >> $GITHUB_OUTPUT
|
|
- name: Build deb package
|
|
run: |
|
|
make ${EMQX_NAME}-pkg
|
|
./scripts/pkg-tests.sh ${EMQX_NAME}-pkg
|
|
- name: Get package file name
|
|
id: package_file
|
|
run: |
|
|
echo "PACKAGE_FILE=$(find _packages/emqx -name 'emqx-*.deb' | head -n 1 | xargs basename)" >> $GITHUB_OUTPUT
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
with:
|
|
name: emqx-ubuntu20.04
|
|
path: _packages/emqx/${{ steps.package_file.outputs.PACKAGE_FILE }}
|
|
|
|
scenario_1on1:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- prepare
|
|
env:
|
|
TF_VAR_package_file: ${{ needs.prepare.outputs.PACKAGE_FILE }}
|
|
|
|
steps:
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_PERF_TEST }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
aws-region: eu-west-1
|
|
- name: Checkout tf-emqx-performance-test
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
repository: emqx/tf-emqx-performance-test
|
|
path: tf-emqx-performance-test
|
|
ref: v0.2.3
|
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: emqx-ubuntu20.04
|
|
path: tf-emqx-performance-test/
|
|
- name: Setup Terraform
|
|
uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
with:
|
|
terraform_wrapper: false
|
|
- name: run scenario
|
|
working-directory: ./tf-emqx-performance-test
|
|
timeout-minutes: 60
|
|
env:
|
|
TF_VAR_bench_id: "${{ needs.prepare.outputs.BENCH_ID }}/1on1"
|
|
TF_VAR_use_emqttb: 1
|
|
TF_VAR_use_emqtt_bench: 0
|
|
TF_VAR_emqttb_instance_count: 1
|
|
TF_VAR_emqttb_instance_type: c5.2xlarge
|
|
TF_VAR_emqttb_scenario: '@pubsub_fwd -n 50_000 --pub-qos 1 --sub-qos 1'
|
|
TF_VAR_emqx_instance_type: c5.2xlarge
|
|
TF_VAR_emqx_instance_count: 3
|
|
run: |
|
|
terraform init
|
|
terraform apply -auto-approve
|
|
./wait-emqttb.sh
|
|
./fetch-metrics.sh
|
|
terraform destroy -auto-approve
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
- name: Send notification to Slack
|
|
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
with:
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
- name: terraform destroy
|
|
if: always()
|
|
working-directory: ./tf-emqx-performance-test
|
|
run: |
|
|
terraform destroy -auto-approve
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: success()
|
|
with:
|
|
name: metrics
|
|
path: |
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: failure()
|
|
with:
|
|
name: terraform
|
|
path: |
|
|
./tf-emqx-performance-test/.terraform
|
|
./tf-emqx-performance-test/*.tfstate
|
|
|
|
scenario_fanout:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- prepare
|
|
- scenario_1on1
|
|
env:
|
|
TF_VAR_package_file: ${{ needs.prepare.outputs.PACKAGE_FILE }}
|
|
|
|
steps:
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_PERF_TEST }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
aws-region: eu-west-1
|
|
- name: Checkout tf-emqx-performance-test
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
repository: emqx/tf-emqx-performance-test
|
|
path: tf-emqx-performance-test
|
|
ref: v0.2.3
|
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: emqx-ubuntu20.04
|
|
path: tf-emqx-performance-test/
|
|
- name: Setup Terraform
|
|
uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
with:
|
|
terraform_wrapper: false
|
|
- name: run scenario
|
|
working-directory: ./tf-emqx-performance-test
|
|
timeout-minutes: 60
|
|
env:
|
|
TF_VAR_bench_id: "${{ needs.prepare.outputs.BENCH_ID }}/fan-out"
|
|
TF_VAR_use_emqttb: 1
|
|
TF_VAR_use_emqtt_bench: 0
|
|
TF_VAR_emqttb_instance_count: 1
|
|
TF_VAR_emqttb_instance_type: c5.2xlarge
|
|
TF_VAR_emqttb_scenario: '@pub --topic "t/%n" --conninterval 10ms --pubinterval 20ms --num-clients 5 --size 16 @sub --topic "t/#" --conninterval 10ms --num-clients 1000'
|
|
TF_VAR_emqx_instance_type: c5.large
|
|
TF_VAR_emqx_instance_count: 3
|
|
run: |
|
|
terraform init
|
|
terraform apply -auto-approve
|
|
./wait-emqttb.sh
|
|
./fetch-metrics.sh
|
|
terraform destroy -auto-approve
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
- name: Send notification to Slack
|
|
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
with:
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
- name: terraform destroy
|
|
if: always()
|
|
working-directory: ./tf-emqx-performance-test
|
|
run: |
|
|
terraform destroy -auto-approve
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: success()
|
|
with:
|
|
name: metrics
|
|
path: |
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: failure()
|
|
with:
|
|
name: terraform
|
|
path: |
|
|
./tf-emqx-performance-test/.terraform
|
|
./tf-emqx-performance-test/*.tfstate
|
|
|
|
scenario_fanin:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- prepare
|
|
- scenario_1on1
|
|
- scenario_fanout
|
|
env:
|
|
TF_VAR_package_file: ${{ needs.prepare.outputs.PACKAGE_FILE }}
|
|
|
|
steps:
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_PERF_TEST }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
aws-region: eu-west-1
|
|
- name: Checkout tf-emqx-performance-test
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
repository: emqx/tf-emqx-performance-test
|
|
path: tf-emqx-performance-test
|
|
ref: v0.2.3
|
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: emqx-ubuntu20.04
|
|
path: tf-emqx-performance-test/
|
|
- name: Setup Terraform
|
|
uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
with:
|
|
terraform_wrapper: false
|
|
- name: run scenario
|
|
working-directory: ./tf-emqx-performance-test
|
|
timeout-minutes: 60
|
|
env:
|
|
TF_VAR_bench_id: "${{ needs.prepare.outputs.BENCH_ID }}/fan-in"
|
|
TF_VAR_use_emqttb: 1
|
|
TF_VAR_use_emqtt_bench: 0
|
|
TF_VAR_emqttb_instance_count: 2
|
|
TF_VAR_emqttb_start_n_multiplier: 25000
|
|
TF_VAR_emqttb_instance_type: c5.xlarge
|
|
TF_VAR_emqttb_scenario: '@pub --topic t/%n --conninterval 10ms --pubinterval 1s --num-clients 25_000 --start-n $START_N --size 16 @sub --topic \$share/perf/t/# --conninterval 10ms --num-clients 250'
|
|
TF_VAR_emqx_instance_type: c5.2xlarge
|
|
TF_VAR_emqx_instance_count: 3
|
|
run: |
|
|
terraform init
|
|
terraform apply -auto-approve
|
|
./wait-emqttb.sh
|
|
./fetch-metrics.sh
|
|
terraform destroy -auto-approve
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
- name: Send notification to Slack
|
|
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
with:
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
- name: terraform destroy
|
|
if: always()
|
|
working-directory: ./tf-emqx-performance-test
|
|
run: |
|
|
terraform destroy -auto-approve
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: success()
|
|
with:
|
|
name: metrics
|
|
path: |
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: failure()
|
|
with:
|
|
name: terraform
|
|
path: |
|
|
./tf-emqx-performance-test/.terraform
|
|
./tf-emqx-performance-test/*.tfstate
|
|
|
|
scenario_1m_conns:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- prepare
|
|
- scenario_fanin
|
|
- scenario_fanout
|
|
- scenario_1on1
|
|
env:
|
|
TF_VAR_package_file: ${{ needs.prepare.outputs.PACKAGE_FILE }}
|
|
|
|
steps:
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_PERF_TEST }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PERF_TEST }}
|
|
aws-region: eu-west-1
|
|
- name: Checkout tf-emqx-performance-test
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
repository: emqx/tf-emqx-performance-test
|
|
path: tf-emqx-performance-test
|
|
ref: v0.2.3
|
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: emqx-ubuntu20.04
|
|
path: tf-emqx-performance-test/
|
|
- name: Setup Terraform
|
|
uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
|
|
with:
|
|
terraform_wrapper: false
|
|
- name: run scenario
|
|
working-directory: ./tf-emqx-performance-test
|
|
timeout-minutes: 60
|
|
env:
|
|
TF_VAR_bench_id: "${{ needs.prepare.outputs.BENCH_ID }}/1m-connections"
|
|
TF_VAR_use_emqttb: 1
|
|
TF_VAR_use_emqtt_bench: 0
|
|
TF_VAR_emqttb_instance_count: 5
|
|
TF_VAR_emqttb_instance_type: c5.2xlarge
|
|
TF_VAR_emqttb_scenario: '@conn -N 200_000 --conninterval 1ms'
|
|
TF_VAR_emqx_instance_type: c5.2xlarge
|
|
TF_VAR_emqx_instance_count: 3
|
|
run: |
|
|
terraform init
|
|
terraform apply -auto-approve
|
|
./wait-emqttb.sh
|
|
./fetch-metrics.sh
|
|
terraform destroy -auto-approve
|
|
aws s3 sync --exclude '*' --include '*.tar.gz' s3://$TF_VAR_s3_bucket_name/$TF_VAR_bench_id .
|
|
- name: Send notification to Slack
|
|
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
|
|
with:
|
|
payload-file-path: "./tf-emqx-performance-test/slack-payload.json"
|
|
- name: terraform destroy
|
|
if: always()
|
|
working-directory: ./tf-emqx-performance-test
|
|
run: |
|
|
terraform destroy -auto-approve
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: success()
|
|
with:
|
|
name: metrics
|
|
path: |
|
|
"./tf-emqx-performance-test/*.tar.gz"
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: failure()
|
|
with:
|
|
name: terraform
|
|
path: |
|
|
./tf-emqx-performance-test/.terraform
|
|
./tf-emqx-performance-test/*.tfstate
|