[fix][python]Fix generated Python protobuf code not compatible with latest protobuf package - #15846
Merged
Merged
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
BewareMyPower
approved these changes
May 31, 2022
Demogorgon314
approved these changes
May 31, 2022
zymap
requested changes
May 31, 2022
zymap
left a comment
Member
There was a problem hiding this comment.
Shouldn't we regenerate the code to support the latest protobuf?
Member
lhotari
approved these changes
May 31, 2022
zymap
approved these changes
May 31, 2022
Member
|
Make sense to me |
lhotari
force-pushed
the
fix-python-protobuf
branch
from
May 31, 2022 04:46
7614503 to
78c976b
Compare
Member
|
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. |
Member
|
@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. |
Member
|
Sorry it’s my fault. I wanted to rerun the failed test but accidentally clicked the wrong one |
RobertIndie
approved these changes
May 31, 2022
lhotari
added a commit
that referenced
this pull request
May 31, 2022
…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)
lhotari
added a commit
that referenced
this pull request
May 31, 2022
…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)
lhotari
added a commit
that referenced
this pull request
May 31, 2022
…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)
lhotari
added a commit
that referenced
this pull request
May 31, 2022
…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)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jun 1, 2022
…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)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jun 1, 2022
…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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)