Repository navigation
[runtime env] support create or delete runtime envs in agent - #15904
Conversation
|
@SongGuyang please merge latest master, @architkulkarni recently update the worker caching logic in worker_pool.cc to properly handle runtime_envs |
|
@edoakes Code has been updated. Please help to review. @architkulkarni @iycheng |
|
@SongGuyang we are pushing for an internal deadline this coming Monday so we might be slower than usual to respond to PRs. I will let @architkulkarni @iycheng review this when they have a chance! |
|
@edoakes OK, no problem. |
|
I'm thinking about the cleanup step introduced by the agent manager. Right now the cleanup is carefully designed to be:
I'm wondering will we follow the same pattern here? or we'll introduce something better? If downloading and uploading happens both in agent, should the agent manage the referencing of the uris? |
|
@iycheng Maybe agent should manage referencing. But raylet should trigger the increase and decrease of references when job stopped or actor killed. |
architkulkarni
left a comment
There was a problem hiding this comment.
Looks good to me! I don't have merge privileges so I'll let @edoakes handle it from here
|
@architkulkarni Thanks. @edoakes Can we merge this? |
There was a problem hiding this comment.
@SongGuyang it looks like we don't have any tests for this, could you add some basic tests before we merge? If possible, it'd be ideal if we had a feature flag and ran the existing test with the feature flag on and off but it seems that will require implementing more features. In that case just some basic unit tests are fine.
|
@edoakes Sorry for late update. I have updated some unit tests to |
|
@edoakes Sorry for late update. I have updated some unit tests to |
|
Thanks so much for adding these tests! We are currently pushing for the Ray 1.4 release so our review may be slower than usual again--sorry about that. We'll try to review it as soon as we can |
|
@architkulkarni OK. Thanks. |
|
I reviewed the test, and it looks great, thanks for adding it @SongGuyang! It looks like you've also tested that the runtime env hashing works as expected, and your framework will make it easy for me to add more tests later. I agree that the existing Python tests can serve as integration testing. Thanks also @raulchen for the careful review. This PR looks good to me, but perhaps we can also get an approval from @iycheng or @edoakes who might have more experience with gRPC? |
|
HI, @architkulkarni the gRPC changes are totally fine. They are just boilerplate code. |
Why are these changes needed?
ensure_runtime_env_setup(uris)to download packages in agent.Related issue number
#15696