Mark every Cult document [MessagePackObject]
PlayerData, CultMeshSimulationFact, the Networking interop peer's CultNetInteropNote, the cultnet-py benchmark item and the Caching test documents lacked [MessagePackObject]. Only the generated codec could serialize them; MessagePackSerializer refuses such types. Non-public test documents take [MessagePackObject(AllowPrivate = true)], as consumer internal documents already do, and ConditionalCommitTests.Slow marks its private backing fields [IgnoreMember]. Same [Key]s, so payloads are unchanged: a pre/post probe over the Networking assembly and both interop peers showed identical schema id, content hash and payload bytes for all 9 documents, PlayerData equal once its Guid.NewGuid() default id is masked. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
30bf7fd267
commit
a5d1be650d
8 changed files with 19 additions and 2 deletions
|
|
@ -911,6 +911,7 @@ namespace GameCult.Caching.Tests
|
|||
}
|
||||
|
||||
[CultDocument("tests.conditional_counter", "tests.conditional_counter.v1")]
|
||||
[MessagePackObject(AllowPrivate = true)]
|
||||
internal sealed class Counter
|
||||
{
|
||||
[Key(0)]
|
||||
|
|
@ -922,6 +923,7 @@ namespace GameCult.Caching.Tests
|
|||
}
|
||||
|
||||
[CultDocument("tests.conditional_tally", "tests.conditional_tally.v1")]
|
||||
[MessagePackObject(AllowPrivate = true)]
|
||||
internal sealed class Tally
|
||||
{
|
||||
[Key(0)]
|
||||
|
|
@ -931,14 +933,15 @@ namespace GameCult.Caching.Tests
|
|||
|
||||
// Loading a record with Blocks set waits on Pause, which parks a directory pull inside its page load.
|
||||
[CultDocument("tests.conditional_slow", "tests.conditional_slow.v1")]
|
||||
[MessagePackObject(AllowPrivate = true)]
|
||||
internal sealed class Slow
|
||||
{
|
||||
internal static volatile ManualResetEventSlim? Pause;
|
||||
internal static readonly ManualResetEventSlim Entered = new();
|
||||
internal static volatile bool Paused;
|
||||
internal static volatile bool ReadWhilePaused;
|
||||
private bool _blocks;
|
||||
private string _name = string.Empty;
|
||||
[IgnoreMember] private bool _blocks;
|
||||
[IgnoreMember] private string _name = string.Empty;
|
||||
|
||||
[Key(0)]
|
||||
[CultName]
|
||||
|
|
|
|||
Loading…
Reference in a new issue