Repository navigation
Update MessagePack - #67107
Merged
Merged
Update MessagePack#67107
Conversation
BrennanConroy
approved these changes
Jun 10, 2026
Contributor
There was a problem hiding this comment.
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
MessagePackVersionfrom2.5.187to2.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)); | ||
| } |
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
Member
Author
|
/ba-g unrelated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.