diff --git a/.gitea/workflows/e2e-chat.yml b/.gitea/workflows/e2e-chat.yml index 59276345a..de8df292a 100644 --- a/.gitea/workflows/e2e-chat.yml +++ b/.gitea/workflows/e2e-chat.yml @@ -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