Skip to content

[build] Source reflection and channelz v1 schemas from BCR - #42898

Closed
stunner-07 wants to merge 4 commits into
grpc:masterfrom
stunner-07:buildMigration
Closed

stunner-07 wants to merge 4 commits into
grpc:masterfrom
stunner-07:buildMigration

Conversation

@stunner-07

@stunner-07 stunner-07 commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

[build] Source reflection and channelz v1 schemas authoritatively from BCR (@grpc_proto)
Transition Server Reflection (v1/v1alpha) and Channelz v1 protocol buffer schemas
from local physical files in src/proto/grpc/... to authoritative Bzlmod sourcing
from the Bazel Central Registry (@grpc_proto).

go/grpc-proto-schema-deduplication

@stunner-07 stunner-07 added the release notes: no Indicates if PR should not be in release notes label Jul 6, 2026
@stunner-07 stunner-07 assigned stunner-07 and unassigned yuanweiz Jul 6, 2026
@stunner-07
stunner-07 marked this pull request as ready for review July 6, 2026 19:41
@stunner-07
stunner-07 marked this pull request as draft July 6, 2026 19:41
@stunner-07
stunner-07 force-pushed the buildMigration branch 2 times, most recently from a5d5229 to 9bc226c Compare July 7, 2026 05:38
@stunner-07
stunner-07 force-pushed the buildMigration branch 13 times, most recently from d7bc58b to f668415 Compare July 8, 2026 11:26
@yuanweiz

Copy link
Copy Markdown
Contributor

/gemini review

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

Copy link
Copy Markdown
Contributor

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 integrates the external grpc-proto repository as a submodule and dependency across multiple build systems, removing local copies of channelz.proto and reflection.proto and updating generated files to import them from the new external location. The review feedback highlights three issues: first, <grpc/support/port_platform.h> must be included first in channelz_service.h to avoid compilation failures; second, there is a commit mismatch for the grpc_proto dependency between WORKSPACE and other configuration files; and third, the path search logic in generate_cc.bzl should be made more robust to prevent incorrect partial path matches.

Comment thread WORKSPACE Resolved
Comment thread bazel/generate_cc.bzl Resolved

@yuanweiz yuanweiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for this PR. I think it's on the right track, though I've got a few questions:

  1. Is this the first of a series of PRs or is this the final work? I'm comparing grpc and grpc-proto there seems to be other duplicate proto files such as grpc/lb/v1/load_balancer.proto.
  2. What do we plan to do with copy.bara.sky file?

@yuanweiz

Copy link
Copy Markdown
Contributor

Also, you can replace the http://shortn/ link in PR description with a golink, since shortn link can expire over time.

@stunner-07

Copy link
Copy Markdown
Contributor Author

Thanks for this PR. I think it's on the right track, though I've got a few questions:

  1. Is this the first of a series of PRs or is this the final work? I'm comparing grpc and grpc-proto there seems to be other duplicate proto files such as grpc/lb/v1/load_balancer.proto.
  2. What do we plan to do with copy.bara.sky file?

Thanks for the review!

  1. Yes, We are starting by migrating channelz and reflection first to establish and validate the Bzlmod, CMake, and CI distribution pipeline across OSS and internal builds.
  2. copy.bara.sky mechanics: Details on the Copybara transformations required for Piper synchronization are documented here of our doc .

@stunner-07
stunner-07 requested a review from yuanweiz July 14, 2026 10:14
stunner-07 added a commit to stunner-07/grpc that referenced this pull request Jul 21, 2026
stunner-07 added a commit to stunner-07/grpc that referenced this pull request Jul 21, 2026
stunner-07 added a commit to stunner-07/grpc that referenced this pull request Jul 21, 2026
stunner-07 added a commit to stunner-07/grpc that referenced this pull request Jul 21, 2026
stunner-07 added a commit to stunner-07/grpc that referenced this pull request Jul 21, 2026
copybara-service Bot pushed a commit that referenced this pull request Jul 22, 2026
Add grpc-proto submodule and Bazel dependency (#42898 step 1)

Closes #43035

PiperOrigin-RevId: 952288403
grohman-hub pushed a commit to grohman-hub/grpc that referenced this pull request Jul 23, 2026
Add grpc-proto submodule and Bazel dependency (grpc#42898 step 1)

Closes grpc#43035

PiperOrigin-RevId: 952288403
grohman-hub pushed a commit to grohman-hub/grpc that referenced this pull request Jul 23, 2026
Add grpc-proto submodule and Bazel dependency (grpc#42898 step 1)

Closes grpc#43035

PiperOrigin-RevId: 952288403
grohman-hub pushed a commit to grohman-hub/grpc that referenced this pull request Jul 23, 2026
Add grpc-proto submodule and Bazel dependency (grpc#42898 step 1)

Closes grpc#43035

PiperOrigin-RevId: 952288403
@copybara-service copybara-service Bot mentioned this pull request Jul 27, 2026

@yuanweiz yuanweiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved the imported cl/957023707

copybara-service Bot pushed a commit that referenced this pull request Aug 6, 2026
COPYBARA_INTEGRATE_REVIEW=#42898 from stunner-07:buildMigration c215a1c
PiperOrigin-RevId: 960247428
@stunner-07 stunner-07 closed this Aug 6, 2026
@stunner-07
stunner-07 deleted the buildMigration branch August 11, 2026 09:09
asheshvidyut pushed a commit to PeterZhizhin/grpc that referenced this pull request Nov 12, 2026
Add grpc-proto submodule and Bazel dependency (grpc#42898 step 1)

Closes grpc#43035

PiperOrigin-RevId: 952288403
asheshvidyut pushed a commit to PeterZhizhin/grpc that referenced this pull request Nov 12, 2026
COPYBARA_INTEGRATE_REVIEW=grpc#42898 from stunner-07:buildMigration c215a1c
PiperOrigin-RevId: 960247428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants