Repository navigation
[ci] Resolve macOS and agent-side packages through the CI mirror - #65602
Conversation
macOS jobs fetch every package straight from files.pythonhosted.org, so they are fully exposed to the intermittent 502s (pypi/support#11895). macos_wheels_arm64 carries the release_wheels tag and publishes to the wheels destination on master, so a failure there leaves the published wheel set short a platform. The mirror was already reachable: these builders take vpc_id from module.prod_environment, the same VPC as that stack's mirror-cache and its private zone. What was missing was a way to use it, since the Linux images get the proxy via /etc/profile.d and a macOS step is not a login shell into an image. Adds ci/ray_ci/macos/pypi_proxy.sh, sourced from macos_ci.sh and macos_ci_build.sh before their first installs, which installs the proxy if needed and then hands off to ci/pypi_proxy_profile.sh for the probe, mode selection and fail-open paths rather than reimplementing them. Three changes make the shared pieces work off-image: an install prefix and a skip-profile switch, so a host installs without sudo; an address override, because hostname -i is Linux-only and returns nothing on macOS, plus nohup where setsid is absent; and a guarded asgi_cross_origin_protection import, the only dependency needing 3.11 when these agents have none -- its middleware only rejects cross-site state-changing requests and every route here is a GET. The venv is created with --clear. Without it an attempt that failed partway leaves stale bin/ symlinks that a later attempt inherits, giving a venv whose python cannot start; found by testing that exact sequence. Cheap here because the agents are long-lived with a persistent HOME, so the venv is built once per machine rather than once per job, and loopback suffices with no containers to reach it. AI assistance (Claude Code) was used for this change. Signed-off-by: elliot-barn <[email protected]>
The images cover steps that run inside them: forge and manylinux each carry the proxy and start it from /etc/profile.d. What no image can cover is anything that never enters a container -- the release pipeline's init step, and every wanda image build, both of which run directly on the agent. Those are the surfaces still resolving from files.pythonhosted.org, and init failing means zero release tests run at all: it failed on the mirror-merge commit itself, and 104422 only got through after three retries. .buildkite/hooks/pre-command runs on the agent before every step, including wanda steps, so it is the one place that reaches them. It exports two addresses: PIP_INDEX_URL on loopback for pip and uv on the agent, and RAYCI_IMAGE_PIP_INDEX_URL on the docker bridge gateway for docker builds, which have their own loopback. wanda resolves build args from its own process environment, so the second is what lets an image build use the mirror -- which is what ray#65578 has been waiting for. Reachability was measured, not assumed: on premerge 72149 a docker build RUN step reached a proxy outside its network namespace on both the BuildKit and legacy builders with default networking, no --network=host. Every path fails open. The hook runs under set -e and a package mirror must never be the reason a job fails, so a step that gets nothing exported resolves from public PyPI exactly as today -- including when the install itself fails, which necessarily fetches from PyPI and so can hit the very fault being worked around. Known cost, and the reason this is worth reviewing carefully: Linux agents terminate per job, so the install runs each time. macOS and Windows agents are long-lived and install once per machine. Scoping the hook to the steps that need it, or running the proxy from the forge image rather than installing it, would both remove that -- neither is done here. AI assistance (Claude Code) was used for this change. Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request extends the CI PyPI index proxy to run directly on Buildkite agents and macOS hosts, ensuring that steps running outside of containers can also leverage the CI package mirror. The feedback focuses on improving cross-platform compatibility, specifically suggesting dynamic detection of the Python virtual environment executable directory (Scripts vs bin) to support Windows hosts, making log file paths unique in multi-tenant environments, and validating the Python interpreter version on macOS.
| if "$PROXY_PYTHON" -c 'import sys; sys.exit(0 if sys.version_info >= (3, 11) else 1)'; then | ||
| deps+=("asgi-cross-origin-protection==0.1.1") | ||
| fi | ||
| "$PREFIX"/bin/pip install --no-cache-dir "${deps[@]}" |
There was a problem hiding this comment.
On Windows agents, Python virtual environments use Scripts instead of bin for the executable directory. Dynamically detecting the correct directory ensures compatibility with Windows hosts.
| "$PREFIX"/bin/pip install --no-cache-dir "${deps[@]}" | |
| bin_dir="bin" | |
| if [[ -d "$PREFIX/Scripts" ]]; then | |
| bin_dir="Scripts" | |
| fi | |
| "$PREFIX"/$bin_dir/pip install --no-cache-dir "${deps[@]}" |
| local mirror="${RAYCI_PYPI_MIRROR_URL:-https://mirror.ci.ray.io}" | ||
| local port="${RAYCI_PYPI_PROXY_PORT:-35999}" | ||
| local prefix="${RAYCI_PYPI_PROXY_PREFIX:-/var/tmp/rayci-pypiproxy}" | ||
| local log="/tmp/rayci_pypi_proxy_agent.log" |
There was a problem hiding this comment.
Using a static log file path in /tmp can cause permission conflicts or race conditions on multi-tenant or multi-agent hosts when different users run Buildkite agents. Appending the username makes the log file path unique per user.
| local log="/tmp/rayci_pypi_proxy_agent.log" | |
| local log="/tmp/rayci_pypi_proxy_agent-${USER:-${USERNAME:-default}}.log" |
| # Validate rather than test for a directory: a half-finished install from an interrupted | ||
| # job would otherwise look complete and fail later, inside pip. | ||
| if ! "${prefix}/bin/python" -c 'import niquests, starlette, uvicorn' 2>/dev/null; then |
There was a problem hiding this comment.
On Windows agents, Python virtual environments use Scripts instead of bin for the executable directory. Dynamically detecting the correct directory ensures compatibility with Windows hosts.
| # Validate rather than test for a directory: a half-finished install from an interrupted | |
| # job would otherwise look complete and fail later, inside pip. | |
| if ! "${prefix}/bin/python" -c 'import niquests, starlette, uvicorn' 2>/dev/null; then | |
| local bin_dir="bin" | |
| if [[ -d "${prefix}/Scripts" ]]; then | |
| bin_dir="Scripts" | |
| fi | |
| local proxy_python="${prefix}/${bin_dir}/python" | |
| # Validate rather than test for a directory: a half-finished install from an interrupted | |
| # job would otherwise look complete and fail later, inside pip. | |
| if ! "${proxy_python}" -c 'import niquests, starlette, uvicorn' 2>/dev/null; then |
| MIRROR_URL="${mirror}" setsid "${prefix}/bin/python" \ | ||
| "${prefix}/pypi_index_proxy.py" "${port}" >>"${log}" 2>&1 & | ||
| else | ||
| ( MIRROR_URL="${mirror}" nohup "${prefix}/bin/python" \ | ||
| "${prefix}/pypi_index_proxy.py" "${port}" >>"${log}" 2>&1 & ) |
There was a problem hiding this comment.
Use the dynamically detected proxy_python path to ensure compatibility with Windows hosts.
| MIRROR_URL="${mirror}" setsid "${prefix}/bin/python" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >>"${log}" 2>&1 & | |
| else | |
| ( MIRROR_URL="${mirror}" nohup "${prefix}/bin/python" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >>"${log}" 2>&1 & ) | |
| MIRROR_URL="${mirror}" setsid "${proxy_python}" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >>"${log}" 2>&1 & | |
| else | |
| ( MIRROR_URL="${mirror}" nohup "${proxy_python}" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >>"${log}" 2>&1 & ) |
| local prefix="${RAYCI_PYPI_PROXY_PREFIX:-/opt/pypiproxy}" | ||
| if [[ ! -x "${prefix}/bin/python" ]]; then |
There was a problem hiding this comment.
On Windows agents, Python virtual environments use Scripts instead of bin for the executable directory. Dynamically detecting the correct directory ensures compatibility with Windows hosts.
| local prefix="${RAYCI_PYPI_PROXY_PREFIX:-/opt/pypiproxy}" | |
| if [[ ! -x "${prefix}/bin/python" ]]; then | |
| local prefix="${RAYCI_PYPI_PROXY_PREFIX:-/opt/pypiproxy}" | |
| local bin_dir="bin" | |
| if [[ -d "${prefix}/Scripts" ]]; then | |
| bin_dir="Scripts" | |
| fi | |
| local proxy_python="${prefix}/${bin_dir}/python" | |
| if [[ ! -x "${proxy_python}" ]]; then |
| MIRROR_URL="${mirror}" setsid "${prefix}/bin/python" \ | ||
| "${prefix}/pypi_index_proxy.py" "${port}" >"${log}" 2>&1 & | ||
| else | ||
| ( MIRROR_URL="${mirror}" nohup "${prefix}/bin/python" \ | ||
| "${prefix}/pypi_index_proxy.py" "${port}" >"${log}" 2>&1 & ) |
There was a problem hiding this comment.
Use the dynamically detected proxy_python path to ensure compatibility with Windows hosts.
| MIRROR_URL="${mirror}" setsid "${prefix}/bin/python" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >"${log}" 2>&1 & | |
| else | |
| ( MIRROR_URL="${mirror}" nohup "${prefix}/bin/python" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >"${log}" 2>&1 & ) | |
| MIRROR_URL="${mirror}" setsid "${proxy_python}" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >"${log}" 2>&1 & | |
| else | |
| ( MIRROR_URL="${mirror}" nohup "${proxy_python}" \ | |
| "${prefix}/pypi_index_proxy.py" "${port}" >"${log}" 2>&1 & ) |
| local candidate found="" | ||
| for candidate in \ | ||
| /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 \ | ||
| /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 \ | ||
| /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 \ | ||
| /opt/homebrew/opt/miniforge/bin/python3 \ | ||
| "$(command -v python3.12 2>/dev/null)" \ | ||
| "$(command -v python3.11 2>/dev/null)" \ | ||
| "$(command -v python3.10 2>/dev/null)"; do | ||
| if [[ -n "${candidate}" && -x "${candidate}" ]]; then | ||
| found="${candidate}" | ||
| break | ||
| fi | ||
| done |
There was a problem hiding this comment.
Validating the selected Python interpreter's version (ensuring it is >= 3.10) prevents runtime failures if an older or incompatible Python version is picked up from the environment. Adding python3 as a fallback candidate also improves robustness.
| local candidate found="" | |
| for candidate in \ | |
| /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 \ | |
| /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 \ | |
| /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 \ | |
| /opt/homebrew/opt/miniforge/bin/python3 \ | |
| "$(command -v python3.12 2>/dev/null)" \ | |
| "$(command -v python3.11 2>/dev/null)" \ | |
| "$(command -v python3.10 2>/dev/null)"; do | |
| if [[ -n "${candidate}" && -x "${candidate}" ]]; then | |
| found="${candidate}" | |
| break | |
| fi | |
| done | |
| local candidate found="" | |
| for candidate in \ | |
| /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 \ | |
| /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 \ | |
| /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 \ | |
| /opt/homebrew/opt/miniforge/bin/python3 \ | |
| "$(command -v python3.12 2>/dev/null)" \ | |
| "$(command -v python3.11 2>/dev/null)" \ | |
| "$(command -v python3.10 2>/dev/null)" \ | |
| "$(command -v python3 2>/dev/null)"; do | |
| if [[ -n "${candidate}" && -x "${candidate}" ]] && "${candidate}" -c 'import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)' 2>/dev/null; then | |
| found="${candidate}" | |
| break | |
| fi | |
| done |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bd5ee92. Configure here.
| fi | ||
| if [[ -n "${gateway}" ]]; then | ||
| export RAYCI_IMAGE_PIP_INDEX_URL="http://${gateway}:${port}/simple" | ||
| echo "pypi index: image builds -> ${RAYCI_IMAGE_PIP_INDEX_URL}" |
There was a problem hiding this comment.
Image index URL lacks trusted-host
High Severity
RAYCI_IMAGE_PIP_INDEX_URL is exported as plain HTTP to the docker bridge gateway. Wanda only forwards that into PIP_INDEX_URL for wheel image builds. pip and uv treat a non-loopback HTTP index as insecure and ignore it unless PIP_TRUSTED_HOST / UV_INSECURE_HOST are set, which the profile path already does for nested containers. Wheel RUN steps then fail to resolve packages instead of using the mirror or falling back to PyPI.
Reviewed by Cursor Bugbot for commit bd5ee92. Configure here.
Fixes wheel builds broken on master by #65602. postmerge 19281 failed `wanda: wheel py3.{10,11,12,13}` on `8ed2aa20e` (the hook commit); 19280 passed on the commit before. Release build 104832 shows the same failure on `wanda: wheel py3.11/py3.12`. pip inside the image build was pointed at the agent's bridge gateway, could not reach it, and failed with `cython==3.0.12 (from versions: none)` — no 502, no origin fetch, no index at all. **Why it was worse than a no-op:** `ray-wheel.Dockerfile` reads `${RAYCI_IMAGE_PIP_INDEX_URL:-https://pypi.org/simple}`, so an *absent* value falls back to PyPI while a *present but unreachable* one fails hard. The fail-open that protects every other path does not extend into an image build. **What I got wrong:** premerge 72149 proved a docker build could reach a *step container* on the bridge (172.16.0.2). Reaching the *host* at the bridge gateway is a different hop, and I conflated them. **The loopback export stays**, and it is proven: 104832's `init` resolved 562 bazel repositories with zero direct fetches to files.pythonhosted.org, where 104694 failed on `aiobotocore`. Restoring the image half needs an address verified from inside a build on the agent that will run it. AI assistance (Claude Code) was used for this change. Signed-off-by: elliot-barn <[email protected]>
Windows is the last platform still resolving from files.pythonhosted.org (pypi/support#11895), and it needs its own entry point: the two places that install packages there are not login shells, so the profile.d hook the Linux images use never runs. `RUN bash build_ray.sh` inside the docker build the tester starts, and the command list the wheel builder passes to `docker run`, both source ci/ray_ci/windows/pypi_proxy.sh explicitly. The proxy runs inside the container on loopback rather than on the agent. The Windows host carries Python 3.8, below what the proxy supports, while conda in the image supplies 3.10 -- enough, since the only dependency needing 3.11 is skipped by the installer and guarded at import. Loopback also means pip and uv accept it over plain HTTP with no trusted-host handling, and the venv is baked into the windowsbuild image by build_base.sh, so nothing is installed at job time. Two shared pieces gain Windows support rather than being copied: install_pypi_proxy.sh picks Scripts/ over bin/ for the venv, and pypi_proxy_profile.sh takes the interpreter from RAYCI_PYPI_PROXY_PYTHON when a caller names it, which ci/pypi_proxy_agent.sh already does for the same reason. Every failure path leaves the environment untouched, so a job resolves from public PyPI exactly as it does today. Rebased onto master: the earlier revision of this branch predated the agent hook (#65602), the bazel downloader rewrite (#65599) and the index-shape correction (#65603), and would have reverted all three. Tested: bash -n over the five touched shell scripts. The Windows paths themselves need a windowsbuild image build to exercise, which is what this PR's premerge does. AI assistance was used for this change. Signed-off-by: Elliot Barnwell <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…-project#65602) Replaces ray-project#65597 and ray-project#65601, which accumulated a tangled history (a squash-merge between them, a master merge, and two DCO repairs). Same content, byte-identical to ray-project#65597's head, as two clean commits. ## Description Two surfaces still resolve from `files.pythonhosted.org` (pypi/support#11895), and neither can be reached by the images: - **macOS** — steps run directly on the agent, so there is no image to install the proxy into and no `/etc/profile.d` being sourced. `macos_wheels_arm64` carries the `release_wheels` tag and publishes to the wheels destination on master, so a 502 there leaves the published wheel set short a platform. - **The release pipeline's `init` step, and every wanda image build** — both run directly on the agent too. `init` is the one that hurts: when it fails, **zero release tests run**. It failed on the mirror-merge commit itself (release 104738), and 104422 only got through after three retries. The mirror was already reachable from all of them — the macOS builders take `vpc_id` from `module.prod_environment`, the same VPC as that stack's `mirror-cache` and its private zone. What was missing was a way to use it. ## What changed **`ci/ray_ci/macos/pypi_proxy.sh`** — sourced from `macos_ci.sh` and `macos_ci_build.sh` before their first installs. **`.buildkite/hooks/pre-command`** + **`ci/pypi_proxy_agent.sh`** — the hook runs on the agent before every step, *including wanda steps*, so it is the one place that reaches them. It exports two addresses because they serve different consumers: ``` PIP_INDEX_URL 127.0.0.1 for pip and uv on the agent itself RAYCI_IMAGE_PIP_INDEX_URL bridge gateway for docker builds, which have their own loopback ``` The second is what unparks **ray-project#65578**: wanda resolves build args from its own process environment, and nothing set that variable before, so the `ARG` defaulted to empty and every image build silently fell back to PyPI. **Shared-script changes** that any off-image install needs: an install prefix and a skip-profile switch (so a host installs without sudo); an address override, because `hostname -i` is Linux-only and returns nothing on macOS, plus `nohup` where `setsid` is absent; a guarded `asgi_cross_origin_protection` import, the only dependency requiring 3.11 when these agents have none; and `venv --clear`, without which a half-finished install leaves stale `bin/` symlinks that a retry inherits, producing a venv whose python cannot start. ## Reachability was measured On premerge 72149, a `docker build` RUN step reached a proxy outside its network namespace on **both the BuildKit and legacy builders, default networking, no `--network=host`**. ## Known cost, worth reviewing carefully Linux agents terminate per job, so the hook's install runs on **every job**, including ones that never touch Python. macOS and Windows agents are long-lived and install once per machine. Two ways to remove that, neither done here: scope the hook to the steps that actually need it (containerised steps already get a proxy from `profile.d`), or run the proxy *from* the forge image, which already carries it at `/opt/pypiproxy`, instead of installing. ## Fail-open everywhere The hook runs under `set -e` and a package mirror must never be the reason a job fails. An unreachable mirror, no suitable interpreter, a failed install, or a proxy that starts but cannot serve all leave the environment untouched, and the step resolves from public PyPI exactly as today. ## Testing Exercised end to end against a stub mirror: installs to a user-writable prefix with no sudo, starts the proxy, exports both addresses with the bridge gateway detected automatically, and serves an index whose artifact URLs are rewritten onto the mirror. Fail-open verified twice, with a broken interpreter and with an unreachable mirror. The proxy runs on 3.10 with the optional middleware absent and on 3.11 with it present. `pre-commit` (shellcheck, ruff, black, semgrep) clean. Not verified: real macOS agents, and the interaction with a real wanda image build. The failure mode if the interpreter search, the loopback bind, or the gateway detection is wrong on a real agent is a printed warning and a job that resolves from PyPI — the status quo, not a new failure. AI assistance (Claude Code) was used for this change. --------- Signed-off-by: elliot-barn <[email protected]>
…t#65603) Fixes wheel builds broken on master by ray-project#65602. postmerge 19281 failed `wanda: wheel py3.{10,11,12,13}` on `8ed2aa20e` (the hook commit); 19280 passed on the commit before. Release build 104832 shows the same failure on `wanda: wheel py3.11/py3.12`. pip inside the image build was pointed at the agent's bridge gateway, could not reach it, and failed with `cython==3.0.12 (from versions: none)` — no 502, no origin fetch, no index at all. **Why it was worse than a no-op:** `ray-wheel.Dockerfile` reads `${RAYCI_IMAGE_PIP_INDEX_URL:-https://pypi.org/simple}`, so an *absent* value falls back to PyPI while a *present but unreachable* one fails hard. The fail-open that protects every other path does not extend into an image build. **What I got wrong:** premerge 72149 proved a docker build could reach a *step container* on the bridge (172.16.0.2). Reaching the *host* at the bridge gateway is a different hop, and I conflated them. **The loopback export stays**, and it is proven: 104832's `init` resolved 562 bazel repositories with zero direct fetches to files.pythonhosted.org, where 104694 failed on `aiobotocore`. Restoring the image half needs an address verified from inside a build on the agent that will run it. AI assistance (Claude Code) was used for this change. Signed-off-by: elliot-barn <[email protected]>


Replaces #65597 and #65601, which accumulated a tangled history (a squash-merge between them, a master merge, and two DCO repairs). Same content, byte-identical to #65597's head, as two clean commits.
Description
Two surfaces still resolve from
files.pythonhosted.org(pypi/support#11895), and neither can be reached by the images:/etc/profile.dbeing sourced.macos_wheels_arm64carries therelease_wheelstag and publishes to the wheels destination on master, so a 502 there leaves the published wheel set short a platform.initstep, and every wanda image build — both run directly on the agent too.initis the one that hurts: when it fails, zero release tests run. It failed on the mirror-merge commit itself (release 104738), and 104422 only got through after three retries.The mirror was already reachable from all of them — the macOS builders take
vpc_idfrommodule.prod_environment, the same VPC as that stack'smirror-cacheand its private zone. What was missing was a way to use it.What changed
ci/ray_ci/macos/pypi_proxy.sh— sourced frommacos_ci.shandmacos_ci_build.shbefore their first installs..buildkite/hooks/pre-command+ci/pypi_proxy_agent.sh— the hook runs on the agent before every step, including wanda steps, so it is the one place that reaches them. It exports two addresses because they serve different consumers:The second is what unparks #65578: wanda resolves build args from its own process environment, and nothing set that variable before, so the
ARGdefaulted to empty and every image build silently fell back to PyPI.Shared-script changes that any off-image install needs: an install prefix and a skip-profile switch (so a host installs without sudo); an address override, because
hostname -iis Linux-only and returns nothing on macOS, plusnohupwheresetsidis absent; a guardedasgi_cross_origin_protectionimport, the only dependency requiring 3.11 when these agents have none; andvenv --clear, without which a half-finished install leaves stalebin/symlinks that a retry inherits, producing a venv whose python cannot start.Reachability was measured
On premerge 72149, a
docker buildRUN step reached a proxy outside its network namespace on both the BuildKit and legacy builders, default networking, no--network=host.Known cost, worth reviewing carefully
Linux agents terminate per job, so the hook's install runs on every job, including ones that never touch Python. macOS and Windows agents are long-lived and install once per machine. Two ways to remove that, neither done here: scope the hook to the steps that actually need it (containerised steps already get a proxy from
profile.d), or run the proxy from the forge image, which already carries it at/opt/pypiproxy, instead of installing.Fail-open everywhere
The hook runs under
set -eand a package mirror must never be the reason a job fails. An unreachable mirror, no suitable interpreter, a failed install, or a proxy that starts but cannot serve all leave the environment untouched, and the step resolves from public PyPI exactly as today.Testing
Exercised end to end against a stub mirror: installs to a user-writable prefix with no sudo, starts the proxy, exports both addresses with the bridge gateway detected automatically, and serves an index whose artifact URLs are rewritten onto the mirror. Fail-open verified twice, with a broken interpreter and with an unreachable mirror. The proxy runs on 3.10 with the optional middleware absent and on 3.11 with it present.
pre-commit(shellcheck, ruff, black, semgrep) clean.Not verified: real macOS agents, and the interaction with a real wanda image build. The failure mode if the interpreter search, the loopback bind, or the gateway detection is wrong on a real agent is a printed warning and a job that resolves from PyPI — the status quo, not a new failure.
AI assistance (Claude Code) was used for this change.