Skip to content

Conversation

@aslonnie
Copy link
Collaborator

python 3.9 is end of life

@aslonnie aslonnie requested a review from a team as a code owner November 22, 2025 12:58
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 updates the Python version for Windows builds from 3.9 to 3.10, which is a necessary change as Python 3.9 has reached its end of life. The change itself is correct. I've added one suggestion to improve the Dockerfile's flexibility and maintainability by using a build argument for the Python version, which is a common practice in this repository.

FROM $DOCKER_IMAGE_BASE_BUILD

ENV PYTHON=3.9
ENV PYTHON=3.10
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better flexibility and consistency with other Dockerfiles in this repository (e.g., ci/docker/base.test.Dockerfile), it's a good practice to define the Python version as a build argument (ARG) and then use it to set the environment variable (ENV). This allows overriding the Python version during the Docker build process if needed, without modifying the Dockerfile.

ARG PYTHON=3.10
ENV PYTHON=$PYTHON

also add windows tags to windows test jobs

Signed-off-by: Lonnie Liu <[email protected]>
@aslonnie aslonnie force-pushed the lonnie-251122-winpyup branch from 3a97e7a to 546d33d Compare November 22, 2025 13:00
@ray-gardener ray-gardener bot added the devprod label Nov 22, 2025
@aslonnie
Copy link
Collaborator Author

testing with all windows tests:
https://buildkite.com/ray-project/postmerge/builds/14573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants