Skip to content

Commit

Permalink
Fix bench workflow
Browse files Browse the repository at this point in the history
* remove default auth variables
* remove comments
* fix playwright setup command
  • Loading branch information
jalevin committed Nov 1, 2024
1 parent 4064dce commit a81efe9
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/grafana-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,21 @@ jobs:
with:
compose-file: './docker-compose.yml'

- name: Wait for Grafana to start
- name: Ensure Grafana is running
run: |
curl http://localhost:3000
#RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3000)
#echo $response
#if [ $RESPONSE -ne 200 ]; then
# sleep 5;
# echo "Grafana is not accessible"
# exit 1
#fi
- name: Run Grafana Bench tests
run: |
docker run --rm \
--network=host \
--volume="./:/home/bench/tests/" \
us-docker.pkg.dev/grafanalabs-global/docker-grafana-bench-prod/grafana-bench:v0.3.0-rc3 test \
--grafana-admin-password "admin" \
--grafana-admin-user "admin" \
us-docker.pkg.dev/grafanalabs-global/docker-grafana-bench-prod/grafana-bench:v0.3.0 test \
--test-runner "playwright" \
--test-suite-base "/home/bench/tests/" \
--grafana-url "http://localhost:3000" \
--log-level DEBUG \
--pw-execute-cmd "yarn e2e" \
--pw-prepare-cmd "yarn install --frozen-lockfile && yarn playwright install" \
--pw-prepare-cmd "yarn install --frozen-lockfile; yarn playwright install" \
--test-env-vars "CI=true" \
--test-runner "playwright" \
--test-suite-base "/home/bench/tests/"
--log-level DEBUG

0 comments on commit a81efe9

Please sign in to comment.