Skip to content

Fix #339: drop Bazel 7 support and bump protobuf to 35.0#364

Open
tinder-maxwellelliott wants to merge 1 commit into
masterfrom
claude/infallible-shannon-4462f2
Open

Fix #339: drop Bazel 7 support and bump protobuf to 35.0#364
tinder-maxwellelliott wants to merge 1 commit into
masterfrom
claude/infallible-shannon-4462f2

Conversation

@tinder-maxwellelliott
Copy link
Copy Markdown
Collaborator

Summary

  • Drops Bazel 7 from CI (test-jre11-run-example matrix), BCR presubmit, and the README's stated prerequisites (now Bazel 8.x or higher).
  • Bumps protobuf from 33.435.0 in MODULE.bazel, and com_google_protobuf from 26.135.0 in repositories.bzl. Protobuf 35.0 requires Bazel >= 8.0.0, which is why the Bazel 7 drop is bundled here.
  • Refreshes MODULE.bazel.lock to pin protobuf 35.0 and the transitive bumps it pulls in (apple_support 2.3.0, rules_cc 0.2.15, rules_kotlin 2.3.20, rules_rust 0.69.0, jsoncpp 1.9.6.bcr.2).

What this does for #339 / protobuf#20760

Protobuf 35.0 adds the runtime check that lets the Java runtime fall back gracefully under --sun-misc-unsafe-memory-access=deny, but it still calls sun.misc.Unsafe::arrayBaseOffset on its happy path, so the JDK 24+ deprecation warning is not yet silenced by this bump alone. Upstream protobuf#20760 is still open; the protobuf team has stated the full removal from JavaProto-full is targeted for a future minor release. This PR puts bazel-diff on the latest line so picking up that fix becomes a one-line change.

Test plan

  • bazel build //cli:bazel-diff_deploy.jar succeeds locally
  • Bundled com/google/protobuf/UnsafeUtil.class is the v35.0 version (contains the new --sun-misc-unsafe-memory-access=allow fallback strings)
  • Non-E2E test suite passes locally
  • Spot-check on bzlmod E2E proto-parsing test passes
  • CI green across the new Bazel 8.x / 9.x matrix entries (Ubuntu, macOS, Windows)
  • Coverage gate still passes

🤖 Generated with Claude Code

Bazel 7 is removed from CI (test-jre11-run-example matrix), BCR
presubmit, and README prerequisites. With Bazel 7 gone, protobuf can
move up to 35.0 (which requires Bazel >=8.0.0), picking up the
sun.misc.Unsafe graceful-fallback path. The full Unsafe removal
protobuf#20760 is still pending upstream, so the bump is the
preparatory step rather than the final silencing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant