Skip to content

Conversation

@aslonnie
Copy link
Collaborator

it is uv runtime env, which installs the requests library for real. it was using requests 2.3.0, which is too old and does not run on python 3.10+

it is uv runtime env, which installs the requests library for real.
it was using requests 2.3.0, which is too old and does not run
on python 3.10+

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
@aslonnie aslonnie requested a review from a team as a code owner November 28, 2025 03:40
@aslonnie aslonnie requested review from dayshah and edoakes November 28, 2025 03:40
Copy link
Contributor

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

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 correctly upgrades the requests library version in a test environment to fix compatibility issues with Python 3.10+. The change is straightforward and well-justified. I have one minor suggestion regarding maintainability, but overall the change is good.

node_id = ray_start_with_dashboard["node_id"]

@ray.remote(runtime_env={"uv": {"packages": ["requests==2.3.0"]}})
@ray.remote(runtime_env={"uv": {"packages": ["requests==2.32.5"]}})
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve maintainability and avoid using a magic string for the version number, consider defining '2.32.5' as a constant at the top of the file. For example: _REQUESTS_VERSION_FOR_TEST = '2.32.5'. You could then use an f-string here: f'requests=={_REQUESTS_VERSION_FOR_TEST}'. This would make the version number easier to find and update if it's ever used in more than one place in this test file.

@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Nov 28, 2025
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Nov 28, 2025
@aslonnie aslonnie closed this Dec 1, 2025
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