Skip to content

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

Merged
scotthart merged 5 commits into
googleapis:mainfrom
scotthart:protobuf_v36_updates
Aug 31, 2026
Merged

chore: update code to be compatible with protobuf v36#16342
scotthart merged 5 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.56198% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.26%. Comparing base (5bdcb3d) to head (6357b40).

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.26%   92.26%           
=======================================
  Files        2246     2246           
  Lines      212121   212136   +15     
=======================================
+ Hits       195707   195729   +22     
+ Misses      16414    16407    -7     

☔ 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 force-pushed the protobuf_v36_updates branch from cf100b5 to 637e308 Compare August 27, 2026 21:12
@scotthart
scotthart enabled auto-merge (squash) August 27, 2026 21:57
@scotthart
scotthart force-pushed the protobuf_v36_updates branch from dda7a65 to 6357b40 Compare August 31, 2026 16:50
@scotthart
scotthart disabled auto-merge August 31, 2026 17:33
@scotthart
scotthart merged commit 9a53ce2 into googleapis:main Aug 31, 2026
67 checks passed
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