Skip to content

Commit

Permalink
Check docker compose status while waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
jordap committed Jun 26, 2024
1 parent 3b06136 commit 067fa75
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,6 +16,6 @@ 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...'; sleep 5; 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"
- name: Run tests
run: pytest-3 -v test

0 comments on commit 067fa75

Please sign in to comment.