Repository navigation
[ci] Bump pip to 26.2.2, certifi to 2026.10.19, uv to 0.13.4 - #67203
Closed
elliot-barn wants to merge 2 commits into
Closed
elliot-barn wants to merge 2 commits into
elliot-barn wants to merge 2 commits into
Conversation
Eight eMudhra intermediate CA keys were compromised (https://emudhra.we-have-a-problem.com/). pip >= 24.2 trusts both the system store and its vendored certifi, so an OS ca-certificates update is not enough; pip 26.2.2 vendors certifi 2026.10.19 which drops them. uv 0.13.4 updates its bundled webpki roots. - pip 25.0/25.2 -> 26.2.2 in CI scripts, forge images and wheel builds. conda-forge only has pip 26.2.1, so conda envs install pip from PyPI. - pip-tools 7.4.1 -> 7.6.2: 7.4.1 crashes on pip >= 25 and 7.5.3 crashes on pip 26.2.2. This also removes the reason for the old pip 25.2 cap. - certifi -> 2026.10.19 and uv (python package) -> 0.13.4 in all lock files, with hashes. - uv binary -> 0.13.4 in Dockerfiles, WORKSPACE and ci.sh. Not covered: Bazel's rules_python 0.9.0 pip stays at 24.3.1 (pip >= 25 breaks it), and runtime_env virtualenvs still get virtualenv's bundled pip (26.2.1 in the latest virtualenv). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 21, 2026
) ## Why Any py3.10 base image built without a cache hit currently fails: ``` Verifying transaction: / failed RemoveError: This operation will remove conda without replacing it with another version of conda. ``` `docker/base-deps` and `docker/base-slim` install Miniforge 24.11.3, which ships Python 3.12, and then run `conda install python=3.10`. conda-forge `certifi` builds uploaded from 2026-10-19 on require `python >=3.11`. That includes 2026.10.18, 2026.10.19 and a re-upload of 2026.7.22. With no certifi left that supports 3.10, the solver drops `certifi`, `requests` and `conda`, and conda refuses the transaction. Cached images still pass, so this only shows up on a cache miss: - New platforms, e.g. `ray-py3.10-cu13.3.1-cudnn-base` in #66547 (premerge build 75291). - Any change to base-deps inputs, e.g. premerge build 75286. - `smoke test build-docker.sh`, which always builds base-deps from scratch. It has failed on master postmerge since build 20426 (2026-10-21 16:05 UTC); build 20420 earlier that day passed. ## Change Add `certifi<2026` to the `conda install python=...` call in both Dockerfiles, for Python 3.10 only. Other Python versions are unchanged and keep the latest certifi. With the cap, the py3.10 solve settles on certifi 2025.11.12 and conda 23.9.0. That conda version is the newest the solver can pair with Python 3.10 under the cap. Pinning `conda>=24.11` as well made the libmamba solver segfault locally. Python packages that Ray installs with pip/uv afterwards are unaffected; they come from the lock files. ## Duplicate check I searched open PRs for `certifi` and `conda`. #67203 bumps pip's certifi pin, which is unrelated (and closed); nothing else touches this. ## Testing Locally, in `condaforge/miniforge3:24.11.3-0` (the same Miniforge as the Dockerfiles), I ran the exact install and clean commands from each Dockerfile: - base-deps, py3.10: passes (Python 3.10.22, conda 23.9.0, certifi 2025.11.12). - base-slim, py3.10: passes (same versions). - base-deps and base-slim, py3.11: pass. The cap isn't applied (conda 26.9.4, certifi 2026.10.19). - Without the cap, py3.10 fails with the `RemoveError` above. This PR changes the base image inputs, so premerge rebuilds every base image from scratch, which also exercises the change on every Python version. AI assistance (Claude Code) was used to investigate and write this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 22, 2026
elliot-barn
added a commit
that referenced
this pull request
Oct 22, 2026
…CA compromise (#67295) ## Why The private keys of eight eMudhra intermediate CAs were compromised (https://emudhra.we-have-a-problem.com/). The published Ray images still trust them: | In `rayproject/ray:nightly-py312-cpu` | Version | Source | |---|---|---| | `pip` | 24.3.1 (vendors a 2024 certifi) | Miniforge 24.11.3 installer; nothing upgrades it | | `certifi` in site-packages (used by `requests`) | 2026.4.22 | base lock; overwrites conda's certifi | | `uv` binary | 0.11.33 | base-deps / base-slim Dockerfiles | Checked with Python's `ssl` against the disclosure site's test host `dv-g3b-emudhra.we-have-a-problem.com`: certifi 2025.11.12 and 2026.4.22 **trust** it, 2026.10.19 rejects it (it drops `emSign ECC Root CA - G3`). pip ignores site-packages certifi: it trusts its own vendored certifi **and** the system store. Tested against the same host with certifi 2026.10.19 installed: pip 24.3.1 connects even with a patched system store; pip 26.2.2 rejects it when the system store (conda's `ca-certificates`, already 2026.10.19 on fresh builds) is patched. ## What - **pip 26.2.2** in `docker/base-deps` and `docker/base-slim`. All downstream images (ray, ray-ml, ray-llm, ray-torch, base-extra) build on these two. - 3.11–3.14: `pip=26.2.2` is added to the existing `conda install python=...` call. - 3.10: conda-forge pip 26.2.2 builds require python>=3.11, but the PyPI release supports 3.10, so it is installed with `uv pip install --system pip==26.2.2` after the conda step. Tested in `condaforge/miniforge3:24.11.3-0`: pip 24.3.1 is replaced by 26.2.2 (vendored certifi 2026.10.19). The `menuinst` entry-point warning from conda 23.9 is pre-existing (#67256). - **certifi** 2026.10.19 in `requirements_compiled*.txt` and every lock file (113 files, certifi lines only). The image-related configs (`rayimg`, `ray_torch`, `release_gpu_cu130`, `release_ml_torchft_tests`, `release_multimodal_inference_benchmarks_tests`) were regenerated with raydepsets and uv 0.9.26 (the `WORKSPACE` version); the only package change is certifi. - **uv binary** 0.11.33 → 0.13.4 in the two base Dockerfiles. ## Not covered - CI tooling (pip-tools, Bazel's pip, CI Dockerfiles' uv, uv python package) stays in #67203. - runtime_env virtualenvs use virtualenv's bundled pip; virtualenv 21.14.12 (bundles pip 26.2.2) is a separate bump. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 23, 2026
…Mudhra CA compromise (#67298) ## Why Follow-up to #67295 (Linux images) for the eMudhra intermediate CA compromise (https://emudhra.we-have-a-problem.com/). The Windows and macOS wheel builds run pip 25.2, which trusts its own vendored certifi (2025.7.14, still includes `emSign ECC Root CA - G3`) as well as the system store. `python/setup.py` uses that pip to download the vendored thirdparty packages (psutil, colorama, aiohttp, idna) without hash checking, so build-time downloads should not trust the compromised intermediates. The shipped wheels themselves need no change: they vendor no pip/certifi/CA bundle, `requests` and `virtualenv` are not capped, and Ray's gRPC TLS uses the user's `RAY_TLS_CA_CERT`. ## What | File | Change | |---|---| | `python/build-wheel-windows.sh` | `uv run --with pip==25.2` → `pip==26.2.2` | | `ci/ray_ci/windows/build_base.sh` | uv 0.9.22 → 0.13.4 (`build_base.sh` already updates conda `ca-certificates`/`certifi`) | | `python/build-wheel-macos.sh` | conda `pip=26.2.2` on 3.11–3.14; 3.10 keeps conda `pip=25.2` and upgrades to 26.2.2 from PyPI | | `ci/build/test-macos-wheels.sh` | same split on the arm64 conda path (it already runs `pip install -U pip` afterwards) | conda-forge pip 26.2.2 builds require python>=3.11, but the PyPI release supports 3.10. Dry-run solves (`conda create --dry-run --platform osx-arm64|osx-64`) succeed for python 3.10 + pip 25.2 and 3.11–3.14 + pip 26.2.2 (resolving python 3.13.17 / 3.14.9); python 3.10 + pip 26.2.2 fails. ## Not covered - CI test locks for Windows/macOS still carry the `uv==0.8.9` python package and `virtualenv==21.2.4` (test environments only); certifi in those locks is bumped in #67295. - pip-tools / Bazel pip / CI Linux Dockerfiles stay in #67203. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
pushed a commit
that referenced
this pull request
Oct 23, 2026
…CA compromise (#67295) The private keys of eight eMudhra intermediate CAs were compromised (https://emudhra.we-have-a-problem.com/). The published Ray images still trust them: | In `rayproject/ray:nightly-py312-cpu` | Version | Source | |---|---|---| | `pip` | 24.3.1 (vendors a 2024 certifi) | Miniforge 24.11.3 installer; nothing upgrades it | | `certifi` in site-packages (used by `requests`) | 2026.4.22 | base lock; overwrites conda's certifi | | `uv` binary | 0.11.33 | base-deps / base-slim Dockerfiles | Checked with Python's `ssl` against the disclosure site's test host `dv-g3b-emudhra.we-have-a-problem.com`: certifi 2025.11.12 and 2026.4.22 **trust** it, 2026.10.19 rejects it (it drops `emSign ECC Root CA - G3`). pip ignores site-packages certifi: it trusts its own vendored certifi **and** the system store. Tested against the same host with certifi 2026.10.19 installed: pip 24.3.1 connects even with a patched system store; pip 26.2.2 rejects it when the system store (conda's `ca-certificates`, already 2026.10.19 on fresh builds) is patched. - **pip 26.2.2** in `docker/base-deps` and `docker/base-slim`. All downstream images (ray, ray-ml, ray-llm, ray-torch, base-extra) build on these two. - 3.11–3.14: `pip=26.2.2` is added to the existing `conda install python=...` call. - 3.10: conda-forge pip 26.2.2 builds require python>=3.11, but the PyPI release supports 3.10, so it is installed with `uv pip install --system pip==26.2.2` after the conda step. Tested in `condaforge/miniforge3:24.11.3-0`: pip 24.3.1 is replaced by 26.2.2 (vendored certifi 2026.10.19). The `menuinst` entry-point warning from conda 23.9 is pre-existing (#67256). - **certifi** 2026.10.19 in `requirements_compiled*.txt` and every lock file (113 files, certifi lines only). The image-related configs (`rayimg`, `ray_torch`, `release_gpu_cu130`, `release_ml_torchft_tests`, `release_multimodal_inference_benchmarks_tests`) were regenerated with raydepsets and uv 0.9.26 (the `WORKSPACE` version); the only package change is certifi. - **uv binary** 0.11.33 → 0.13.4 in the two base Dockerfiles. - CI tooling (pip-tools, Bazel's pip, CI Dockerfiles' uv, uv python package) stays in #67203. - runtime_env virtualenvs use virtualenv's bundled pip; virtualenv 21.14.12 (bundles pip 26.2.2) is a separate bump. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 79dcc96) Signed-off-by: Sai Miduthuri <[email protected]>
sai-miduthuri
pushed a commit
that referenced
this pull request
Oct 23, 2026
) ## Why Any py3.10 base image built without a cache hit currently fails: ``` Verifying transaction: / failed RemoveError: This operation will remove conda without replacing it with another version of conda. ``` `docker/base-deps` and `docker/base-slim` install Miniforge 24.11.3, which ships Python 3.12, and then run `conda install python=3.10`. conda-forge `certifi` builds uploaded from 2026-10-19 on require `python >=3.11`. That includes 2026.10.18, 2026.10.19 and a re-upload of 2026.7.22. With no certifi left that supports 3.10, the solver drops `certifi`, `requests` and `conda`, and conda refuses the transaction. Cached images still pass, so this only shows up on a cache miss: - New platforms, e.g. `ray-py3.10-cu13.3.1-cudnn-base` in #66547 (premerge build 75291). - Any change to base-deps inputs, e.g. premerge build 75286. - `smoke test build-docker.sh`, which always builds base-deps from scratch. It has failed on master postmerge since build 20426 (2026-10-21 16:05 UTC); build 20420 earlier that day passed. ## Change Add `certifi<2026` to the `conda install python=...` call in both Dockerfiles, for Python 3.10 only. Other Python versions are unchanged and keep the latest certifi. With the cap, the py3.10 solve settles on certifi 2025.11.12 and conda 23.9.0. That conda version is the newest the solver can pair with Python 3.10 under the cap. Pinning `conda>=24.11` as well made the libmamba solver segfault locally. Python packages that Ray installs with pip/uv afterwards are unaffected; they come from the lock files. ## Duplicate check I searched open PRs for `certifi` and `conda`. #67203 bumps pip's certifi pin, which is unrelated (and closed); nothing else touches this. ## Testing Locally, in `condaforge/miniforge3:24.11.3-0` (the same Miniforge as the Dockerfiles), I ran the exact install and clean commands from each Dockerfile: - base-deps, py3.10: passes (Python 3.10.22, conda 23.9.0, certifi 2025.11.12). - base-slim, py3.10: passes (same versions). - base-deps and base-slim, py3.11: pass. The cap isn't applied (conda 26.9.4, certifi 2026.10.19). - Without the cap, py3.10 fails with the `RemoveError` above. This PR changes the base image inputs, so premerge rebuilds every base image from scratch, which also exercises the change on every Python version. AI assistance (Claude Code) was used to investigate and write this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit dc5d25c) Signed-off-by: Sai Miduthuri <[email protected]>
sai-miduthuri
pushed a commit
that referenced
this pull request
Oct 23, 2026
…CA compromise (#67295) The private keys of eight eMudhra intermediate CAs were compromised (https://emudhra.we-have-a-problem.com/). The published Ray images still trust them: | In `rayproject/ray:nightly-py312-cpu` | Version | Source | |---|---|---| | `pip` | 24.3.1 (vendors a 2024 certifi) | Miniforge 24.11.3 installer; nothing upgrades it | | `certifi` in site-packages (used by `requests`) | 2026.4.22 | base lock; overwrites conda's certifi | | `uv` binary | 0.11.33 | base-deps / base-slim Dockerfiles | Checked with Python's `ssl` against the disclosure site's test host `dv-g3b-emudhra.we-have-a-problem.com`: certifi 2025.11.12 and 2026.4.22 **trust** it, 2026.10.19 rejects it (it drops `emSign ECC Root CA - G3`). pip ignores site-packages certifi: it trusts its own vendored certifi **and** the system store. Tested against the same host with certifi 2026.10.19 installed: pip 24.3.1 connects even with a patched system store; pip 26.2.2 rejects it when the system store (conda's `ca-certificates`, already 2026.10.19 on fresh builds) is patched. - **pip 26.2.2** in `docker/base-deps` and `docker/base-slim`. All downstream images (ray, ray-ml, ray-llm, ray-torch, base-extra) build on these two. - 3.11–3.14: `pip=26.2.2` is added to the existing `conda install python=...` call. - 3.10: conda-forge pip 26.2.2 builds require python>=3.11, but the PyPI release supports 3.10, so it is installed with `uv pip install --system pip==26.2.2` after the conda step. Tested in `condaforge/miniforge3:24.11.3-0`: pip 24.3.1 is replaced by 26.2.2 (vendored certifi 2026.10.19). The `menuinst` entry-point warning from conda 23.9 is pre-existing (#67256). - **certifi** 2026.10.19 in `requirements_compiled*.txt` and every lock file (113 files, certifi lines only). The image-related configs (`rayimg`, `ray_torch`, `release_gpu_cu130`, `release_ml_torchft_tests`, `release_multimodal_inference_benchmarks_tests`) were regenerated with raydepsets and uv 0.9.26 (the `WORKSPACE` version); the only package change is certifi. - **uv binary** 0.11.33 → 0.13.4 in the two base Dockerfiles. - CI tooling (pip-tools, Bazel's pip, CI Dockerfiles' uv, uv python package) stays in #67203. - runtime_env virtualenvs use virtualenv's bundled pip; virtualenv 21.14.12 (bundles pip 26.2.2) is a separate bump. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 79dcc96) Signed-off-by: Sai Miduthuri <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The private keys of eight eMudhra intermediate CAs were compromised (https://emudhra.we-have-a-problem.com/). pip ≥ 24.2 trusts both the system store and its vendored certifi, so updating OS
ca-certificatesis not enough. The patched versions are pip 26.2.2 (vendors certifi 2026.10.19; 26.2.1 vendors 2026.6.17), certifi 2026.10.19 and uv 0.13.4.What
install-dependencies.sh, forge + release-automation forge images, Windows/macOS wheel builds, macOS wheel tests, dashboard backwards-compat testci/ci.sh,min.build.Dockerfiletest-requirements.txt+ 15 lock files (version + hashes)WORKSPACE(raydepsets),ci.sh, Windows base, dependabot workflowNotes:
'PackageFinder' object has no attribute 'allow_all_prereleases'), and 7.5.3 crashes on 26.2.2 (make_requirement_preparer() missing ... 'allow_editables'). 7.6.2 works. That's what the old "pip 25.3 breaks pip-compile" comment ininstall-dependencies.shwas about, so the comment is removed.pip install pip==26.2.2from PyPI.raydepsets --checkor therequirements_compiled.txtdiff disagrees, I'll regenerate the locks.Not covered (follow-ups)
WORKSPACEpypi__pip) stays at 24.3.1: rules_python 0.9.0 reads a pip internal removed in pip 25.0. Moving it needs a rules_python migration.--no-download). The latest virtualenv (21.14.11) bundles 26.2.1, so this needs a virtualenv release and then a bump.🤖 Generated with Claude Code