From 2f00116cd490edb403e0c17dffc8f724d7928c78 Mon Sep 17 00:00:00 2001 From: Dagfinn Olsen Date: Thu, 26 Sep 2024 08:10:05 +0200 Subject: [PATCH] usinig actions/setup-go --- .github/workflows/run_k6.yml | 5 +++-- performance-tests/test/src/test.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_k6.yml b/.github/workflows/run_k6.yml index ad32147..4be007a 100644 --- a/.github/workflows/run_k6.yml +++ b/.github/workflows/run_k6.yml @@ -32,7 +32,6 @@ jobs: env: ${{ secrets.YTENVIRONMENT }} tokengenuser: ${{ secrets.TOKENGENUSER }} tokengenuserpwd: ${{ secrets.TOKENGENPWD }} - limit: 10 - name: Setup K6 uses: grafana/setup-k6-action@v1 @@ -41,7 +40,7 @@ jobs: uses: grafana/run-k6-action@v1 with: path: performance-tests/test/src/test.js - flags: --vus=10 --duration=1m + flags: --vus=40 --duration=10m env: K6_WEB_DASHBOARD: true K6_WEB_DASHBOARD_EXPORT: html-report.html @@ -66,8 +65,10 @@ jobs: run: | REPORT_DIR='taxreports' azcopy cp --recursive "*.html" "https://altinnloadtests.blob.core.windows.net/\$web/$REPORT_DIR" + azcopy cp --recursive "stdout.txt" "https://altinnloadtests.blob.core.windows.net/\$web/$REPORT_DIR" echo "::Link to test results summary: title=HTML report url::https://altinnloadtests.z1.web.core.windows.net/$REPORT_DIR/summary.html" echo "::Link to test results extended: title=HTML report url::https://altinnloadtests.z1.web.core.windows.net/$REPORT_DIR/html-report.html" + echo "::Link to test results summary text: title=TXT report url::https://altinnloadtests.z1.web.core.windows.net/$REPORT_DIR/stdout.txt" env: AZCOPY_AUTO_LOGIN_TYPE: SPN AZCOPY_SPA_APPLICATION_ID: ${{ secrets.AZCOPY_SPA_APPLICATION_ID }} diff --git a/performance-tests/test/src/test.js b/performance-tests/test/src/test.js index 8c68f7c..51abe6b 100644 --- a/performance-tests/test/src/test.js +++ b/performance-tests/test/src/test.js @@ -84,7 +84,7 @@ export function submit_tax(data, id) { // 6. Get receipt var receipt_element = receipt_id_resp.json().data.find(x => x.dataType === "Skattemeldingsapp_v2") get_receipt(data, instance, id, receipt_element.id) - + }); } @@ -159,6 +159,7 @@ export function http_get_with_token(endPoint, token, tag) { export function handleSummary(data) { return { 'stdout': textSummary(data, { indent: ' ', enableColors: true }), + 'stdout.txt': textSummary(data, { indent: ' ', enableColors: true }), "summary.html": htmlReport(data), }; }