From 2a664aa03e88eae792e2749a8b1243009273c4ac Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Mon, 6 Jul 2026 09:20:49 +0200 Subject: [PATCH] fix(smoke): --noproxy for local download + surface curl errors (arm64 12a) Phase 12a swallowed curl's stderr (2>/dev/null), so the persistent windows-arm64 "curl download failed" was undiagnosable. Two changes: (1) add --noproxy '*' so curl never routes the local 127.0.0.1 test server through a proxy env var -- a strong candidate since the app's own WinHTTP downloader reaches the server in Phase 14 while only msys2 curl fails, instantly; (2) print curl's stderr on failure so the actual reason is visible if it persists. Harmless on all platforms (the smoke server is always local). Signed-off-by: Martin Vogel --- scripts/smoke-test.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/smoke-test.sh b/scripts/smoke-test.sh index 2c02f0bc7..072cb3de9 100755 --- a/scripts/smoke-test.sh +++ b/scripts/smoke-test.sh @@ -1594,12 +1594,18 @@ DL_ARCHIVE_UI="codebase-memory-mcp-ui-${DL_OS}-${DL_ARCH}.${DL_EXT}" # 12a: curl download (try standard, then UI variant) echo "--- Phase 12a: curl download ---" -if ! curl -fSL -o "$DL_DIR/$DL_ARCHIVE" "$SMOKE_DOWNLOAD_URL/$DL_ARCHIVE" 2>/dev/null; then +# --noproxy '*': never route the local test server through a proxy — a proxy env +# var present on some runners (notably windows-11-arm) made curl fail to reach +# 127.0.0.1 while the app's own downloader (WinHTTP) bypassed it. On failure, +# surface curl's stderr instead of swallowing it so the reason is visible. +if ! curl -fSL --noproxy '*' -o "$DL_DIR/$DL_ARCHIVE" "$SMOKE_DOWNLOAD_URL/$DL_ARCHIVE" 2>/tmp/cbm-curl12a.err; then # Try UI variant - if curl -fSL -o "$DL_DIR/$DL_ARCHIVE_UI" "$SMOKE_DOWNLOAD_URL/$DL_ARCHIVE_UI" 2>/dev/null; then + if curl -fSL --noproxy '*' -o "$DL_DIR/$DL_ARCHIVE_UI" "$SMOKE_DOWNLOAD_URL/$DL_ARCHIVE_UI" 2>>/tmp/cbm-curl12a.err; then DL_ARCHIVE="$DL_ARCHIVE_UI" else echo "FAIL 12a: curl download failed (tried standard and ui variants)" + echo "--- curl stderr (url: $SMOKE_DOWNLOAD_URL/$DL_ARCHIVE) ---" + cat /tmp/cbm-curl12a.err 2>/dev/null || true exit 1 fi fi