Skip to content

protobuf: bump to 37.0-rc3, drop no_crate_universe.patch (part of #11443) - #12723

Draft
TrapsterDK wants to merge 2 commits into
mainfrom
protobuf-37-rc3
Draft

TrapsterDK wants to merge 2 commits into
mainfrom
protobuf-37-rc3

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #11443. #12703 rebases on this.

protobuf 36.2's non-root crate.from_specs() has no lockfile, so a consumer's bazel mod fails it (the rules_dx patch only applies when rules_dx is root). 37.0-rc3 (BCR) adds lockfile = "//rust:Cargo.Bazel.lock".

Changes:

  • MODULE.bazel: protobuf 37.0-rc3, no override; patches/protobuf deleted.
  • patches/grpc/upb_reflection_cc.patch: grpc 1.85.1 targets on upb/reflection also depend on upb/reflection:reflection_cc (37.0 moved def.hpp there).
  • TESTED_PROTOBUF, bcr_newest.json, adopt preflight, proto_bindings fixture, patches/README.md.
  • third_party/dotnet: Google.Protobuf 3.37.0-rc3 in paket.dependencies and paket.lock; deps/paket.main.bzl regenerated with bazel run //dotnet:paket2bazel (sha512 checked against nuget.org). C# docs updated.
  • patches/windows_support/reproducible_extensions.patch (owner decision ci: scheduled run is failing #9216): msvc_runtime and windows_sdk return reproducible = True when their payloads are pinned by integrity, so the lock no longer records the //cc:extensions.bzl and @windows_support entries. python_budget.json lock_extensions 22 -> 20.
  • tools/testing/nested_cache/harness.txt and its lock re-recorded with --config=nested_record (linux_x86_64).
  • MODULE.bazel.lock regenerated with bazel mod deps --lockfile_mode=update.

Tests (linux_x86_64):

  • Pass: //core/modules/... (incl. versions_contract, python_budget_test), //patches/..., //third_party/dotnet/..., //cli/depcheck/..., //csharp/..., //dotnet/..., //gazelle/protobuf/..., //cli/adopt/..., //tools/testing:nested_bazel_harness_test (record mode).
  • Not from this change: //patches:update_readme_test (main: fmt has no override in MODULE.bazel); //patches/llvm/tests:macos_sdk_symlinks_test fails on the linux host.

Evidence: //tools/testing/hermetic:cpp_rust linux_x86_64 run 43568179584 red in fetch_coverage: @@rules_dx+//gazelle/julia:stdlib_dump_upstream: no such attribute 'package_name' in 'julia_binary' rule (root-only rules_julia patch, not this change). Waits on #12641.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

)

protobuf 37.0-rc3 pins its crate_universe call with a lockfile, so
consumers' `bazel mod` evaluates it. grpc 1.85.1 gets a patch adding
upb/reflection:reflection_cc next to upb/reflection for def.hpp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…tensions, harness re-record (part of #11443)

- third_party/dotnet: Google.Protobuf 3.37.0-rc3 in paket.dependencies and paket.lock, deps regenerated with //dotnet:paket2bazel.
- patches/windows_support/reproducible_extensions.patch: msvc_runtime and windows_sdk report reproducible when pinned, so MODULE.bazel.lock drops them; python budget lock_extensions 22 -> 20.
- tools/testing/nested_cache: harness re-recorded with --config=nested_record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Evidence: //tools/testing/hermetic:cpp_rust linux_x86_64 https://github.com/devhusdk/rules_dx/actions/runs/43568179584

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Evidence run 43568179584 failed before protobuf matters: consumer analysis of gazelle/julia uses the root-only package_name attr (rules_julia patch). Fixed by #12641; re-run cpp_rust evidence after it merges.

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

#12641 has landed on main, which fixes the julia package_name failure from run 43568179584. Rebase on main and re-run cpp_rust evidence before merging.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant