Skip to content

Conversation

@elliot-barn
Copy link
Contributor

Jax dependency is introduced in #58322
The current test environment is for CUDA 12.1, which limit jax version below 0.4.14.
jax <= 0.4.14 does not support py 3.12.
skip jax test if it runs against py3.12+.

Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
@elliot-barn elliot-barn requested a review from a team as a code owner November 26, 2025 04:02
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 addresses a test failure for test_jax_distributed_shutdown_timeout on Python 3.12+ by skipping the test. The underlying issue is that the jax version used in the test environment is incompatible with Python 3.12. The change is appropriate. I have one minor suggestion to improve the clarity of the skip reason for future maintainability.

@pytest.mark.parametrize("timeout_s", [5, 0])
@pytest.mark.skipif(
sys.version_info >= (3, 12),
reason="Current jax version is not supported in python 3.12+",
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 maintainability, could you make the reason a bit more specific? Based on the PR description, the jax version is constrained by the test environment. A more descriptive reason would be helpful for future developers who might need to revisit this.

Suggested change
reason="Current jax version is not supported in python 3.12+",
reason="jax<=0.4.14, used in this test env, is not supported on Python 3.12+",

@ray-gardener ray-gardener bot added the train Ray Train Related Issue label Nov 26, 2025
@aslonnie aslonnie enabled auto-merge (squash) November 26, 2025 16:53
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Nov 26, 2025
@aslonnie aslonnie merged commit 9feff89 into master Nov 26, 2025
7 checks passed
@aslonnie aslonnie deleted the elliot-barn/skip-jax-test branch November 26, 2025 17:36
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
Jax dependency is introduced in
ray-project#58322
The current test environment is for CUDA 12.1, which limit jax version
below 0.4.14.
jax <= 0.4.14 does not support py 3.12.
skip jax test if it runs against py3.12+.

Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants