Skip to content

Commit

Permalink
Update k6_heavy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Aug 22, 2024
1 parent dbab5b5 commit 20fb5f9
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/k6_heavy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 20fb5f9

Please sign in to comment.