Skip to content
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

Upgrade grpc dependency. #459

Closed
wants to merge 3 commits into from

Conversation

bogdandrutu
Copy link
Member

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@bogdandrutu bogdandrutu requested a review from a team December 17, 2020 01:38
@codecov
Copy link

codecov bot commented Dec 17, 2020

Codecov Report

Merging #459 (59446d0) into main (3dfebc7) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #459      +/-   ##
==========================================
+ Coverage   94.39%   94.40%   +0.01%     
==========================================
  Files         200      200              
  Lines        9068     9068              
==========================================
+ Hits         8560     8561       +1     
+ Misses        508      507       -1     
Impacted Files Coverage Δ
sdk/test/common/circular_buffer_test.cc 100.00% <0.00%> (+1.04%) ⬆️

@bogdandrutu bogdandrutu changed the title Upgrade grpc and protobuf Upgrade grpc remove protobuf since no dependency. Dec 17, 2020
@g-easy
Copy link
Contributor

g-easy commented Dec 17, 2020

Is this new in grpc 1.34? It changes how protoc is pulled in?

(looks like the new grpc release also breaks the gcc-4.8+bazel build)

@bogdandrutu
Copy link
Member Author

Is this new in grpc 1.34? It changes how protoc is pulled in?

I think you added the specific proto dep to work around the bug in the description, but proto is a transitive deps from gRPC, and not sure why we need to redeclare since there is no cc_library that has any deps to the proto library. Am I missing something?

@ThomsonTan
Copy link
Contributor

Is this new in grpc 1.34? It changes how protoc is pulled in?

I think you added the specific proto dep to work around the bug in the description, but proto is a transitive deps from gRPC, and not sure why we need to redeclare since there is no cc_library that has any deps to the proto library. Am I missing something?

I think it is fine to remove protobuf dependency. gRPC dependence was introduced recently which supersedes the protobuf.

@maxgolov
Copy link
Contributor

I think it is fine to remove protobuf dependency.

For CMake we still require protobuf, since its package (both Debian package and vcpkg package) includes the protoc .. We also require at least protobuf3 .. Actually for older Ubuntu-14.xx that comes with protobuf2 we deploy protoc by downloading it from https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip

While unrelated to Bazel PR, I am not sure if (how) we can safely eliminate dependency on protobuf from CMake build at the moment. Can't comment on Bazel specifics.

@jsuereth
Copy link
Contributor

FYI - grpc/grpc#24953

I tried to bump gRPC locally and ran into a bazel issue pulling it in on windows. I don't think this is related to the legacy-bazel CI breakage but it'd be nice to verify if downstream windows can consume this version of gRPC or if we need to open a bug ourselves to "upgrade ASAP" once that fix is in.

@bogdandrutu bogdandrutu force-pushed the grpcproto branch 4 times, most recently from 7de7b03 to faf547a Compare January 3, 2021 21:17
@bogdandrutu bogdandrutu changed the title Upgrade grpc remove protobuf since no dependency. Upgrade grpc dependency. Jan 4, 2021
Copy link
Contributor

@jsuereth jsuereth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing the update!

@lalitb
Copy link
Member

lalitb commented Jan 5, 2021

@bogdandrutu Can you see if the Bazel tsan check failure here is related to this PR ? Thanks.

@bogdandrutu bogdandrutu force-pushed the grpcproto branch 3 times, most recently from 3a70751 to c466ab0 Compare January 7, 2021 17:36
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@lalitb
Copy link
Member

lalitb commented Jan 14, 2021

@bogdandrutu . There are some failures for bazel on Windows and gcc4.8. Thanks.

`
ERROR: C:/users/runneradmin/_bazel_runneradmin/cefevaif/external/com_github_grpc_grpc/BUILD:3194:16: undeclared inclusion(s) in rule '@com_github_grpc_grpc//:google_api_upbdefs':

this rule is missing dependency declarations for the following files included by 'com_github_grpc_grpc/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c':
'bazel-out/x64_windows-fastbuild/bin/external/com_google_protobuf/google/protobuf/descriptor.upbdefs.h'
`

Base automatically changed from master to main January 26, 2021 00:46
@lalitb lalitb mentioned this pull request Apr 13, 2021
3 tasks
@lalitb
Copy link
Member

lalitb commented Apr 13, 2021

closing this, as we have a similar gRPC upgrade PR #666

@lalitb lalitb closed this Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants