From 067fa75ba43ad5b9d13b401013f5e3d54cb1c9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jord=C3=A0=20Polo?= Date: Wed, 26 Jun 2024 17:57:45 -0500 Subject: [PATCH] Check docker compose status while waiting --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6db47b74..df2ac325 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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