Skip to content

Conversation

@aslonnie
Copy link
Collaborator

starts bzlmod migration

@aslonnie
Copy link
Collaborator Author

see if this can work out of the box..

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 starts the migration to Bzlmod by enabling it in the .bazelrc file. While this is a positive direction for dependency management, enabling it globally at this stage without a corresponding MODULE.bazel file and dependency migration will break the main build. My review includes a critical comment with a suggestion to enable Bzlmod conditionally to allow for a safe, incremental migration.

@aslonnie aslonnie force-pushed the lonnie-251110-bzlmod branch from 06c3ecb to ebc6ed7 Compare November 11, 2025 02:17
@aslonnie aslonnie requested review from a team as code owners November 11, 2025 02:17
@aslonnie aslonnie force-pushed the lonnie-251110-bzlmod branch from ebc6ed7 to aa51682 Compare November 11, 2025 02:23
starts bzlmod migration

Signed-off-by: Lonnie Liu <[email protected]>
@aslonnie aslonnie force-pushed the lonnie-251110-bzlmod branch from aa51682 to bb92f20 Compare November 11, 2025 02:39
name = "io_ray",
repo_name = "io_ray",
version = "0.1",
)
Copy link

Choose a reason for hiding this comment

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

Bug: Inconsistent Runfiles Path Resolution

The repo_name is set to "io_ray" in MODULE.bazel, but all the Python code using runfiles.Rlocation() has been changed to use "_main" instead. In bzlmod, the repo_name attribute defines the canonical repository name for runfiles paths. Since repo_name = "io_ray" is explicitly set, the runfiles paths should continue using "io_ray", not "_main". Either remove the repo_name attribute from MODULE.bazel to use the default "_main", or revert the Python code changes to keep using "io_ray".

Fix in Cursor Fix in Web

@aslonnie aslonnie marked this pull request as draft November 11, 2025 03:38
import runfiles

REPO_NAME = "io_ray"
REPO_NAME = "_main"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we leave them as io_ray or is _main the new default when using bazel modules

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would like to avoid the change too.. but using bzlmod will have to change this to _main as far as I can tell..

@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants