fix(ci): wait for toolkit socket health
ci/woodpecker/push/woodpecker Pipeline failed
Lint and Build Checks / Lint, Test, and Build (push) Failing after 363h36m27s

This commit is contained in:
2026-06-24 16:01:24 -05:00
parent c84fae9804
commit f5683faeee
2 changed files with 17 additions and 1 deletions
+16 -1
View File
@@ -91,7 +91,22 @@ if ! kill -0 "$socket_pid" 2>/dev/null; then
fi
if command -v curl >/dev/null 2>&1; then
curl -fsS "http://127.0.0.1:$socket_port/health" >/dev/null
socket_ready="false"
for _ in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
if curl -fsS "http://127.0.0.1:$socket_port/health" >/dev/null; then
socket_ready="true"
break
fi
sleep 1
done
if [ "$socket_ready" != "true" ]; then
echo "[deploy:toolkit] socket did not become healthy; recent log output follows."
tail -n 80 "$log_file" || true
exit 1
fi
fi
echo "[deploy:toolkit] socket running as $socket_pid"
+1
View File
@@ -19,6 +19,7 @@
"summary": "Fixed deployed Toolkit socket restarts when SSH sessions do not load the user's Node path.",
"changes": [
"Updated the Toolkit socket restart script to find Node and npm from standard macOS, Homebrew, and NVM locations.",
"Added a bounded health retry so deploys wait for the socket to bind before failing.",
"Kept the restart command safe for non-interactive SSH deploy sessions.",
"Preserved the shared workspace socket behavior for deployed Toolkit editing."
]