Fix CI boot check take 4: 30s timeout too short under CI load

Confirmed via a real run's own docker logs: the container actually
booted successfully (migrations + 4 uvicorn workers, "Application
startup complete") but took just over 30s under this runner's
resource contention (capacity 2 -- another job's build often runs
concurrently), where the same boot takes ~3s locally with nothing else
competing for CPU. Give it 60s instead.
This commit is contained in:
emi 2026-07-21 16:22:34 -07:00
parent eff0b1ee18
commit 6b4a294db0

View file

@ -49,8 +49,13 @@ jobs:
docker run -d --name "$name" \
-e THERMOGRAPH_FRONTEND_BASE_INTERNAL=http://127.0.0.1:1 \
-p "127.0.0.1:${port}:8137" thermograph-backend:ci
# 60s, not 30 -- confirmed by a real run's own docker logs: alembic
# migrations + starting 4 uvicorn workers took just over 30s under
# this runner's resource contention (capacity 2, so another job's
# build often runs concurrently), even though the same boot takes
# ~3s locally with nothing else competing for CPU.
ok=0
for i in $(seq 1 30); do
for i in $(seq 1 60); do
if curl -fsS -o /dev/null "http://127.0.0.1:${port}/healthz"; then ok=1; break; fi
sleep 1
done