-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[Core] update protobuf to 3.19.4 #25648
Conversation
Manually tested with this we can work with both protobuf == 4.21.1 and protobuf == 3.20.1 |
|
||
# verfiy this no longer crashes. see | ||
# https://github.com/ray-project/ray/issues/25282 | ||
from ray import tune # noqa |
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.
To simplify this even more, this should fail with just import ray
right?
Thanks a ton for fixing this, this is great! Do we need the upper bound on 4.21.1 in the requirements.txt? It would be great to not constrain it so the CI will detect if there is other versions in the future that cause problems :) |
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.
LGMT if tests pass!
test_protobuf_compatibility failed |
well, we are hitting a windows bug: protocolbuffers/protobuf#10075 |
@pcmoritz @rkooo567 so basically this works for linux and mac... except for Windows. What's our option here?
|
There is also 4., which is upgrade C++ protobuf to 3.19.4 only on non-Windows (and also unpin), and keep the old one on Windows until protocolbuffers/protobuf#10075 is fixed :) That one actually seems optimal given the situation, what do you think? We could even keep pinning on Windows so stuff works there too unless the pin is ignored. |
This upper bound was introduced in ray-project#25211 but the root cause is supposed be fixed by ray-project#25648.
This upper bound was introduced in ray-project#25211 but the root cause is supposed be fixed by ray-project#25648. Signed-off-by: Weichen Xu <[email protected]>
Why are these changes needed?
The error message in #25638 indicates we should use protobuf>3.19.0 to generated code so that we can work with python protobuf >= 4.21.1. Try generating wheels to see if this works.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.