Skip to content

Commit 7f66257

Browse files
committed
ci: fix health check — use curl from runner, not wget inside scratch image
1 parent ea8f1ff commit 7f66257

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ jobs:
5454
ports:
5555
- 7080:7080
5656
- 7084:7084
57-
options: >-
58-
--health-cmd "wget -qO- http://localhost:7084/health || exit 1"
59-
--health-interval 10s
60-
--health-timeout 5s
61-
--health-retries 12
6257
steps:
6358
- uses: actions/checkout@v4
6459
with:
@@ -68,6 +63,20 @@ jobs:
6863
with:
6964
python-version: "3.11"
7065

66+
- name: Wait for coordinode
67+
run: |
68+
echo "Waiting for coordinode health endpoint..."
69+
for i in $(seq 1 30); do
70+
if curl -sf http://localhost:7084/health >/dev/null 2>&1; then
71+
echo "coordinode is ready (attempt $i)"
72+
exit 0
73+
fi
74+
echo "Attempt $i/30 — not ready yet, sleeping 5s..."
75+
sleep 5
76+
done
77+
echo "Error: coordinode did not become healthy after 150s" >&2
78+
exit 1
79+
7180
- name: Install + generate proto
7281
run: |
7382
uv sync

0 commit comments

Comments
 (0)