Skip to content

Commit

Permalink
Fix failing bench github action (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalevin authored Nov 1, 2024
1 parent b80df5b commit 9ecb401
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/grafana-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
# Only run on push to the main branch
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
test:
Expand Down Expand Up @@ -39,30 +41,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 9ecb401

Please sign in to comment.