Skip to content

Update gRPC dependencies to 2.83.0 - #68531

Open
SamMonoRT with Copilot wants to merge 5 commits into
mainfrom
copilot/update-grpc-dependencies
Open

Update gRPC dependencies to 2.83.0#68531
SamMonoRT with Copilot wants to merge 5 commits into
mainfrom
copilot/update-grpc-dependencies

Conversation

Copilot AI commented Aug 14, 2026

Copy link
Copy Markdown
Contributor
  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Update centrally managed gRPC dependencies.

Description

  • Package alignment

    • Update Grpc.AspNetCore, Grpc.AspNetCore.Server, Grpc.Auth, Grpc.Net.Client, and Grpc.Tools to 2.83.0.
    • Update Google.Protobuf to 3.31.1, matching the Grpc.AspNetCore dependency.
  • Tooling

    • Includes the ARM64-compatible Grpc.Tools release.

Co-authored-by: SamMonoRT <46026722+SamMonoRT@users.noreply.github.com>
Copilot AI changed the title [WIP] Update gRPC dependencies to latest versions Update gRPC dependencies to 2.83.0 Aug 14, 2026
Copilot AI requested a review from SamMonoRT August 14, 2026 13:24
@SamMonoRT
SamMonoRT marked this pull request as ready for review August 14, 2026 13:32
Copilot AI lite review requested due to automatic review settings August 14, 2026 13:32
@SamMonoRT
SamMonoRT requested review from a team and wtgodbe as code owners August 14, 2026 13:32
@SamMonoRT
SamMonoRT requested a review from JamesNK August 14, 2026 13:35

Copilot AI 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.

Pull request overview

Updates centrally managed gRPC-related package versions in eng/Versions.props to align the repository (including tooling and templates that consume these version properties) with the latest gRPC releases referenced by the linked issue, including the ARM64-compatible Grpc.Tools version.

Changes:

  • Bump Grpc.AspNetCore, Grpc.AspNetCore.Server, Grpc.Auth, Grpc.Net.Client, and Grpc.Tools version properties to 2.83.0.
  • Bump Google.Protobuf version property to 3.31.1 to match the intended dependency alignment.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@SamMonoRT

Copy link
Copy Markdown
Member

@copilot - please review the failures in Templates.Test.GrpcTemplateTest.GrpcTemplateNativeAot and Templates.Test.GrpcTemplateTest.GrpcTemplateProgramMainNativeAot and fix those accordingly

Co-authored-by: SamMonoRT <46026722+SamMonoRT@users.noreply.github.com>

Copilot AI commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

@copilot - please review the failures in Templates.Test.GrpcTemplateTest.GrpcTemplateNativeAot and Templates.Test.GrpcTemplateTest.GrpcTemplateProgramMainNativeAot and fix those accordingly

Fixed in 6ebf16b.

Root cause: Google.Protobuf 3.31.1 isn't NativeAOT-clean — RepeatedField<T>.TryGetArrayAsSpanPinnedUnsafe calls Marshal.SizeOf(Type), producing IL3050, which surfaced as error IL3053: Assembly 'Google.Protobuf' produced AOT analysis warnings and failed the dotnet publish --aot step of both tests.

The upstream fix (protocolbuffers/protobuf#21824) shipped in the 3.33.2 patch, so I bumped GoogleProtobufVersion to 3.33.6 (latest patch of that line). gRPC packages stay at 2.83.0, whose minimum Google.Protobuf requirement (3.31.1) is satisfied.

Validation:

  • Reproduced the IL3050/IL3053 failure with 3.31.1 and confirmed a warning-free NativeAOT publish with 3.33.6 for a gRPC service generated by Grpc.Tools 2.83.0; the published native binary starts and serves.
  • No public API removals between 3.31.1 and 3.33.6.
  • ./src/Grpc/build.sh builds clean; JsonTranscoding unit tests (295) and integration tests (24) pass.

Ensure generated gRPC projects use the NativeAOT-compatible Google.Protobuf version instead of the older transitive dependency.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.

Update gRPC dependencies to latest versions

4 participants