Skip to content

Conversation

aslonnie
Copy link
Collaborator

deprecating :ray_pkg rule

deprecating `:ray_pkg` rule

Signed-off-by: Lonnie Liu <[email protected]>
@aslonnie aslonnie requested a review from dayshah August 27, 2025 17:11
@aslonnie
Copy link
Collaborator Author

@dayshah could you check if this change works? I am not really sure how to use or test this refresh_compile_commands thing.

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 refresh_compile_commands target in BUILD.bazel to point to //:ray_pkg_zip instead of //:ray_pkg. This change is part of the effort to deprecate the :ray_pkg rule. The new target, :ray_pkg_zip, is a more direct dependency for the C++ compilation actions that refresh_compile_commands needs to extract, making the build configuration cleaner and more accurate. The change is correct and improves the build system's maintainability. I have no further comments.

@dayshah
Copy link
Contributor

dayshah commented Aug 27, 2025

@dayshah could you check if this change works? I am not really sure how to use or test this refresh_compile_commands thing.

do we need to change this? are we killing the ray_pkg target entirely?

@aslonnie
Copy link
Collaborator Author

are we killing the ray_pkg target entirely?

yes.

Copy link
Contributor

@dayshah dayshah left a comment

Choose a reason for hiding this comment

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

🚢

@dayshah dayshah enabled auto-merge (squash) August 27, 2025 18:43
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Aug 27, 2025
@aslonnie aslonnie disabled auto-merge August 27, 2025 19:01
@aslonnie
Copy link
Collaborator Author

for context, the issue with :ray_pkg is that it does not actually output the bits to bazel (not declaring them as output), it just runs in the local source dir, and generates the required bits as a side effect of the build process.

if I understand how refresh_compile_commands works, using ray_pkg_zip should have the same effect (which is generating the compile commands for the c/c++ parts)

@ray-gardener ray-gardener bot added the devprod label Aug 27, 2025
@dayshah
Copy link
Contributor

dayshah commented Aug 27, 2025

for context, the issue with :ray_pkg is that it does not actually output the bits to bazel (not declaring them as output), it just runs in the local source dir, and generates the required bits as a side effect of the build process.

if I understand how refresh_compile_commands works, using ray_pkg_zip should have the same effect (which is generating the compile commands for the c/c++ parts)

ya will have the same effect

@aslonnie aslonnie enabled auto-merge (squash) August 27, 2025 19:19
@aslonnie aslonnie merged commit 2fd2231 into master Aug 27, 2025
6 of 7 checks passed
@aslonnie aslonnie deleted the lonnie-250827-compilecommands branch August 27, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devprod go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants