Skip to content

[ci][cherry-pick] Install data CI depset after conda ffmpeg to fix removed packages (#65334) - #66619

Merged
elliot-barn merged 1 commit into
releases/2.57.1from
elliot-barn/cp-65334-releases-2.57.1
Oct 1, 2026
Merged

elliot-barn merged 1 commit into
releases/2.57.1from
elliot-barn/cp-65334-releases-2.57.1

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Why are these changes needed?

Cherry-pick of #65334 onto releases/2.57.1.

Data CI jobs built on the data17build-py3.10 image (arrow v17 shards, doc, integration and dashboard tests) fail on this branch with:

import pytest -> from exceptiongroup import BaseExceptionGroup
ModuleNotFoundError: No module named 'exceptiongroup'

ci/docker/data.build.Dockerfile installs the depset lock before conda 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.1 and releases/2.59.0. releases/2.57.1 is the only active release branch still missing it. The rayturbo releases-2.57.1 merge build hits it: https://buildkite.com/anyscale/rayturbo/builds/14415

The cherry-pick applied cleanly with no conflicts.

Related issue number

N/A. Cherry-pick of #65334.

Checks

  • I've signed off every commit (DCO).
  • The premerge data jobs on this PR rebuild the image and are the end-to-end test.

🤖 Generated with Claude Code

#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]>
@elliot-barn
elliot-barn requested a review from a team as a code owner October 1, 2026 01:03

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@elliot-barn
elliot-barn merged commit 303c624 into releases/2.57.1 Oct 1, 2026
3 of 5 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/cp-65334-releases-2.57.1 branch October 1, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant