Skip to content

Conversation

@SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Oct 8, 2025

Fixes #37699

This PR removes the require_unimplemented_servers=false option that's passed to protoc when generating code.

That change requires Server structs to embed an UnimplemntedFoobarServer struct that's generated by protoc-gen-go-grpc, so this PR manually updates struct to embed the correct 'unimplemented' struct and updates generators to generate code that includes the required embedding.

Target Release

N/A

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Oct 8, 2025
@SarahFrench SarahFrench marked this pull request as ready for review October 8, 2025 12:14
@SarahFrench SarahFrench requested a review from a team as a code owner October 8, 2025 12:14
…ode from proto files. Run `make protobuf`.

This allows require_unimplemented_servers to default to true, and the generated code shows the impacts of that.
…and skip generating code for the `mustEmbedUnimplementedFoobarServer` method that is implemented via that embedding.
@SarahFrench SarahFrench force-pushed the sarah/set-require_unimplemented_servers=true branch from 6967215 to 44d76a4 Compare October 8, 2025 13:27
@SarahFrench
Copy link
Member Author

Thanks!

@SarahFrench SarahFrench merged commit 2657a4d into main Oct 9, 2025
7 checks passed
@SarahFrench SarahFrench deleted the sarah/set-require_unimplemented_servers=true branch October 9, 2025 10:18
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should we set require_unimplemented_servers=true when generating gRPC-related code?

2 participants