Repository navigation
test: pin hierarchical record IDs after local insertion - #133
Conversation
ip332
left a comment
There was a problem hiding this comment.
Independent technical review — GO for #129's test design, conditional on exact-head CI finishing green, at 8572609717006420b19712297d06cb7120e42af5.
Reviewed the complete one-file patch in tests/interop/hierarchical_record_id_test.cpp. The fixture preserves three multi-record namespaces and inserts b.Hotel in domain b between existing locals. Explicit hexadecimal maps pin domain assignments and the exact expected shift of b.Mike and b.Zulu, while b.Alpha and records in a/c remain unchanged. Existing compiler/QBS helpers are reused; repeated compilation and changed configuration schema_id are checked. The reported reversed-sort mutation failed the new mapping assertions, then the source was restored. There are no production/format/identity changes. Exact-head native validation reported 75/75 CTests.
At time of review, workflow 45077396557 showed Coverage baseline and Cortex-M completed successfully, while Build and test and clang-tidy were still in progress; Benchmarks skipped by existing PR policy. Do not merge until all required CI succeeds on this exact SHA. If green and head unchanged, this review supports squash merge and normal #129 closure. #130 remains separate and should be started only after merge/post-merge baseline confirmation. This is a positive technical-review COMMENT (the connected GitHub account is the PR author), not a formal GitHub APPROVE; no merge performed.
Closes #129
Adds a maintained hierarchical-ID regression for inserting
b.Hotelbetweenb.Alphaandb.Mikewhile keeping three multi-record namespaces unchanged. Explicit hexadecimal mappings pin the new local ID, both later-local shifts, the unchanged earlier local, every unaffected-domain record, and stable domain IDs. Repeated root compilations must reproduce each mapping and schema identity; adding the record must change schema identity.Uses the existing compiler/QBS helpers and CTest target. No allocator, backend, runtime, wire-format, identity-algorithm or API changes.
Validation:
#130 remains separate and will start only after independent review and merge of this PR. Auto-merge must remain disabled.