-
Notifications
You must be signed in to change notification settings - Fork 268
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
Protobuf: Do not require version 3 do support Protobuf 4.23.2 (23.2) #2006
Conversation
Signed-off-by: Silvio Traversaro <silvio@traversaro.it>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #2006 +/- ##
===============================================
- Coverage 65.35% 65.33% -0.03%
===============================================
Files 327 327
Lines 26996 26996
===============================================
- Hits 17644 17637 -7
- Misses 9352 9359 +7 |
There is another failure with Protobuf >= 22 :
FatalException was removed in Protobuf 22, I could not find the exact commit, but I guess it is a change similar to protocolbuffers/protobuf#11471 . So probably we can just avoid to catch that exception if protobuf >= 22 . Perhaps @azeey has some specific idea as he wrote that code. |
I believe it was removed in protocolbuffers/protobuf@a9f1ea6#diff-1978da6171b419e33e933316518e3d91f0f01526777d27ec8ef9c00451e761e3, and I think we can just remove that |
It has been removed from recent versions of protobuf. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I'm attempting this in b5060e3 cc @azeey for your thoughts |
I think the conditions that cause protobuf to have fatal errors are checked in
MessageDifferencer::Compare and MessageDifferencer::CompareWithFields , so your fix should be safe.
|
…2006) Signed-off-by: Silvio Traversaro <silvio@traversaro.it> * TriggeredPublisher: don't catch FatalException It has been removed from recent versions of protobuf. Signed-off-by: Steve Peters <scpeters@openrobotics.org> Co-authored-by: Steve Peters <scpeters@openrobotics.org>
…2006) Signed-off-by: Silvio Traversaro <silvio@traversaro.it> * TriggeredPublisher: don't catch FatalException It has been removed from recent versions of protobuf. Signed-off-by: Steve Peters <scpeters@openrobotics.org> Co-authored-by: Steve Peters <scpeters@openrobotics.org>
…2006) Signed-off-by: Silvio Traversaro <silvio@traversaro.it> * TriggeredPublisher: don't catch FatalException It has been removed from recent versions of protobuf. Signed-off-by: Steve Peters <scpeters@openrobotics.org> Co-authored-by: Steve Peters <scpeters@openrobotics.org>
…2006) Signed-off-by: Silvio Traversaro <silvio@traversaro.it> * TriggeredPublisher: don't catch FatalException It has been removed from recent versions of protobuf. Signed-off-by: Steve Peters <scpeters@openrobotics.org> Co-authored-by: Steve Peters <scpeters@openrobotics.org>
🎉 New feature
GzProtobuf: Do not require version 3 do support Protobuf 4.23.2 (23.2)
Summary
The motivation is similar to gazebosim/gz-msgs#346 .
Test it
Install protobuf 23.2 and run the tests (I guess the only way to do it easily for now is to use conda-forge, see https://repology.org/project/protobuf/versions .
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.