Skip to content

Update MessagePack - #67107

Merged
wtgodbe merged 2 commits into
mainfrom
wtgodbe/MPackMain
Jun 10, 2026
Merged

wtgodbe merged 2 commits into
mainfrom
wtgodbe/MPackMain

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Jun 10, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 00:16
@wtgodbe
wtgodbe requested review from a team, BrennanConroy and halter73 as code owners June 10, 2026 00:16
@github-actions github-actions Bot added the area-signalr Includes: SignalR clients and servers label Jun 10, 2026

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 the repo’s MessagePack dependency version and adds a regression test in SignalR’s MessagePack protocol test suite to cover parsing behavior when skipping a deeply nested result payload.

Changes:

  • Bump MessagePackVersion from 2.5.187 to 2.5.301.
  • Add a new MessagePack protocol test to validate parsing/skipping behavior with an extremely deeply nested result structure.

Reviewed changes

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

File Description
src/SignalR/common/SignalR.Common/test/Internal/Protocol/MessagePackHubProtocolTestBase.cs Adds a regression test for skipping a deeply nested result payload during parsing.
eng/Versions.props Updates the centralized MessagePack package version used across the repo.

Comment on lines +263 to +282
[Fact]
public void SkipResult_WithDeeplyNestedStructure()
{
var expectedMessage = CompletionMessage.WithResult("xyz", null);
// Verify that the input binary string decodes to the expected MsgPack primitives
var bytes = new byte[] { ArrayBytes(5),
3, // Completion message
0x80, // Empty headers
StringBytes(3), (byte)'x', (byte)'y', (byte)'z', // invocation ID
3, // result type; non-void
}
.Concat(Enumerable.Repeat((byte)0x91, 100_000).Append((byte)0xC0)) // 100,000 nested arrays with a null at the end
.ToArray();

bytes = Frame(bytes);

var data = new ReadOnlySequence<byte>(bytes);
// Null types for TestBinder so parser will skip over the result (treats it as an unknown invocation ID)
Assert.True(HubProtocol.TryParseMessage(ref data, new TestBinder(), out var message));
}
@wtgodbe

wtgodbe commented Jun 10, 2026

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 4 pipeline(s).

@wtgodbe

wtgodbe commented Jun 10, 2026

Copy link
Copy Markdown
Member Author

/ba-g unrelated

@wtgodbe
wtgodbe merged commit 81f91ea into main Jun 10, 2026
16 of 25 checks passed
@wtgodbe
wtgodbe deleted the wtgodbe/MPackMain branch June 10, 2026 17:11
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants