Skip to content

Conversation

@aslonnie
Copy link
Collaborator

@aslonnie aslonnie commented Nov 21, 2025

also uses curl -fsSL as much as possible

otherwise the release blocker checker is not working.

also removes unnecessary sudos.

@aslonnie aslonnie requested a review from a team as a code owner November 21, 2025 03:52
@aslonnie aslonnie requested a review from elliot-barn November 21, 2025 03:52
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 introduces uv for Python environment management in the forge Dockerfiles and standardizes curl command options. The changes are generally good, especially the move to curl -fsSL for more robust scripting.

I've left a few comments regarding minor inconsistencies and potential improvements:

  • There's a mismatch between comments and code regarding the Python version being installed.
  • An unnecessary export command can be removed for better clarity.
  • There is an inconsistent pip version pinned in one of the Dockerfiles.

Addressing these points will improve the maintainability and consistency of the Docker setup.

curl -fsSL https://astral.sh/uv/install.sh | sudo env UV_UNMANAGED_INSTALL="/usr/local/bin" sh

mkdir -p /usr/local/python
# Install Python 3.9 using uv
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The comment states that Python 3.9 is being installed, but the code below sets the version to 3.10. Please update the comment to reflect the correct Python version being installed.

# Install Python 3.10 using uv

UV_PYTHON_VERSION=3.10
uv python install --install-dir /usr/local/python "$UV_PYTHON_VERSION"

export UV_PYTHON_INSTALL_DIR=/usr/local/python
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The export UV_PYTHON_INSTALL_DIR command appears to be unnecessary. This environment variable is not a standard uv variable and does not seem to be used by any subsequent commands in this RUN block. Removing it would improve clarity.

curl -fsSL https://astral.sh/uv/install.sh | sudo env UV_UNMANAGED_INSTALL="/usr/local/bin" sh

mkdir -p /usr/local/python
# Install Python 3.9 using uv
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The comment states that Python 3.9 is being installed, but the code below sets the version to 3.10. Please update the comment to reflect the correct Python version.

# Install Python 3.10 using uv

UV_PYTHON_VERSION=3.10
uv python install --install-dir /usr/local/python "$UV_PYTHON_VERSION"

export UV_PYTHON_INSTALL_DIR=/usr/local/python
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The export UV_PYTHON_INSTALL_DIR command appears to be unnecessary. This environment variable is not a standard uv variable and does not seem to be used by any subsequent commands in this RUN block. Removing it would improve clarity.

curl -fsSL https://astral.sh/uv/install.sh | sudo env UV_UNMANAGED_INSTALL="/usr/local/bin" sh

mkdir -p /usr/local/python
# Install Python 3.9 using uv
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The comment states that Python 3.9 is being installed, but the code below sets the version to 3.10. Please update the comment to reflect the correct Python version.

# Install Python 3.10 using uv

@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Nov 21, 2025
@aslonnie aslonnie force-pushed the lonnie-251120-autoforge branch 2 times, most recently from d38ddf7 to a23be58 Compare November 21, 2025 04:35
also uses `curl -fsSL` as much as possible, and removes
unnecessary sudos

Signed-off-by: Lonnie Liu <[email protected]>
@aslonnie aslonnie force-pushed the lonnie-251120-autoforge branch from a23be58 to 773396f Compare November 21, 2025 04:51
@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core devprod labels Nov 21, 2025

# As a convention, we pin all python packages to a specific version. This
# is to to make sure we can control version upgrades through code changes.
uv pip install --system pip==25.2 cffi==1.16.0
Copy link

Choose a reason for hiding this comment

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

Bug: Inconsistent pip versions across forge Docker images

The new forge images install pip==25.2, while ci/docker/forge.Dockerfile uses pip==25.0. The comment explicitly states packages are pinned "to make sure we can control version upgrades through code changes", but this version mismatch across forge images creates inconsistent environments that could lead to different build behaviors between ARM64, x86_64, and the main forge image.

Fix in Cursor Fix in Web

@aslonnie aslonnie merged commit 7e51bca into master Nov 21, 2025
6 checks passed
@aslonnie aslonnie deleted the lonnie-251120-autoforge branch November 21, 2025 20:53
400Ping pushed a commit to 400Ping/ray that referenced this pull request Nov 21, 2025
also uses `curl -fsSL` as much as possible

otherwise the release blocker checker is not working.

also removes unnecessary sudos.

Signed-off-by: Lonnie Liu <[email protected]>
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
also uses `curl -fsSL` as much as possible

otherwise the release blocker checker is not working.

also removes unnecessary sudos.

Signed-off-by: Lonnie Liu <[email protected]>
Signed-off-by: YK <[email protected]>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
also uses `curl -fsSL` as much as possible

otherwise the release blocker checker is not working.

also removes unnecessary sudos.

Signed-off-by: Lonnie Liu <[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 devprod go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants