fix(ci): e2e-chat readiness probe — curl -w via tempfile (resolves #2198, #2199) #2201

Merged
claude-ceo-assistant merged 1 commits from fix/e2e-chat-readiness-curl-tempfile-2198 into main 2026-06-04 04:09:01 +00:00
+6 -1
View File
@@ -292,7 +292,12 @@ jobs:
# every 2s.
READY=""
for i in $(seq 1 60); do
CODE=$(curl -s -o /dev/null -w '%{http_code}' "http://localhost:${CANVAS_PORT}/?m=chat" 2>/dev/null || echo 000)
# Tempfile-routed -w + set +e/-e prevents curl-exit-code
# pollution of the captured status (lint-curl-status-capture.yml).
set +e
curl -s -o /dev/null -w '%{http_code}' "http://localhost:${CANVAS_PORT}/?m=chat" > /tmp/canvas-ready.code
set -e
CODE=$(cat /tmp/canvas-ready.code 2>/dev/null || echo "000")
if [ "$CODE" -ge 200 ] && [ "$CODE" -lt 400 ]; then
echo "Canvas (chat route compiled) up after ~$((i*2))s (HTTP ${CODE})"
READY=1