Skip to content

[deps] adding ray dependency skill - #63712

Merged
elliot-barn merged 2 commits into
masterfrom
elliot-barn-dependencies-skill
Jun 2, 2026
Merged

elliot-barn merged 2 commits into
masterfrom
elliot-barn-dependencies-skill

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Skill to upgrade ray dependencies

Signed-off-by: elliot-barn <[email protected]>

@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 introduces a new Claude skill markdown file (SKILL.md) to document Ray's Python dependency management system, including its architecture, workflows, and rules. The reviewer provided three valuable corrections: clarifying exceptions to the setup.py synchronization rule (such as cupy-cuda12x and watchfiles), fixing a template variable typo (${PYTHON_VERSION_STR} to ${PYTHON_VERSION}), and correcting a reference about which compiled requirements file is shared across multiple Python versions.

1. **Source-file pins only.** Resolve conflicts by editing `python/requirements.txt`, `python/requirements/**/*.txt`, or `python/requirements/**/*.in`. Do **not** hand-edit `python/requirements_compiled*.txt` — it is a build artifact and gets overwritten on the next compile.
2. **No `ci/ci.sh` post-process hooks** for individual package fixes. Only touch `ci/ci.sh` for genuinely structural changes (new functions, new input files passed to the compiler). Never as an after-the-fact lock mutator.
3. **Use the dual-exact-pin-with-markers pattern** when a package needs different versions on different Python versions and the lock is consumed as a constraint across multiple Python targets. See *Marker preservation* below.
4. **`python/requirements.txt` ↔ `python/setup.py` must stay in sync.** The packages under the `## setup.py install_requires` block in `python/requirements.txt` are mirrored into `setup_spec.install_requires` in `python/setup.py` (around line 405). When you add, remove, or change a version bound for any package in that block, edit **both** files in the same change. The list in `setup.py` is what end users actually install via `pip install ray`; `requirements.txt` is the dev-side source of truth. Drift between them ships broken installs.

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.

medium

The packages cupy-cuda12x and watchfiles are listed under the ## setup.py install_requires block in python/requirements.txt, but they are actually mirrored in setup_spec.extras in python/setup.py rather than setup_spec.install_requires. Clarifying this exception in the skill description will prevent the model from incorrectly attempting to sync these packages into setup_spec.install_requires.

Suggested change
4. **`python/requirements.txt` ↔ `python/setup.py` must stay in sync.** The packages under the `## setup.py install_requires` block in `python/requirements.txt` are mirrored into `setup_spec.install_requires` in `python/setup.py` (around line 405). When you add, remove, or change a version bound for any package in that block, edit **both** files in the same change. The list in `setup.py` is what end users actually install via `pip install ray`; `requirements.txt` is the dev-side source of truth. Drift between them ships broken installs.
4. **python/requirements.txt ↔ python/setup.py must stay in sync.** The core packages under the setup.py install_requires block in python/requirements.txt are mirrored into setup_spec.install_requires in python/setup.py (around line 405). Note that some packages in this block (such as cupy-cuda12x and watchfiles) are exceptions and are mirrored in setup_spec.extras instead of setup_spec.install_requires. When you add, remove, or change a version bound for any package in that block, edit **both** files in the same change. The list in setup.py is what end users actually install via pip install ray; requirements.txt is the dev-side source of truth. Drift between them ships broken installs.

@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label May 29, 2026
@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Jun 2, 2026
@elliot-barn
elliot-barn requested a review from sai-miduthuri June 2, 2026 18:10
@elliot-barn
elliot-barn merged commit a598446 into master Jun 2, 2026
4 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn-dependencies-skill branch June 2, 2026 20:28
rueian pushed a commit to rueian/ray that referenced this pull request Jun 4, 2026
Skill to upgrade ray dependencies

Signed-off-by: elliot-barn <[email protected]>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
Skill to upgrade ray dependencies

Signed-off-by: elliot-barn <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
Skill to upgrade ray dependencies

Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: 400Ping <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants