diff --git a/.github/workflows/bashlib.sh b/.github/workflows/bashlib.sh index 39dacd216ed..e53574fd11e 100644 --- a/.github/workflows/bashlib.sh +++ b/.github/workflows/bashlib.sh @@ -237,7 +237,12 @@ playwright-run() { cd "$GITHUB_WORKSPACE" local flasklog="${HOME}/flask-playwright.log" local port=8081 - PLAYWRIGHT_BASE_URL="http://localhost:${port}" + # Use 127.0.0.1 explicitly: `flask run` binds IPv4 only, and Node's DNS + # resolution for `localhost` can return `::1` first (IPv6), which then + # refuses against the IPv4 listener and surfaces as + # `connect ECONNREFUSED ::1:` in API helpers driven from Node + # (e.g., the embedded test app's exposed token fetcher). + PLAYWRIGHT_BASE_URL="http://127.0.0.1:${port}" if [ -n "$APP_ROOT" ]; then export SUPERSET_APP_ROOT=$APP_ROOT PLAYWRIGHT_BASE_URL=${PLAYWRIGHT_BASE_URL}${APP_ROOT}/