Skip to content

chore: bump bazel modules#1526

Open
loeffel-io wants to merge 2 commits into
grpc:masterfrom
loeffel-io:chore/refresh-bazel-modules
Open

chore: bump bazel modules#1526
loeffel-io wants to merge 2 commits into
grpc:masterfrom
loeffel-io:chore/refresh-bazel-modules

Conversation

@loeffel-io
Copy link
Copy Markdown

@loeffel-io loeffel-io commented Mar 24, 2026

to bring the grpc-web module finally to bcr we should bump the grpc-web bazel modules

  • bump module version to 2.0.2
  • bump protobuf to 29.1
  • removed not longer required java single override
  • removed rules_proto due deprecation
  • migrated x_proto_library targets to protobuf
  • set default bazel version to 8.6.0

after this we can bump bazelbuild/bazel-central-registry#2541

* bump protobuf to 29.1
* removed not longer required java single override
* removed rules_proto due deprecation
* migrated x_proto_library targets to protobuf
* set default bazel version to 8.6.0
Copilot AI review requested due to automatic review settings March 24, 2026 06:37
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Mar 24, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repository’s Bazel module/dependency setup to align with newer protobuf/Bazel tooling and remove deprecated proto rules usage.

Changes:

  • Bumps protobuf Bazel module dependency to 29.1 and updates rules_cc to 0.2.17.
  • Removes rules_proto and the no-longer-needed grpc-java single-version override.
  • Adds .bazelversion to default the repo to Bazel 8.6.0, and updates an example BUILD file to use protobuf-provided proto rules.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
net/grpc/gateway/examples/echo/BUILD.bazel Switches proto_library/cc_proto_library loads to protobuf-provided bzl files.
MODULE.bazel Updates module/dependency versions and removes deprecated/obsolete module entries.
.bazelversion Pins the default Bazel version to 8.6.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread MODULE.bazel
name = "grpc-web",
version = "1.6.0",
compatibility_level = 1,
version = "2.0.2",
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

module() no longer sets compatibility_level. Since the module version is now 2.0.2, leaving compatibility_level unset defaults it to 0, which can break Bazel module version resolution/compatibility semantics for downstream users. Consider setting compatibility_level = 2 (or otherwise explicitly documenting/choosing the intended compatibility level) to match the major versioning scheme previously used here (1.6.0 had compatibility_level = 1).

Suggested change
version = "2.0.2",
version = "2.0.2",
compatibility_level = 2,

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The attribute 'compatibility_level' in module() is a no-op and will be removed in a future Bazel release. Please remove it from your MODULE.bazel file

we should remove it

Copy link
Copy Markdown
Collaborator

@sampajano sampajano left a comment

Choose a reason for hiding this comment

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

Thanks for working on this change, @loeffel-io ! 😃

@Vuhag123 Could you also take a look and help monitor this process?

@sampajano sampajano enabled auto-merge (squash) March 24, 2026 23:12
@Vuhag123
Copy link
Copy Markdown
Collaborator

Thanks for working on this change, @loeffel-io ! 😃

@Vuhag123 Could you also take a look and help monitor this process?

ok Eryu will look into this.

auto-merge was automatically disabled March 25, 2026 05:46

Head branch was pushed to by a user without write access

@loeffel-io
Copy link
Copy Markdown
Author

missed the echo example rules_cc load
buildifier should be happy now
@sampajano can you please rerun the tests

@loeffel-io
Copy link
Copy Markdown
Author

kokoro looks good now - fails for the same reason as last master commit 1bcab08

@sampajano
Copy link
Copy Markdown
Collaborator

@loeffel-io Great, Thanks!

@Vuhag123 Could you look into the error that is happening and whether it's a real failure on the main branch? Thanks!

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.

5 participants