From 0cc4764aa5b15f3ae12b102e41281c1457e511f3 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 17 May 2026 03:38:25 -0700 Subject: [PATCH] fix: healthcheck with verbose error output Remove 2>/dev/null to surface the actual error when docker exec or wget fails inside the CI container. --- .gitea/workflows/pr.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 8027421..b8a094a 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -82,10 +82,11 @@ jobs: - name: Wait for CI site to be healthy run: | for i in {1..30}; do - if docker exec euchre-camp-ci wget -q -O- http://localhost:3000/api/health 2>/dev/null | grep -q healthy; then - echo "CI site is healthy" + if result=$(docker exec euchre-camp-ci wget -q -O- http://localhost:3000/api/health 2>&1); then + echo "CI site is healthy: $result" exit 0 fi + echo "Attempt $i: $result" sleep 2 done echo "CI site failed to become healthy after 60 seconds"