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 to v1.53.0 #6734

Merged
merged 4 commits into from Mar 15, 2023
Merged

Conversation

mcpherrinm
Copy link
Contributor

@mcpherrinm mcpherrinm commented Mar 9, 2023

Upgrade grpc to v1.53.0, as preparation for introducing OpenTelemetry, which depends on that grpc version.

Two changes to our own code were necessitated by upstream changes:

  1. Add a stub implementation of GetOrBuildProducer: this was added to the balancer.SubConn interface by grpc v1.51.0

  2. Change use of Endpoint field to Endpoint() method: the field was removed and replaced by a method in resolver: replace resolver.Target.Endpoint field with Endpoint() method grpc/grpc-go#5852. This also means that our tests can't set the .Endpoint field, so the tests are updated to use the .URL field instead, and a helper has been added to make that easy.

Part of #6361

Added to the balancer.SubConn interface by grpc v1.51.0
This is based on the upstream breaking-change in v1.53
grpc/grpc-go#5852
@mcpherrinm mcpherrinm requested a review from a team as a code owner March 9, 2023 07:42
jsha
jsha previously approved these changes Mar 13, 2023
@mcpherrinm mcpherrinm dismissed stale reviews from jsha and beautifulentropy via 1a99efe March 15, 2023 02:26
@mcpherrinm mcpherrinm requested review from jsha and beautifulentropy and removed request for jsha and beautifulentropy March 15, 2023 03:14
@mcpherrinm
Copy link
Contributor Author

merge conflict resolved.

@mcpherrinm mcpherrinm requested review from jsha and beautifulentropy and removed request for jsha and beautifulentropy March 15, 2023 03:15
@mcpherrinm
Copy link
Contributor Author

Sorry for the flapping review requests; I was mildly confused by the Github UI and a bit of lag.

@@ -34,7 +34,7 @@ require (
golang.org/x/sync v0.1.0
golang.org/x/term v0.5.0
golang.org/x/text v0.8.0
google.golang.org/grpc v1.49.0
google.golang.org/grpc v1.53.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Note to self: we should follow this change up with a similar update to the protoc and gRPC versions baked into our docker environment.

@aarongable aarongable merged commit 9880a41 into letsencrypt:main Mar 15, 2023
@mcpherrinm mcpherrinm deleted the mattm-upgrade-grpc branch March 16, 2023 07:22
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.

None yet

4 participants