Skip to content

Commit

Permalink
feat: DEVOPS-1833 jmeter test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlops committed Feb 2, 2025
1 parent 490ac28 commit 1447932
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test_performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ jobs:
permissions:
id-token: write
contents: write
name: Performance tests
name: Jmeter test
runs-on: self-hosted
container:
image: alpine/jmeter:5.6
if: github.actor != 'dependabot[bot]'
timeout-minutes: 1440
env:
TEST_ID: "jmeter-test-zq2-${{ github.run_id }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -76,7 +78,6 @@ jobs:
- name: Run tests
working-directory: infra/jmeter
run: |
export TEST_ID="jmeter-test-${GITHUB_REPOSITORY##*/}-${{ github.run_id }}"
export TARGET_HOST=${{ github.event.inputs.target_host || 'query.zq2-prototestnet.zilliqa.com' }}
export TARGET_PORT=${{ github.event.inputs.target_port || '443' }}
export PROTOCOL=${{ github.event.inputs.protocol || 'https' }}
Expand All @@ -97,7 +98,7 @@ jobs:
-JRESPONSE_TIMEOUT=${RESPONSE_TIMEOUT} \
-t jmeter-plan-template.jmx \
-l ${TEST_ID}.jtl \
-o reports
-o ${TEST_ID}
echo "Test results for ${TEST_ID}:"
cat "${TEST_ID}.jtl"
Expand All @@ -107,11 +108,11 @@ jobs:
with:
token_format: "access_token"
workload_identity_provider: ${{ secrets.GCP_PRD_GITHUB_WIF }}
service_account: "${{ secrets.GCP_PRD_GITHUB_SA_K8S_DEPLOY }}"
service_account: "${{ secrets.GCP_PRD_GITHUB_SA_OBSERVABILITY }}"
create_credentials_file: true

- name: Upload reports
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: infra/jmeter/reports
destination: 'zq2-infratest-checkpoint'
path: 'infra/jmeter/${{ env.TEST_ID }}'
destination: 'bkt-p-jmeter-reports-asia-southeast1-001'

0 comments on commit 1447932

Please sign in to comment.