Repository navigation
[data] Fix text_embedding release test via raydepsets python depset - #64885
elliot-barn wants to merge 6 commits into
Conversation
The `text_embedding_{fixed_size,autoscaling,fixed_size_chaos}` release tests
were jailed with `ModuleNotFoundError: No module named 'tf_keras'` /
`ValueError: ... Keras 3 ... is not yet supported in Transformers`.
Root cause: the imperative `byod_install_text_embedding.sh` pip-installed
transformers/sentence-transformers/torch onto the raw cu123 base image, which
ships TensorFlow + Keras 3 but no tf-keras. At import time `sentence_transformers`
imports `transformers`, which refuses to load its TF integration against Keras 3
without the backwards-compatible tf-keras shim, crashing before any Ray Data runs.
Replace the byod script with a raydepsets-managed python depset:
- Add release/nightly_tests/dataset/text_embedding/requirements.in with the
test's deps plus tf-keras==2.20.0 (matching requirements_compiled).
- Add a text_embedding_py310 depset that expands the GPU base testdeps, and
generate release/ray_release/byod/text_embedding_py3.10.lock.
- Point the release test at `python_depset: text_embedding_py3.10.lock` and
delete byod_install_text_embedding.sh.
The resolved lock stays on numpy 2.2.6 (no downgrade); tf-keras lets transformers
load cleanly against the base image's Keras 3.
AI assistance (Claude Code) was used for this change.
Testing:
- `bazelisk run //ci/raydepsets:raydepsets -- build \
ci/raydepsets/configs/release_multimodal_inference_benchmarks_tests.depsets.yaml \
--name text_embedding_py310 --check` -> "Lock files are up to date."
- Verified resolved versions: transformers==4.56.2, sentence-transformers==5.1.0,
torch==2.8.0+cu128, tf-keras==2.20.0, tensorflow==2.20.0, numpy==2.2.6.
Not a duplicate: no open PR/issue touches the text_embedding byod deps
(checked `gh pr list` for text_embedding and tf-keras).
Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request transitions the text embedding benchmark test from using a post-build installation script (byod_install_text_embedding.sh) to using a managed Python dependency set (text_embedding_py3.10.lock). It defines the dependency requirements in requirements.in, configures the text_embedding_py depset in the multimodal inference benchmarks configuration, and updates the release data tests configuration to reference the new depset. There are no review comments, and I have no feedback to provide.
Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
## Summary Regenerates `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has been failing `raydepsets --check` since 2026-08-05. #65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was published on 2026-07-23 — before that PR landed. A fresh `uv pip compile` therefore resolves 3.14.3, and `build: raydepsets: compile all dependencies` reports the committed lock as out of date: ``` --- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock +++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock @@ -13,127 +13,126 @@ -aiohttp==3.13.5 +aiohttp==3.14.3 ``` `aiohttp` is the only package that moves. The rest of the diff is its hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@` hunk the checker produced. ## Why this went unnoticed for five days The check is gated on the `python_dependencies` tag (`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by touching `python/deplocks/`, `ci/raydepsets/configs/` or `python/requirements*`. **1 of the last 40 premerge builds ran the step at all.** So almost nothing trips it, and the PRs that do inherit an unrelated red X, because the step runs `--all-configs` and checks every lock in the repo rather than the one the PR edited. Postmerge ignores tags, so it is also failing there — including on `releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0 release path. ## Testing Regenerated with the depset's own config rather than by hand, so the output is whatever the checker computes: ```bash bazelisk run //ci/raydepsets:raydepsets -- build \ ci/raydepsets/configs/ray_torch.depsets.yaml \ --name ray_torch_cu128_base_depset_314 ``` Then the full gate, exactly as CI runs it: ```bash bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check ``` - **Passes** (exit 0) with this change applied. - Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is modified — `git status` is otherwise clean after the full check, so no other lock has drifted and the fix is complete rather than the first of several. - Verified against master beforehand: the same command fails on `origin/master` with the diff quoted above. One note for anyone re-running this locally: `--all-configs` intermittently dies on `503 Service Unavailable` from `download.pytorch.org` while resolving the GPU configs (it hit `.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and unrelated — a retry passed. Worth distinguishing from a genuine lock mismatch, since both surface as exit 1. ## Not a duplicate No open PR touches this file. Checked the plausible candidates' file lists directly rather than by title: #65305 (depset config JSON schema validation), #65318 (wanda image rename), #65206 (dependabot bumping aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than a real deplock), #64885 (text_embedding release-test depset) — none of them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/` has exactly one commit in its history, #65114, which is the one that introduced the drift. No commit has touched any deplock since 2026-08-05. cc the author of #65114 for awareness, since this is their file. ## AI assistance Prepared with AI assistance (Claude Code). I have reviewed the change and can defend it: it is a mechanical regeneration, the diff is one package plus its hashes, and the verification above is the same command CI runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronny Roland <[email protected]>
…ject#65343) ## Summary Regenerates `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has been failing `raydepsets --check` since 2026-08-05. ray-project#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was published on 2026-07-23 — before that PR landed. A fresh `uv pip compile` therefore resolves 3.14.3, and `build: raydepsets: compile all dependencies` reports the committed lock as out of date: ``` --- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock +++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock @@ -13,127 +13,126 @@ -aiohttp==3.13.5 +aiohttp==3.14.3 ``` `aiohttp` is the only package that moves. The rest of the diff is its hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@` hunk the checker produced. ## Why this went unnoticed for five days The check is gated on the `python_dependencies` tag (`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by touching `python/deplocks/`, `ci/raydepsets/configs/` or `python/requirements*`. **1 of the last 40 premerge builds ran the step at all.** So almost nothing trips it, and the PRs that do inherit an unrelated red X, because the step runs `--all-configs` and checks every lock in the repo rather than the one the PR edited. Postmerge ignores tags, so it is also failing there — including on `releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0 release path. ## Testing Regenerated with the depset's own config rather than by hand, so the output is whatever the checker computes: ```bash bazelisk run //ci/raydepsets:raydepsets -- build \ ci/raydepsets/configs/ray_torch.depsets.yaml \ --name ray_torch_cu128_base_depset_314 ``` Then the full gate, exactly as CI runs it: ```bash bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check ``` - **Passes** (exit 0) with this change applied. - Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is modified — `git status` is otherwise clean after the full check, so no other lock has drifted and the fix is complete rather than the first of several. - Verified against master beforehand: the same command fails on `origin/master` with the diff quoted above. One note for anyone re-running this locally: `--all-configs` intermittently dies on `503 Service Unavailable` from `download.pytorch.org` while resolving the GPU configs (it hit `.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and unrelated — a retry passed. Worth distinguishing from a genuine lock mismatch, since both surface as exit 1. ## Not a duplicate No open PR touches this file. Checked the plausible candidates' file lists directly rather than by title: ray-project#65305 (depset config JSON schema validation), ray-project#65318 (wanda image rename), ray-project#65206 (dependabot bumping aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than a real deplock), ray-project#64885 (text_embedding release-test depset) — none of them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/` has exactly one commit in its history, ray-project#65114, which is the one that introduced the drift. No commit has touched any deplock since 2026-08-05. cc the author of ray-project#65114 for awareness, since this is their file. ## AI assistance Prepared with AI assistance (Claude Code). I have reviewed the change and can defend it: it is a mechanical regeneration, the diff is one package plus its hashes, and the verification above is the same command CI runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronny Roland <[email protected]>
…http 3.14.3) (#65343) (#65378) ## Summary Regenerates `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has been failing `raydepsets --check` since 2026-08-05. #65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was published on 2026-07-23 — before that PR landed. A fresh `uv pip compile` therefore resolves 3.14.3, and `build: raydepsets: compile all dependencies` reports the committed lock as out of date: ``` --- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock +++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock @@ -13,127 +13,126 @@ -aiohttp==3.13.5 +aiohttp==3.14.3 ``` `aiohttp` is the only package that moves. The rest of the diff is its hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@` hunk the checker produced. ## Why this went unnoticed for five days The check is gated on the `python_dependencies` tag (`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by touching `python/deplocks/`, `ci/raydepsets/configs/` or `python/requirements*`. **1 of the last 40 premerge builds ran the step at all.** So almost nothing trips it, and the PRs that do inherit an unrelated red X, because the step runs `--all-configs` and checks every lock in the repo rather than the one the PR edited. Postmerge ignores tags, so it is also failing there — including on `releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0 release path. ## Testing Regenerated with the depset's own config rather than by hand, so the output is whatever the checker computes: ```bash bazelisk run //ci/raydepsets:raydepsets -- build \ ci/raydepsets/configs/ray_torch.depsets.yaml \ --name ray_torch_cu128_base_depset_314 ``` Then the full gate, exactly as CI runs it: ```bash bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check ``` - **Passes** (exit 0) with this change applied. - Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is modified — `git status` is otherwise clean after the full check, so no other lock has drifted and the fix is complete rather than the first of several. - Verified against master beforehand: the same command fails on `origin/master` with the diff quoted above. One note for anyone re-running this locally: `--all-configs` intermittently dies on `503 Service Unavailable` from `download.pytorch.org` while resolving the GPU configs (it hit `.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and unrelated — a retry passed. Worth distinguishing from a genuine lock mismatch, since both surface as exit 1. ## Not a duplicate No open PR touches this file. Checked the plausible candidates' file lists directly rather than by title: #65305 (depset config JSON schema validation), #65318 (wanda image rename), #65206 (dependabot bumping aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than a real deplock), #64885 (text_embedding release-test depset) — none of them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/` has exactly one commit in its history, #65114, which is the one that introduced the drift. No commit has touched any deplock since 2026-08-05. cc the author of #65114 for awareness, since this is their file. ## AI assistance Prepared with AI assistance (Claude Code). I have reviewed the change and can defend it: it is a mechanical regeneration, the diff is one package plus its hashes, and the verification above is the same command CI runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > Thank you for contributing to Ray! 🚀 > Please review the [Ray Contribution Guide](https://docs.ray.io/en/master/ray-contribute/getting-involved.html) before opening a pull request. >⚠️ Remove these instructions before submitting your PR. > 💡 Tip: Mark as draft if you want early feedback, or ready for review when it's complete. ## Description > Briefly describe what this PR accomplishes and why it's needed. ## Related issues > Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: Ronny Roland <[email protected]> Co-authored-by: Ronny <[email protected]>
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
…ject#65343) ## Summary Regenerates `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has been failing `raydepsets --check` since 2026-08-05. ray-project#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was published on 2026-07-23 — before that PR landed. A fresh `uv pip compile` therefore resolves 3.14.3, and `build: raydepsets: compile all dependencies` reports the committed lock as out of date: ``` --- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock +++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock @@ -13,127 +13,126 @@ -aiohttp==3.13.5 +aiohttp==3.14.3 ``` `aiohttp` is the only package that moves. The rest of the diff is its hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@` hunk the checker produced. ## Why this went unnoticed for five days The check is gated on the `python_dependencies` tag (`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by touching `python/deplocks/`, `ci/raydepsets/configs/` or `python/requirements*`. **1 of the last 40 premerge builds ran the step at all.** So almost nothing trips it, and the PRs that do inherit an unrelated red X, because the step runs `--all-configs` and checks every lock in the repo rather than the one the PR edited. Postmerge ignores tags, so it is also failing there — including on `releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0 release path. ## Testing Regenerated with the depset's own config rather than by hand, so the output is whatever the checker computes: ```bash bazelisk run //ci/raydepsets:raydepsets -- build \ ci/raydepsets/configs/ray_torch.depsets.yaml \ --name ray_torch_cu128_base_depset_314 ``` Then the full gate, exactly as CI runs it: ```bash bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check ``` - **Passes** (exit 0) with this change applied. - Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is modified — `git status` is otherwise clean after the full check, so no other lock has drifted and the fix is complete rather than the first of several. - Verified against master beforehand: the same command fails on `origin/master` with the diff quoted above. One note for anyone re-running this locally: `--all-configs` intermittently dies on `503 Service Unavailable` from `download.pytorch.org` while resolving the GPU configs (it hit `.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and unrelated — a retry passed. Worth distinguishing from a genuine lock mismatch, since both surface as exit 1. ## Not a duplicate No open PR touches this file. Checked the plausible candidates' file lists directly rather than by title: ray-project#65305 (depset config JSON schema validation), ray-project#65318 (wanda image rename), ray-project#65206 (dependabot bumping aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than a real deplock), ray-project#64885 (text_embedding release-test depset) — none of them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/` has exactly one commit in its history, ray-project#65114, which is the one that introduced the drift. No commit has touched any deplock since 2026-08-05. cc the author of ray-project#65114 for awareness, since this is their file. ## AI assistance Prepared with AI assistance (Claude Code). I have reviewed the change and can defend it: it is a mechanical regeneration, the diff is one package plus its hashes, and the verification above is the same command CI runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronny Roland <[email protected]> Signed-off-by: 400Ping <[email protected]>
|
This pull request has been automatically closed because there has been no more activity in the 14 days Please feel free to reopen or open a new pull request if you'd still like this to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for your contribution! |
…ject#65343) ## Summary Regenerates `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`, which has been failing `raydepsets --check` since 2026-08-05. ray-project#65114 added the file pinning `aiohttp==3.13.5`, but aiohttp 3.14.3 was published on 2026-07-23 — before that PR landed. A fresh `uv pip compile` therefore resolves 3.14.3, and `build: raydepsets: compile all dependencies` reports the committed lock as out of date: ``` --- python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock +++ /tmp/.../python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock @@ -13,127 +13,126 @@ -aiohttp==3.13.5 +aiohttp==3.14.3 ``` `aiohttp` is the only package that moves. The rest of the diff is its hash block, one line shorter — which matches the `@@ -13,127 +13,126 @@` hunk the checker produced. ## Why this went unnoticed for five days The check is gated on the `python_dependencies` tag (`.buildkite/dependencies.rayci.yml:22-27`), which a PR only earns by touching `python/deplocks/`, `ci/raydepsets/configs/` or `python/requirements*`. **1 of the last 40 premerge builds ran the step at all.** So almost nothing trips it, and the PRs that do inherit an unrelated red X, because the step runs `--all-configs` and checks every lock in the repo rather than the one the PR edited. Postmerge ignores tags, so it is also failing there — including on `releases/2.58.0` (postmerge build 19108), which puts it in the 2.58.0 release path. ## Testing Regenerated with the depset's own config rather than by hand, so the output is whatever the checker computes: ```bash bazelisk run //ci/raydepsets:raydepsets -- build \ ci/raydepsets/configs/ray_torch.depsets.yaml \ --name ray_torch_cu128_base_depset_314 ``` Then the full gate, exactly as CI runs it: ```bash bazelisk run //ci/raydepsets:raydepsets -- build --all-configs --check ``` - **Passes** (exit 0) with this change applied. - Only `python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock` is modified — `git status` is otherwise clean after the full check, so no other lock has drifted and the fix is complete rather than the first of several. - Verified against master beforehand: the same command fails on `origin/master` with the diff quoted above. One note for anyone re-running this locally: `--all-configs` intermittently dies on `503 Service Unavailable` from `download.pytorch.org` while resolving the GPU configs (it hit `.../whl/cu128/jupyter-lsp/` on my first attempt). That's transient and unrelated — a retry passed. Worth distinguishing from a genuine lock mismatch, since both surface as exit 1. ## Not a duplicate No open PR touches this file. Checked the plausible candidates' file lists directly rather than by title: ray-project#65305 (depset config JSON schema validation), ray-project#65318 (wanda image rename), ray-project#65206 (dependabot bumping aiohttp in `ci/raydepsets/tests/test_data/`, a test fixture rather than a real deplock), ray-project#64885 (text_embedding release-test depset) — none of them modify `python/deplocks/ray-torch/`. `python/deplocks/ray-torch/` has exactly one commit in its history, ray-project#65114, which is the one that introduced the drift. No commit has touched any deplock since 2026-08-05. cc the author of ray-project#65114 for awareness, since this is their file. ## AI assistance Prepared with AI assistance (Claude Code). I have reviewed the change and can defend it: it is a mechanical regeneration, the diff is one package plus its hashes, and the verification above is the same command CI runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronny Roland <[email protected]>
The
text_embedding_{fixed_size,autoscaling,fixed_size_chaos}release tests were jailed withModuleNotFoundError: No module named 'tf_keras'/ValueError: ... Keras 3 ... is not yet supported in Transformers.Root cause: the imperative
byod_install_text_embedding.shpip-installed transformers/sentence-transformers/torch onto the raw cu123 base image, which ships TensorFlow + Keras 3 but no tf-keras. At import timesentence_transformersimportstransformers, which refuses to load its TF integration against Keras 3 without the backwards-compatible tf-keras shim, crashing before any Ray Data runs.Replace the byod script with a raydepsets-managed python depset:
python_depset: text_embedding_py3.10.lockand delete byod_install_text_embedding.sh.The resolved lock stays on numpy 2.2.6 (no downgrade); tf-keras lets transformers load cleanly against the base image's Keras 3.
AI assistance (Claude Code) was used for this change.
Testing:
bazelisk run //ci/raydepsets:raydepsets -- build \ ci/raydepsets/configs/release_multimodal_inference_benchmarks_tests.depsets.yaml \ --name text_embedding_py310 --check-> "Lock files are up to date."Not a duplicate: no open PR/issue touches the text_embedding byod deps (checked
gh pr listfor text_embedding and tf-keras).Description
Related issues
Additional information