-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][python]Fix generated Python protobuf code not compatible with latest protobuf package #15846
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
Conversation
…atest protobuf package Protobuf latest 4.21 version broke compatibility with files generated with protoc < 3.19 This fix downgrades protobuf python package to 3.20.1. See https://developers.google.com/protocol-buffers/docs/news/2022-05-06
hangc0276
left a comment
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.
Great job!
zymap
left a comment
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.
Shouldn't we regenerate the code to support the latest protobuf?
|
Make sense to me |
7614503 to
78c976b
Compare
|
I added another commit to this PR to limit the version to 3.20.* in setup.py for the Pulsar Python client's dependencies. This would be a useful fix also for maintenance branches. |
eolivelli
left a comment
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.
Great catch!
|
@zymap Why did you restart all tests and not just the failed ones? I'm taking care of the restarts and investigating any flakiness issues, so please don't restart the failed builds for this PR. In general, it's a bad practice to restart failed builds without investigating and reporting the flaky tests. |
|
Sorry it’s my fault. I wanted to rerun the failed test but accidentally clicked the wrong one |
codelipenghui
left a comment
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.
Nice fix!
…atest protobuf package (#15846) * [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package Protobuf latest 4.21 (v21) version broke compatibility with files generated with protoc < 3.19 This fix downgrades protobuf python package to 3.20.1. See https://developers.google.com/protocol-buffers/docs/news/2022-05-06 * Limit protobuf version to 3.20.* in setup.py Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 7800fbd)
…atest protobuf package (#15846) * [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package Protobuf latest 4.21 (v21) version broke compatibility with files generated with protoc < 3.19 This fix downgrades protobuf python package to 3.20.1. See https://developers.google.com/protocol-buffers/docs/news/2022-05-06 * Limit protobuf version to 3.20.* in setup.py Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 7800fbd) (cherry picked from commit 7fb23cf)
…atest protobuf package (#15846) * [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package Protobuf latest 4.21 (v21) version broke compatibility with files generated with protoc < 3.19 This fix downgrades protobuf python package to 3.20.1. See https://developers.google.com/protocol-buffers/docs/news/2022-05-06 * Limit protobuf version to 3.20.* in setup.py Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 7800fbd) (cherry picked from commit 7fb23cf)
…atest protobuf package (#15846) * [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package Protobuf latest 4.21 (v21) version broke compatibility with files generated with protoc < 3.19 This fix downgrades protobuf python package to 3.20.1. See https://developers.google.com/protocol-buffers/docs/news/2022-05-06 * Limit protobuf version to 3.20.* in setup.py Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 7800fbd) (cherry picked from commit 7fb23cf)
…atest protobuf package (apache#15846) * [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package Protobuf latest 4.21 (v21) version broke compatibility with files generated with protoc < 3.19 This fix downgrades protobuf python package to 3.20.1. See https://developers.google.com/protocol-buffers/docs/news/2022-05-06 * Limit protobuf version to 3.20.* in setup.py Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 7800fbd) (cherry picked from commit 7fb23cf)
…atest protobuf package (apache#15846) * [fix][python]Fix generated Python protobuf code not compatible with latest protobuf package Protobuf latest 4.21 (v21) version broke compatibility with files generated with protoc < 3.19 This fix downgrades protobuf python package to 3.20.1. See https://developers.google.com/protocol-buffers/docs/news/2022-05-06 * Limit protobuf version to 3.20.* in setup.py Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit 7800fbd) (cherry picked from commit 7fb23cf) (cherry picked from commit 945cc75)
Motivation
Protobuf latest 4.21 version broke compatibility with files generated with protoc < 3.19
As a result all current CI tests fail.
See https://developers.google.com/protocol-buffers/docs/news/2022-05-06
Modifications
This fix downgrades protobuf python package to 3.20.1.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
no
If
yeswas chosen, please highlight the changesDocumentation
Check the box below or label this PR directly.
Need to update docs?
doc-required(Your PR needs to update docs and you will update later)
doc-not-neededfix
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)