Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(performance): remove warm-up step before performance tests #1942

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 1 addition & 38 deletions .github/workflows/ci-cd-yt01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,46 +109,9 @@ jobs:
checks: write
pull-requests: write

run-performance-warmup:
name: "Run K6 warmup tests"
# we want the performance tests to be dependent on deployment of infrastructure and apps, but if infrastructure is skipped, we still want to run the tests
if: ${{ always() && !failure() && !cancelled() && (needs.check-for-changes.outputs.hasBackendChanges == 'true' || needs.check-for-changes.outputs.hasInfraChanges == 'true') }}
needs: [deploy-apps, deploy-infra, check-for-changes]
uses: ./.github/workflows/workflow-run-k6-performance.yml
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
strategy:
max-parallel: 4
matrix:
files:
- tests/k6/tests/serviceowner/performance/serviceowner-search.js
- tests/k6/tests/serviceowner/performance/create-dialog.js
- tests/k6/tests/serviceowner/performance/create-transmissions.js
- tests/k6/tests/enduser/performance/enduser-search.js
fail-fast: false
with:
environment: yt01
apiVersion: v1
vus: 1
duration: 1m
testSuitePath: ${{ matrix.files }}
parallelism: 1
breakpoint: false
abortOnFail: false
numberOfEndUsers: 200
permissions:
checks: write
pull-requests: write
id-token: write
contents: read

run-performance-tests:
name: "Run K6 performance tests"
# we want the performance tests to be dependent on deployment of infrastructure and apps, but if infrastructure is skipped, we still want to run the tests
if: ${{ always() && !failure() && !cancelled() && (needs.check-for-changes.outputs.hasBackendChanges == 'true' || needs.check-for-changes.outputs.hasInfraChanges == 'true') }}
needs: [run-performance-warmup]
#needs: [deploy-apps, check-for-changes]
needs: [run-e2e-tests]
uses: ./.github/workflows/workflow-run-k6-performance.yml
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
Expand Down
Loading