Skip to content

chore: update code to be compatible with protobuf v36 - #16342

Open
scotthart wants to merge 4 commits into
googleapis:mainfrom
scotthart:protobuf_v36_updates
Open

chore: update code to be compatible with protobuf v36#16342
scotthart wants to merge 4 commits into
googleapis:mainfrom
scotthart:protobuf_v36_updates

Conversation

@scotthart

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades the Protobuf dependency to version 36.0-rc2 across Bazel configurations, Dockerfiles, and workspace files, and casts several Protobuf method calls to (void) to ignore their return values. The reviewer feedback correctly notes that casting any.UnpackTo(&result) to (void) in extract_long_running_result.cc silently swallows unpacking errors, violating the repository's 'Demand Explosive Correctness' principle, and suggests returning an error status if unpacking fails.

Comment thread google/cloud/internal/extract_long_running_result.cc Outdated
Comment thread google/cloud/internal/extract_long_running_result.cc Outdated
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.62295% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.26%. Comparing base (78704f6) to head (dda7a65).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
google/cloud/spanner/samples/samples.cc 0.00% 6 Missing ⚠️
generator/internal/descriptor_utils.cc 50.00% 1 Missing ⚠️
google/cloud/pubsub/samples/samples.cc 0.00% 1 Missing ⚠️
...cloud/spanner/testing/database_integration_test.cc 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16342      +/-   ##
==========================================
+ Coverage   92.24%   92.26%   +0.02%     
==========================================
  Files        2246     2246              
  Lines      212121   212136      +15     
==========================================
+ Hits       195665   195729      +64     
+ Misses      16456    16407      -49     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread MODULE.bazel Outdated
Comment on lines +34 to +38
#git_override(
# module_name = "protobuf",
# commit = "d65ed10e49acbee0e7d14277ab3e0330a0dd2838",
# remote = "https://github.com/protocolbuffers/protobuf.git",
#)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Also reverted back to the previous, 35.1, as it's the recommended minimum version.

@scotthart
scotthart enabled auto-merge (squash) August 27, 2026 21:57
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.

2 participants