Fix deploy loopback verification to accept login redirect
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Has been cancelled
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 10s

This commit is contained in:
2026-07-01 14:55:59 +09:00
parent f68fb10bac
commit 2f60fbf655
+2 -2
View File
@@ -165,11 +165,11 @@ jobs:
echo "=== Verifying Loopback Health ===" echo "=== Verifying Loopback Health ==="
loopback_headers=$(ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/id_ed25519 "$DEPLOY_USER@$DEPLOY_HOST" "curl -s -D - -o /dev/null http://127.0.0.1:5000/") loopback_headers=$(ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/id_ed25519 "$DEPLOY_USER@$DEPLOY_HOST" "curl -s -D - -o /dev/null http://127.0.0.1:5000/")
echo "$loopback_headers" echo "$loopback_headers"
if ! printf '%s' "$loopback_headers" | grep -qE '^HTTP/1\.1 30[12] '; then if ! printf '%s' "$loopback_headers" | grep -qE '^HTTP/1\.[01] 30[12] '; then
echo "Loopback health check failed for quantengine" >&2 echo "Loopback health check failed for quantengine" >&2
exit 1 exit 1
fi fi
if ! printf '%s' "$loopback_headers" | grep -qiE '^Location: /not-found'; then if ! printf '%s' "$loopback_headers" | grep -qiE '^Location: /login'; then
echo "Loopback redirect target is unexpected" >&2 echo "Loopback redirect target is unexpected" >&2
exit 1 exit 1
fi fi