Repository navigation
[ci][cherry-pick] Install data CI depset after conda ffmpeg to fix removed packages (#65334) - #66619
Merged
Conversation
#65334) ## Why are these changes needed? All `data17build-py3.10`-based CI jobs (data arrow v17 shards, docs example, integration, dashboard) are currently red on master and premerge with: ``` import pytest → from exceptiongroup import BaseExceptionGroup ModuleNotFoundError: No module named 'exceptiongroup' ``` e.g. master postmerge [build 19099](https://buildkite.com/ray-project/postmerge/builds/19099) and premerge [build 71680](https://buildkite.com/ray-project/premerge/builds/71680). Root cause: in `ci/docker/data.build.Dockerfile`, the depset lock is installed **before** `conda install -y -c conda-forge "ffmpeg=7.*"`. With the current `oss-ci-base_ml` base image (which ships conda 26.7.0), the ffmpeg solve upgrades core native libs (libmamba 2.0.8 → 2.9.0, libarchive, libcurl, fmt), and since no conda 26.x py3.10 build is compatible with that upgraded stack, the solver **downgrades conda 26.7.0 → 23.9.0 and removes conda 26's entire python dependency tree** — including `exceptiongroup`, `jinja2`, `markupsafe`, `httpx` and `typing-inspection` (visible under "The following packages will be REMOVED" in the wanda `data17build-py3.10` job log). `exceptiongroup` is a hard runtime dep of pytest on Python < 3.11, so every pytest target import-fails. Fix: move the `uv pip install -r python_depset.lock` step (and the pyarrow-nightly override) **after** the conda ffmpeg step, so uv restores everything the lock declares. All five data depset locks contain the removed packages (`exceptiongroup` with a `python_full_version < '3.11'` marker, so py3.12 images are unaffected by design). Not a duplicate: searched open PRs for `exceptiongroup`, `ffmpeg conda`, and data image/depset changes — no existing PR addresses this. ## Related issue number N/A — master CI breakage, no issue filed. ## Checks - Verification: this is a CI image build-order change; validated by triaging the wanda `data17build-py3.10` build logs (conda removal transaction) and confirming the removed packages are present in all `python/deplocks/ci/data-*` locks. The premerge data jobs on this PR rebuild the image and are the end-to-end test. - `pre-commit` hooks ran and passed on commit. - AI assistance (Claude Code) was used for triage and this change; reviewed line-by-line by the submitter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> (cherry picked from commit 4283d39) Signed-off-by: elliot-barn <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request modifies the Dockerfile ci/docker/data.build.Dockerfile to defer the installation of Python dependencies via uv pip install until after the conda install of ffmpeg. This reordering, along with the addition of the --reinstall flag, ensures that any packages removed or downgraded during the conda solve are correctly restored to match the lockfile. There are no review comments to address.
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 are these changes needed?
Cherry-pick of #65334 onto
releases/2.57.1.Data CI jobs built on the
data17build-py3.10image (arrow v17 shards, doc, integration and dashboard tests) fail on this branch with:ci/docker/data.build.Dockerfileinstalls the depset lock beforeconda install ffmpeg=7.*, and the ffmpeg solve removes conda's python dependencies (exceptiongroup,jinja2,markupsafe,httpx). #65334 installs the lock after the ffmpeg step, with--reinstall, so the env matches the lock again.The fix is already on master,
releases/2.58.0,releases/2.58.1andreleases/2.59.0.releases/2.57.1is the only active release branch still missing it. The rayturboreleases-2.57.1merge build hits it: https://buildkite.com/anyscale/rayturbo/builds/14415The cherry-pick applied cleanly with no conflicts.
Related issue number
N/A. Cherry-pick of #65334.
Checks
🤖 Generated with Claude Code