Skip to content

Conversation

@aslonnie
Copy link
Collaborator

previously it was actually using 0.4.0, which is set up by the grpc repo. the declaration in the workspace file was being shadowed..

previously it was actually using 0.4.0, which is set up
by the grpc repo. the declaration in the workspace file
was being shadowed..

Signed-off-by: Lonnie Liu <[email protected]>
@aslonnie aslonnie requested a review from a team November 11, 2025 03:15
],
)

http_archive(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this seems to be the highest version that will not break anything else..

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 fixes a dependency shadowing issue with rules_python in the Bazel WORKSPACE. By moving the http_archive declaration to the top of the file, you ensure that the intended version (0.25.0) is used, rather than a version from a transitive dependency, which is a great fix for build determinism. I've added one suggestion to improve the resilience of the dependency download by using mirror URLs. Overall, this is a good improvement to the build configuration.

Comment on lines 21 to 26
http_archive(
name = "rules_python",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
strip_prefix = "rules_python-0.25.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
)
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 resilience against network issues or source downtime, it's a good practice to provide mirror URLs for http_archive. You can replace url with urls and include mirror.bazel.build as a fallback.

Suggested change
http_archive(
name = "rules_python",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
strip_prefix = "rules_python-0.25.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
)
http_archive(
name = "rules_python",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
strip_prefix = "rules_python-0.25.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
"https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
],
)

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 dependency shadowing issue by upgrading rules_python to version 0.25.0 and moving its declaration to a more prominent position in the WORKSPACE file. This improves the build's predictability and maintainability. My review includes a suggestion to further improve the dependency declaration by using urls with a mirror, which enhances resilience against network failures and aligns with best practices observed elsewhere in the project.

Comment on lines 21 to 26
http_archive(
name = "rules_python",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
strip_prefix = "rules_python-0.25.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
)
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 resilience against network issues and for consistency with other dependency declarations in this workspace (like rules_java), it's a good practice to use urls with a mirror. This provides a fallback if the primary URL is unavailable.

Suggested change
http_archive(
name = "rules_python",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
strip_prefix = "rules_python-0.25.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
)
http_archive(
name = "rules_python",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
strip_prefix = "rules_python-0.25.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
"https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
],
)

@aslonnie
Copy link
Collaborator Author

needs non-root forge first..

@aslonnie
Copy link
Collaborator Author

needs non-root forge first..

actually forge is already using non-root user. the issue is that the bazel query is performed inside the container rather than outside the container.

@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Nov 11, 2025
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Nov 11, 2025
@aslonnie aslonnie force-pushed the lonnie-251110-pyrulesup branch from 7c9803d to dda6f8c Compare November 11, 2025 07:55


def _get_new_tests(prefix: str, container: TesterContainer) -> Set[str]:
def _get_new_tests(prefix: str, workspace_dir: str) -> Set[str]:
Copy link

Choose a reason for hiding this comment

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

Bug: Signature mismatch breaks test suite.

The function signature of _get_new_tests was changed from accepting a TesterContainer to accepting a workspace_dir string, but the corresponding test in test_tester.py at line 300-302 was not updated and still passes a LinuxTesterContainer object. This breaks the existing test suite and will cause test failures.

Fix in Cursor Fix in Web

@aslonnie aslonnie marked this pull request as draft November 11, 2025 08:40
@aslonnie aslonnie removed the go add ONLY when ready to merge, run all tests label Nov 12, 2025
@aslonnie aslonnie changed the title [bazel] upgrade bazel python rules to 0.25.0 [ci] perform test selection outside container Nov 12, 2025
Copy link
Contributor

@elliot-barn elliot-barn left a comment

Choose a reason for hiding this comment

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

Can you update the unit tests in test_tester.py

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Nov 28, 2025
@aslonnie aslonnie removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Nov 28, 2025
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Dec 12, 2025
@aslonnie aslonnie removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Dec 12, 2025
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Dec 27, 2025
@aslonnie aslonnie removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Dec 27, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants