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:
parent
eff0b1ee18
commit
6b4a294db0
1 changed files with 6 additions and 1 deletions
|
|
@ -49,8 +49,13 @@ jobs:
|
||||||
docker run -d --name "$name" \
|
docker run -d --name "$name" \
|
||||||
-e THERMOGRAPH_FRONTEND_BASE_INTERNAL=http://127.0.0.1:1 \
|
-e THERMOGRAPH_FRONTEND_BASE_INTERNAL=http://127.0.0.1:1 \
|
||||||
-p "127.0.0.1:${port}:8137" thermograph-backend:ci
|
-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
|
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
|
if curl -fsS -o /dev/null "http://127.0.0.1:${port}/healthz"; then ok=1; break; fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue