From 20fb5f91184865957a8c934872a5d8217b06db14 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Thu, 22 Aug 2024 23:15:17 +0200 Subject: [PATCH] Update k6_heavy.yml --- .github/workflows/k6_heavy.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/k6_heavy.yml b/.github/workflows/k6_heavy.yml index 35f5e4e..f04aabe 100644 --- a/.github/workflows/k6_heavy.yml +++ b/.github/workflows/k6_heavy.yml @@ -69,6 +69,19 @@ jobs: K6_ITERACTIONS: 500 - run: mv summary.txt loki_summary.txt if: always() + - name: Wait for Tempo API + uses: mydea/action-wait-for-api@v1 + with: + url: "http://localhost:3100/api/search/tags" + - name: Run k6 tempo test + run: ./k6-tracing run --out csv=results.csv tempo/qryn-tempo-template.js + env: + K6_TEMPO_ENDPOINT: "http://localhost:3100" + K6_VUS: 1 + K6_DURATION_MINUTES: 5 + K6_ITERATIONS: 200 + - run: mv summary.txt tempo_summary.txt + if: always() - name: Wait for Prom API uses: mydea/action-wait-for-api@v1 with: @@ -82,32 +95,20 @@ jobs: K6_WRITE_HOSTNAME: "localhost:3100" K6_READ_HOSTNAME: "localhost:3100" K6_WRITE_REQUEST_RATE: 10 - K6_WRITE_SERIES_PER_REQUEST: 15 + K6_WRITE_SERIES_PER_REQUEST: 10 K6_READ_REQUEST_RATE: 5 K6_DURATION_MIN: 5 - K6_SCRAPE_INTERVAL_SECONDS: 15 + K6_SCRAPE_INTERVAL_SECONDS: 30 RAMP_UP_MIN: 0 - run: mv summary.txt prom_summary.txt if: always() - - name: Wait for Tempo API - uses: mydea/action-wait-for-api@v1 - with: - url: "http://localhost:3100/api/search/tags" - - name: Run k6 tempo test - run: ./k6-tracing run --out csv=results.csv tempo/qryn-tempo-template.js - env: - K6_TEMPO_ENDPOINT: "http://localhost:3100" - K6_VUS: 1 - K6_DURATION_MINUTES: 5 - K6_ITERATIONS: 200 - - run: mv summary.txt tempo_summary.txt - if: always() + - name: Strip Text report if: always() run: | sed -i 's/[^[:print:]]/*/' *_summary.txt sed -i 's/[\d128-\d255]//g' *_summary.txt - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: results