Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(smoke): header-only fixture-server readiness polls

Martin Vogel0c0111eb3308
diff --git a/scripts/smoke-local.sh b/scripts/smoke-local.sh
index 9a38dd96d..ae617634a 100755
--- a/scripts/smoke-local.sh
+++ b/scripts/smoke-local.sh
@@ -161,7 +161,9 @@ READY=0
for _ in $(seq 1 100); do
if [ -s "$PORT_FILE" ]; then
PORT=$(tr -d '[:space:]' < "$PORT_FILE")
- if curl --noproxy '*' -fsS \
+ # Header-only readiness (see vm-smoke.sh): proves routing without a
+ # full body transfer per poll; the download phases own body transport.
+ if curl --noproxy '*' -fsSI \
"http://127.0.0.1:$PORT/$EXPECTED_ARTIFACT" >/dev/null 2>&1; then
READY=1
break
diff --git a/test-infrastructure/vm/vm-smoke.sh b/test-infrastructure/vm/vm-smoke.sh
index 8d3d7de79..881469366 100755
--- a/test-infrastructure/vm/vm-smoke.sh
+++ b/test-infrastructure/vm/vm-smoke.sh
@@ -186,7 +186,13 @@ READY=0
for _ in $(seq 1 100); do
if [ -s "$PORT_FILE" ]; then
PORT=$(tr -d '[:space:]' < "$PORT_FILE")
- if curl --noproxy '*' -fsS \
+ # Header-only readiness: a HEAD proves the server routes the artifact
+ # without transferring the archive body on every poll (hosted Windows
+ # runners reset mid-body full-GET polls — WinError 10054 on the server,
+ # 99 aborted transfers per job — while the same stack passes on the VM;
+ # the real download phases still exercise full transfers and report
+ # phase-precise if body transport is broken).
+ if curl --noproxy '*' -fsSI \
"http://127.0.0.1:$PORT/$EXPECTED_ARTIFACT" >/dev/null 2>&1; then
READY=1
break