Skip to content

Commit 0c0111e

Browse files
committed
fix(smoke): header-only fixture-server readiness polls
Hosted Windows runners reset the readiness poll's full-archive GET mid-body (WinError 10054 on the server, ~99 aborted transfers per job) while the identical stack passes on the VM; every windows smoke job died at 'fixture server did not serve' with a healthy server. A HEAD proves the artifact routes without transferring the body per poll; the download phases still own full-body transport and report phase-precise if that is ever broken. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 6d8b394 commit 0c0111e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎scripts/smoke-local.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ READY=0
161161
for _ in $(seq 1 100); do
162162
if [ -s "$PORT_FILE" ]; then
163163
PORT=$(tr -d '[:space:]' < "$PORT_FILE")
164-
if curl --noproxy '*' -fsS \
164+
# Header-only readiness (see vm-smoke.sh): proves routing without a
165+
# full body transfer per poll; the download phases own body transport.
166+
if curl --noproxy '*' -fsSI \
165167
"http://127.0.0.1:$PORT/$EXPECTED_ARTIFACT" >/dev/null 2>&1; then
166168
READY=1
167169
break

‎test-infrastructure/vm/vm-smoke.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,13 @@ READY=0
186186
for _ in $(seq 1 100); do
187187
if [ -s "$PORT_FILE" ]; then
188188
PORT=$(tr -d '[:space:]' < "$PORT_FILE")
189-
if curl --noproxy '*' -fsS \
189+
# Header-only readiness: a HEAD proves the server routes the artifact
190+
# without transferring the archive body on every poll (hosted Windows
191+
# runners reset mid-body full-GET polls — WinError 10054 on the server,
192+
# 99 aborted transfers per job — while the same stack passes on the VM;
193+
# the real download phases still exercise full transfers and report
194+
# phase-precise if body transport is broken).
195+
if curl --noproxy '*' -fsSI \
190196
"http://127.0.0.1:$PORT/$EXPECTED_ARTIFACT" >/dev/null 2>&1; then
191197
READY=1
192198
break

0 commit comments

Comments
 (0)