-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump Ray client protocol version; fix dataclasses dependency for py 3.6 #14654
Conversation
@@ -131,6 +131,7 @@ | |||
"click >= 7.0", | |||
"colorama", | |||
"colorful", | |||
"dataclasses; python_version < '3.7'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richardliaw did we move this accidentally recently? Python 3.6 used to work (and we have dependend on dataclasses in ray client since last year).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall; though I think we didn't have the python version setup correctly before. dataclasses will break on 3.7.
@ericl this won't break every time we add a new |
I believe this is only since it was adding a new kwarg. I think we should be able to avoid this kind of breakage in the future, but it might require some refactoring of the Ray client protocol (cc @AmeerHajAli ) |
@ericl @AmeerHajAli actually we could make the client API very defensive and just transparently pass through all args and kwargs where possible, then have the failure happen on the remote side. That might be the best way to avoid these issues coming up repeatedly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... Should we add compatibility tests for ray client?
It's a good question, I think we need to decide whether to support x-version calls for nightly builds and so on. For properly released Ray versions, we require exact version match. |
The addition of the .options(runtime_env) field breaks Ray client protocol compatibility. In addition, the dataclasses module was incorrectly moved to extras; it's needed for Ray client.