Skip to content

Kevinjqliu/3.14#40

Closed
kevinjqliu wants to merge 18 commits intomainfrom
kevinjqliu/3.14
Closed

Kevinjqliu/3.14#40
kevinjqliu wants to merge 18 commits intomainfrom
kevinjqliu/3.14

Conversation

@kevinjqliu
Copy link
Copy Markdown
Owner

Rationale for this change

Are these changes tested?

Are there any user-facing changes?

Copy link
Copy Markdown

@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 adds Python 3.14 to the project classifiers and updates the Ray test fixture to disable automatic environment propagation when running tests via uv. The feedback suggests removing a redundant local os import and recommends retaining the explicit working_dir: None configuration in ray.init as a safeguard against automatic directory serialization in other environments.

Comment thread tests/conftest.py Outdated
@pytest.fixture(scope="session")
def ray_session() -> Generator[Any, None, None]:
"""Fixture to manage Ray initialization and shutdown for tests."""
import os
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The os module is already imported at the top of the file (line 28). This local import is redundant and should be removed to maintain code cleanliness.

Comment thread tests/conftest.py
ray.init(
ignore_reinit_error=True,
runtime_env={"working_dir": None}, # Prevent Ray from serializing the working directory to workers
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

While the new environment variable RAY_ENABLE_UV_RUN_RUNTIME_ENV handles the uv run specific issue, it is safer to retain the explicit runtime_env={"working_dir": None} configuration. This serves as a general safeguard to prevent Ray from automatically serializing the local working directory in other environments where it might still attempt to do so.

Suggested change
)
runtime_env={"working_dir": None}, # Prevent Ray from serializing the working directory to workers
)

@kevinjqliu kevinjqliu closed this May 3, 2026
@kevinjqliu kevinjqliu deleted the kevinjqliu/3.14 branch May 3, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants