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
Update third_party/protobuf to v3.11.2 #21590
Conversation
c1205f2
to
286d56c
Compare
Python Bazel Build
|
A bunch of Macos bazel tests terminating with an odd, likely protobuf related error: https://source.cloud.google.com/results/invocations/9a21fcab-5195-4f6d-88e4-1780fe99d5a0/targets
|
ASAN problems:
|
@rafi-kamal looks like there's several problems upgrading gRPC to protobuf 3.11.2 - can you look at them and help us resolve? |
03f1e33
to
c221ff6
Compare
Oh, looks like this is due to #20224 (comment) |
The failure in the Python build is addressed by #20783. We were hesitant to pull it in because it constitutes a breaking change, but I think at this point, we'd better. |
There are two potential solutions mentioned in #20224 (comment), but I'm not familiar enough with Protobuf or gRPC C++ to determine which one is better or what exactly the next steps would be in either of these two solutions. @veblush would be able to help here? I'm happy to help if any changes are needed from the Protobuf side. |
See #20224 (comment) for potential root cause @muxi any ideas? |
I see |
The file is here. I'm not sure why it is maintained in gRPC repo though (since I remember discussion with teboring on integrating its release in Protobuf's release process). |
This is the history of that file: Btw, I found: looks like we should get rid of our copy of Protobuf-C++.podspec? |
If Protobuf has a copy of this file it's probably right to get rid of our copy. Let me check why our copy exist first. |
The protobuf version of the podspec doesn't work. Previous internal discussion: https://groups.google.com/a/google.com/g/protobuf-team/c/7kqwEta6q_A/m/8doAs-OlCwAJ |
@gnossen, looks like |
Thanks! Btw, Protobuf-C++.podspec being in our repo under |
Line 15 in b07d7f1
|
@rafi-kamal - Sorry I did not notice that thread in Sep. Those two files are exactly the same. It's probably an error that happens during Cocoapods lint but not with gRPC test. I'm taking a look. |
@muxi @rafi-kamal for now I'll try to go with updating our local copy of Protobuf-C++.podspec (406cb5d) to see if that helps fix the failing test |
@rafi-kamal - I found the reason for the error. Short version: pushing the podspec with additional flags Protobuf C++ code are using the include style |
Nice! I'm happy to merge protocolbuffers/protobuf#7096 when it's ready. |
8d916ab
to
a16e793
Compare
I also tested with protocolbuffers/protobuf#7096 locally and it seems to work. As another confirmation, I added a "DO NOT MERGE" commit to this PR that tests protobuf with @Yannic 's changes included a16e793 - let's see what the tests say. @Yannic any idea when will you be able to finalize the PR? We are in bit of a hurry because we want to cut the release branch for gRPC 1.27.x (with upgraded protobuf) as soon as possible. |
The Protobuf PRs are ready now (I only submitted it as a draft so it doesn't get accidentally merged). |
Test failures seem unrelated so I'd say let's proceed with merging protocolbuffers/protobuf#7096 |
Merged protocolbuffers/protobuf#7096. |
a16e793
to
bf1b849
Compare
I updated the PR to include changes from protocolbuffers/protobuf#7096 (that have just been merged to protobuf's 3.11.x). I only upgraded the grpc_deps.bzl ((see bf1b849)), which should be enough to fix our bazel problems, the third_party/protobuf stays exactly at the 3.11.2 release Adhoc package/distribtest build: https://sponge.corp.google.com/invocation?id=6b284726-c9c9-4aa3-8e0f-ee5f19664c1a&searchFor= Once the tests finish, this PR will be ready to merge. Thanks everyone for the help! |
Two failures I'm puzzled about is the the MacOS artifact build: and the android build AFAIR the two failures weren't there on the last build or this PR, which is strange because the only change in bf1b849 is upgrading the bazel protobuf dependency (which should have nothing to do with those tests). Edit:
|
Another run of adhoc artifact/package/distribtest build: https://sponge.corp.google.com/invocation?tab=Build+Log&id=43bd076b-7395-4fe5-8a56-74d6177a8fba&searchFor= |
We're currently at protobuf 3.8 (didn't manage to upgrade to protobuf 3.9 and 3.10 due to some issues).