[core] move the RayletClientInterface to its own build target#56101
[core] move the RayletClientInterface to its own build target#56101edoakes merged 4 commits intoray-project:masterfrom
RayletClientInterface to its own build target#56101Conversation
04b8f7e to
c0debbd
Compare
Signed-off-by: Rueian <rueian@anyscale.com>
c0debbd to
c96c7df
Compare
Signed-off-by: Rueian <rueian@anyscale.com>
4671ebe to
7f2cad1
Compare
| exports_files([ | ||
| "raylet_client.h", | ||
| ]) | ||
| ray_cc_library( |
There was a problem hiding this comment.
What’s the visibility on the new targets? De we need all the targets to be public?
There was a problem hiding this comment.
Most of them are intended to be public indeed, except for the "node_manager_client", which should be :__subpackages__.
There was a problem hiding this comment.
please add explicit visibility tags for them (even public ones)
at some point I want to remove our default public visibility from ray.bzl
There was a problem hiding this comment.
Why not eliminate the RayletClient wrapper as well?
ray/src/ray/rpc/node_manager/node_manager_client.h
Lines 34 to 46 in 62b6bb4
There was a problem hiding this comment.
Can I do that in a follow-up? It won't be too hard, I guess, but this PR is already quite big...
There was a problem hiding this comment.
Yesh, agree let's do in a followup.
Signed-off-by: Rueian <rueian@anyscale.com>
Signed-off-by: Rueian <rueian@anyscale.com>
edoakes
left a comment
There was a problem hiding this comment.
Huge improvement that has been on my TODO list -- thank you!
| ray_cc_library( | ||
| name = "node_manager_client", | ||
| srcs = ["node_manager/raylet_client_pool.cc"], | ||
| hdrs = [ | ||
| "node_manager/node_manager_client.h", | ||
| "node_manager/raylet_client_pool.h", | ||
| ] + [ | ||
| # TODO(eoakes): these are needed due to a circular dependency: | ||
| # raylet_client_pool.cc -> raylet_client.h -> node_manager_client.h | ||
| "//src/ray/raylet_client:raylet_client.h", | ||
| ], | ||
| visibility = ["//visibility:public"], | ||
| deps = [ | ||
| ":client_call", | ||
| ":grpc_client", | ||
| "//src/ray/common:id", | ||
| "//src/ray/gcs/gcs_client:gcs_client_lib", | ||
| "//src/ray/protobuf:node_manager_cc_grpc", | ||
| "//src/ray/util:network_util", | ||
| ] + [ | ||
| # TODO(eoakes): these three come from raylet_client.h, remove after breaking the circular dependency. | ||
| "//src/ray/ipc:client_connection", | ||
| "//src/ray/common:ray_object", | ||
| "//src/ray/common:task_common", | ||
| ], | ||
| ) | ||
|
|
| exports_files([ | ||
| "raylet_client.h", | ||
| ]) | ||
| ray_cc_library( |
There was a problem hiding this comment.
please add explicit visibility tags for them (even public ones)
at some point I want to remove our default public visibility from ray.bzl
|
Please add visibility in follow up |
…project#56101) ## Why are these changes needed? 1. A new `//src/ray/raylet_client:raylet_client_interface` target containing only the `RayletClientInterface`. 2. A new `//src/ray/raylet_client:raylet_client_pool` target moved from the node_manager. 3. A new `//src/ray/raylet_client:node_manager_client` target moved from the node_manager. 4. Remove `using` statements in the `raylet_client.h` that allow others to omit `ray::` implicitly. There are no behavioral changes. ## Related issue number <!-- For example: "Closes ray-project#1234" --> ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( --------- Signed-off-by: Rueian <rueian@anyscale.com> Signed-off-by: sampan <sampan@anyscale.com>
…project#56101) ## Why are these changes needed? 1. A new `//src/ray/raylet_client:raylet_client_interface` target containing only the `RayletClientInterface`. 2. A new `//src/ray/raylet_client:raylet_client_pool` target moved from the node_manager. 3. A new `//src/ray/raylet_client:node_manager_client` target moved from the node_manager. 4. Remove `using` statements in the `raylet_client.h` that allow others to omit `ray::` implicitly. There are no behavioral changes. ## Related issue number <!-- For example: "Closes ray-project#1234" --> ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( --------- Signed-off-by: Rueian <rueian@anyscale.com> Signed-off-by: jugalshah291 <shah.jugal291@gmail.com>
…project#56101) ## Why are these changes needed? 1. A new `//src/ray/raylet_client:raylet_client_interface` target containing only the `RayletClientInterface`. 2. A new `//src/ray/raylet_client:raylet_client_pool` target moved from the node_manager. 3. A new `//src/ray/raylet_client:node_manager_client` target moved from the node_manager. 4. Remove `using` statements in the `raylet_client.h` that allow others to omit `ray::` implicitly. There are no behavioral changes. ## Related issue number <!-- For example: "Closes ray-project#1234" --> ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( --------- Signed-off-by: Rueian <rueian@anyscale.com> Signed-off-by: yenhong.wong <yenhong.wong@grabtaxi.com>
## Why are these changes needed? 1. A new `//src/ray/raylet_client:raylet_client_interface` target containing only the `RayletClientInterface`. 2. A new `//src/ray/raylet_client:raylet_client_pool` target moved from the node_manager. 3. A new `//src/ray/raylet_client:node_manager_client` target moved from the node_manager. 4. Remove `using` statements in the `raylet_client.h` that allow others to omit `ray::` implicitly. There are no behavioral changes. ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( --------- Signed-off-by: Rueian <rueian@anyscale.com> Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
…project#56101) ## Why are these changes needed? 1. A new `//src/ray/raylet_client:raylet_client_interface` target containing only the `RayletClientInterface`. 2. A new `//src/ray/raylet_client:raylet_client_pool` target moved from the node_manager. 3. A new `//src/ray/raylet_client:node_manager_client` target moved from the node_manager. 4. Remove `using` statements in the `raylet_client.h` that allow others to omit `ray::` implicitly. There are no behavioral changes. ## Related issue number <!-- For example: "Closes ray-project#1234" --> ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( --------- Signed-off-by: Rueian <rueian@anyscale.com>
Why are these changes needed?
//src/ray/raylet_client:raylet_client_interfacetarget containing only theRayletClientInterface.//src/ray/raylet_client:raylet_client_pooltarget moved from the node_manager.//src/ray/raylet_client:node_manager_clienttarget moved from the node_manager.usingstatements in theraylet_client.hthat allow others to omitray::implicitly.There are no behavioral changes.
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.