K6 Loki qxip/qryn #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: K6 Loki Test qryn:latest | |
on: | |
workflow_dispatch: | |
inputs: | |
qryn_tag: | |
description: 'Build/Tag for qryn (latest)' | |
required: false | |
clickhouse_tag: | |
description: 'BuildTag for ClickHouse (latest)' | |
required: false | |
jobs: | |
build: | |
name: Run k6 on qryn:latest | |
runs-on: ubuntu-latest | |
env: | |
QRYN_VERSION: "clickhouse/clickhouse-server:${{ github.event.inputs.qryn_tag || 'latest' }}" | |
CLICKHOUSE_VERSION: "qxip/qryn:${{ github.event.inputs.clickhouse_tag || 'latest' }}" | |
services: | |
clickhouse: | |
image: "clickhouse/clickhouse-server:${{ github.event.inputs.clickhouse_tag || 'latest' }}" | |
ports: | |
- 8123:8123 | |
qryn: | |
image: "qxip/qryn:${{ github.event.inputs.qryn_tag || 'latest' }}" | |
ports: | |
- 3100:3100 | |
env: | |
CLICKHOUSE_SERVER: clickhouse | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Download k6 for Prometheus | |
run: | | |
wget https://github.com/metrico/qryn-bench/releases/download/latest/k6 | |
chmod +x k6 | |
- name: Run k6 loki test | |
run: ./k6 run --out csv=results.csv loki/qryn-loki-loadtest.js | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: results | |
path: | | |
results.csv | |
summary.html | |
- name: Convert HTML to Markdown | |
id: html2markdown | |
uses: rknj/html2markdown@v0.1.0 | |
with: | |
html-file: "summary.html" | |
- name: Summary Report | |
run: | | |
echo "### qryn image" >> $GITHUB_STEP_SUMMARY | |
echo "qxip/qryn:${{ github.event.inputs.qryn_tag || 'latest' }}" >> $GITHUB_STEP_SUMMARY | |
echo "" >> $GITHUB_STEP_SUMMARY | |
echo "### clickhouse image" >> $GITHUB_STEP_SUMMARY | |
echo "clickhouse/clickhouse-server:${{ github.event.inputs.clickhouse_tag || 'latest' }}" >> $GITHUB_STEP_SUMMARY | |
echo "" >> $GITHUB_STEP_SUMMARY | |
echo "${{ steps.html2markdown.outputs.markdown-content }}" >> $GITHUB_STEP_SUMMARY |