Repository navigation
Conversation
The raw DBV@ fields had bare letters (B, C, L1, L2, T) while the raw fields of the .db1 id map are named by byte offset (IdMapField65, IdMapField73). One value, two naming schemes. - Remove B, C, L1, L2, T and EventLevel from DbvDocument. The byte offsets of the domain events stay as BaseOffset, CurrentOffset and LastEventOffset; the reader checks every other raw value against the values always seen and reports deviations in Warnings, and Payload holds the raw bytes. - The vector tests now read the removed words back from the payload at their computed offsets, so the vectors still verify them. - List the removals in CompatibilitySuppressions.xml for the package validation against 0.1.0 and move the CHANGELOG entry under Breaking. Fixes #11.
This branch has not been deployed
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.
Fixes #11.
The raw values whose meaning is not known had two naming schemes in the public API: the fields of the
.db1id mapare named by byte offset (
Db1Document.IdMapField65,IdMapField73), the DBV@ block fields by bare letters(
DbvDocument.B,C,L1,L2,T). One value, two schemes.What changed
The scheme is: raw values of unknown meaning are named by byte offset; where the files confirm the role of a value,
it carries a role name; the rest stays in
Payload.DbvDocument:B,C,L1,L2,T,EventLevel(the last one named a value whose role the filesdo not confirm).
BaseOffset,CurrentOffset,LastEventOffset— the byte offsets of the domain events, whose relationsthe reader checks against the values always seen (the spec records them as confirmed);
Prologue,ListHeader,GuidRecords,C9Records,Sections,Payloadunchanged.Warnings(word C, T[1], T[2], T[3], T[4], T[0] as an error);Payloadholds all raw bytes.Payloadat their computed offsets, so the private vectors stillverify them word by word.
src/TdbIO/CompatibilitySuppressions.xmlfor the package validation against 0.1.0 (theflow CONTRIBUTING.md already describes); the CHANGELOG entry is under Breaking. When 0.2.0 ships, the baseline
moves to it and the suppressions shrink.
Verification
dotnet test: TdbIO.Tests 493 passed / 38 skipped (private inputs) on net8.0 and net10.0; TdbIO.Scene.Tests 13/13.dotnet pack TdbIO.slnx -c Releasepasses the package validation with the suppression file; without it the packfails with exactly the five CP0002 removals per target framework.
BuildNativeCoreOnly=truebuild passes.