Skip to content

Update gRPC dependencies to 2.83.0 - #68531

Merged
wtgodbe merged 6 commits into
mainfrom
copilot/update-grpc-dependencies
Aug 24, 2026
Merged

wtgodbe merged 6 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.

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

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.

wtgodbe and others added 2 commits August 14, 2026 10:51
Ensure generated gRPC projects use the NativeAOT-compatible Google.Protobuf version instead of the older transitive dependency.

Co-authored-by: Copilot <[email protected]>

@danroth27 danroth27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@danroth27

Copy link
Copy Markdown
Member

@SamMonoRT @JamesNK I think main is now tracking .NET 12, correct? I assume we'll backport this gRPC dependency update for .NET 11?

@JamesNK

JamesNK commented Aug 20, 2026

Copy link
Copy Markdown
Member

I don't know if a 2.84.0 dependency will ship in time for RC2. If it isn't out in time then we could pump the dependency versions as a .NET 11 point release.

There aren't any security issues in the current dependencies, they're just quite old. And people have the option to update them themselves. It's not urgent/important.

@JamesNK JamesNK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like this has been fixed by including a specific Google.Protobuf version in the template. I think that's a good interim fix and it can be removed in the future once Grpc.AspNetCore is updated.

@wtgodbe
wtgodbe merged commit 9e6f358 into main Aug 24, 2026
30 checks passed
@wtgodbe
wtgodbe deleted the copilot/update-grpc-dependencies branch August 24, 2026 17:43
@wtgodbe

wtgodbe commented Aug 24, 2026

Copy link
Copy Markdown
Member

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

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

6 participants