-
Notifications
You must be signed in to change notification settings - Fork 366
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
chore(deps): update grpc and protobuf #11421
chore(deps): update grpc and protobuf #11421
Conversation
a6bb066
to
0b3a661
Compare
a1e21ad
to
fd2e8fc
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #11421 +/- ##
===========================================
- Coverage 93.75% 82.94% -10.82%
===========================================
Files 1791 1791
Lines 161697 161559 -138
===========================================
- Hits 151600 134004 -17596
- Misses 10097 27555 +17458
☔ View full report in Codecov by Sentry. |
9f73fcb
to
8ceee02
Compare
8ceee02
to
c882ab2
Compare
e8d770d
to
a2c302f
Compare
We need to update both gRPC and Protobuf at the same time. gRPC >= 1.55.0 only compiles with Protobuf >= 23.1. gRPC < 1.55.0 only compiles with Protobuf < 23.0.
a2c302f
to
dbe3d0f
Compare
bazel/google_cloud_cpp_deps.bzl
Outdated
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_protobuf/v21.12.tar.gz", | ||
"https://github.com/protocolbuffers/protobuf/archive/v21.12.tar.gz", | ||
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_protobuf/v23.1.tar.gz", | ||
"https://github.com/protocolbuffers/protobuf/archive/refs/tags/v23.1.tar.gz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we drop the "refs/tags/" (et seq)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. FWIW, I think it makes no difference. Both redirect to the same URL.
@@ -36,7 +36,7 @@ Options GoldenKitchenSinkDefaultOptions(Options options) { | |||
options = google::cloud::internal::PopulateCommonOptions( | |||
std::move(options), "GOLDEN_KITCHEN_SINK_ENDPOINT", | |||
"GOLDEN_KITCHEN_SINK_EMULATOR_HOST", "GOLDEN_KITCHEN_SINK_AUTHORITY", | |||
"goldenkitchensink.googleapis.com"); | |||
"goldenkitchensink.googleapis.com"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q. Did the generator change in the meantime (x3)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the generator: the Protobuf helpers that the generator depends on emit different output in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, although I'm not sure I understand that given ...
google-cloud-cpp/generator/internal/option_defaults_generator.cc
Lines 128 to 144 in 721a63a
CcPrint(R"""( | |
options = google::cloud::internal::PopulateCommonOptions( | |
std::move(options), "$service_endpoint_env_var$", | |
"$emulator_endpoint_env_var$", "$service_authority_env_var$", | |
)"""); | |
switch (endpoint_location_style) { | |
case ServiceConfiguration::LOCATION_DEPENDENT: | |
CcPrint(R"""(absl::StrCat(location, "-", "$service_endpoint$"))"""); | |
break; | |
case ServiceConfiguration::LOCATION_DEPENDENT_COMPAT: | |
CcPrint(R"""(absl::StrCat(location, )""" | |
R"""(location.empty() ? "" : "-", "$service_endpoint$"))"""); | |
break; | |
default: | |
CcPrint(R"""("$service_endpoint$")"""); | |
break; | |
} |
But I'll look later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I understand either. I just don't think it matters. These golden files will always be subject to changes in the Protobuf Printer
class behavior. Fortunately we clang-format
the generated libraries.
FWIW, the class in question when through a number of changes:
https://github.com/protocolbuffers/protobuf/blob/21.x/src/google/protobuf/io/printer.cc
https://github.com/protocolbuffers/protobuf/blob/23.x/src/google/protobuf/io/printer.cc
and continues to change at head:
https://github.com/protocolbuffers/protobuf/blame/main/src/google/protobuf/io/printer.cc
PS: A (probably unnecessary) reminder to update the "-pre1" part of the commit message. |
We need to update both of these at the same time. I merged the "Renovate Bot" PRs manually.
This change is