Skip to content

Commit

Permalink
Log status after waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
jordap committed Jun 27, 2024
1 parent 58a1faa commit 02b1c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Wait for Prometheus
run: timeout 1m bash -c 'until $(curl -o /dev/null --fail -s localhost:9090/metrics); do echo "Waiting for Prometheus..."; sleep 5; done'
- name: Wait for Omniwatch
run: timeout 15m bash -c 'until [[ $(curl -s -g "localhost:9090/api/v1/series?match[]={instance=\"node:8000\"}" | jq ".data|length") != 0 ]]; do echo "Waiting for Omnistat..."; docker compose -f test/docker/slurm/compose.yaml logs | tail; curl -s -g "localhost:9090/api/v1/series?match[]={instance=\"node:8000\"}" | jq ".data|length"; sleep 15; done'
run: timeout 15m bash -c 'until [[ $(curl -s -g "localhost:9090/api/v1/series?match[]={instance=\"node:8000\"}" | jq ".data|length") != 0 ]]; do echo "Waiting for Omnistat..."; docker compose -f test/docker/slurm/compose.yaml logs | tail; curl -s -g "localhost:9090/api/v1/series?match[]={instance=\"node:8000\"}" | jq ".data|length"; sleep 15; done; docker compose -f test/docker/slurm/compose.yaml logs; curl -s -g "localhost:9090/api/v1/series?match[]={instance=\"node:8000\"}"; curl -s -g "localhost:9090/api/v1/series?match[]={instance=\"node:8000\"}" | jq ".data|length"'
- name: Install test dependencies
run: pip3 install prometheus_api_client
- name: Run tests
Expand Down

0 comments on commit 02b1c69

Please sign in to comment.