GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — test(serialization): cover multidimensional array copying by ReubenBond · Pull Request #10880 · dotnet/orleans Conversation
|
| Severity | Finding |
|---|---|
test/Orleans.Serialization.UnitTests/MultiDimensionalArrayTests.cs — Array.CreateInstance(typeof(MyValue), [1, 0], [int.MaxValue, int.MinValue]) is not portable… |
Adds targeted unit tests and runtime fixes to improve correctness and coverage for multi-dimensional array cloning/serialization within Orleans’ serialization subsystem, addressing previously uncovered and complex MultiDimensionalArrayCopier<T>.DeepCopy behavior.
Changes:
MultiDimensionalArrayCopier<T>.DeepCopy to preserve array lower bounds and to record shallow-copyable array clones in the copy context to maintain alias stability.MultiDimensionalArrayCodec<T> to explicitly reject serialization of multi-dimensional arrays with non-zero lower bounds.| File | Description |
|---|---|
| test/Orleans.Serialization.UnitTests/MultiDimensionalArrayTests.cs | Adds focused tests covering deep copy and serialization contracts for multi-dimensional arrays. |
| src/Orleans.Serialization/Codecs/MultiDimensionalArrayCodec.cs | Preserves lower bounds during deep copy, records shallow clones in copy context, and rejects non-zero-lower-bound array serialization. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
fbee35a to
228bb3d
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Review tier: Lite
Findings: 1
| Severity | Finding |
|---|---|
src/Orleans.Serialization/Codecs/MultiDimensionalArrayCodec.cs — EnsureZeroLowerBounds is currently executed before reference handling, so it will run even when the… |
| Severity | Finding |
|---|---|
test/Orleans.Serialization.UnitTests/MultiDimensionalArrayTests.cs — Array.CreateInstance(typeof(MyValue), [1, 0], [int.MaxValue, int.MinValue]) is not portable… View comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Code coverage78.50% line coverage - 99,402 / 126,627 lines Coverage details
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Review tier: Lite
Findings: None
| Severity | Finding |
|---|---|
src/Orleans.Serialization/Codecs/MultiDimensionalArrayCodec.cs — EnsureZeroLowerBounds is currently executed before reference handling, so it will run even when the… View resolved comment |
|
test/Orleans.Serialization.UnitTests/MultiDimensionalArrayTests.cs — Array.CreateInstance(typeof(MyValue), [1, 0], [int.MaxValue, int.MinValue]) is not portable… View resolved comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.