Skip to content

Commit 6ed8159

Browse files
fix(e2e): use 127.0.0.1 for local wheel server on macOS
On macOS CI runners, `ipconfig getifaddr en0` returns a VM bridge address (e.g. 192.168.64.24) that becomes unreachable mid-test, causing uv to fail with tcp connect errors. Since macOS does not use network isolation (podman), 127.0.0.1 works reliably. Closes: #922 Co-Authored-By: Claude <claude@anthropic.com> Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
1 parent 52b770c commit 6ed8159

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

e2e/common.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ start_local_wheel_server() {
7373
python3 -m http.server --directory "$serve_dir" 9999 &
7474
HTTP_SERVER_PID=$!
7575
if which ip 2>&1 >/dev/null; then
76-
# Linux
76+
# Linux: need host IP because podman can't reach localhost
7777
IP=$(ip route get 1.1.1.1 | grep 1.1.1.1 | awk '{print $7}')
7878
else
79-
# macOS
80-
IP=$(ipconfig getifaddr en0)
79+
# macOS: no network isolation, localhost works
80+
IP=127.0.0.1
8181
fi
8282
export WHEEL_SERVER_URL="http://${IP}:9999/simple"
8383
}

0 commit comments

Comments
 (0)