Skip to content

Commit

Permalink
Sleep for one additional minute
Browse files Browse the repository at this point in the history
  • Loading branch information
jordap committed Jun 27, 2024
1 parent 02b1c69 commit 70b3a8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
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; 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: Sleep
run: bash -c 'sleep 60; docker compose -f test/docker/slurm/compose.yaml logs'
- name: Install test dependencies
run: pip3 install prometheus_api_client
- name: Run tests
Expand Down

0 comments on commit 70b3a8c

Please sign in to comment.