Skip to content

test: pin hierarchical record IDs after local insertion - #133

Merged
ip332 merged 1 commit into
mainfrom
test/129-record-insertion-stability
Nov 22, 2026
Merged

ip332 merged 1 commit into
mainfrom
test/129-record-insertion-stability

Conversation

@ip332

@ip332 ip332 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Closes #129

Adds a maintained hierarchical-ID regression for inserting b.Hotel between b.Alpha and b.Mike while 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:

  • New focused regression passed; existing hierarchical_record_id_test CTest passed.
  • Mutation check: temporarily reversed the actual allocator's local-name comparator. The new test failed on mapping assertions; restored the allocator byte-for-byte and reran the focused suite successfully. No mutation is included in this commit.
  • Full native exact-HEAD validation via scripts/quarry-validate: 75/75 CTests passed on 8572609.
  • Linux CI: 75/75 CTests passed; coverage: 70/70 and baseline guard passed. Clang 18 interoperability and conformance (2/2 Debug, 2/2 ASan/UBSan) and GCC LTO identity validation passed.
  • clang-tidy and Cortex-M Cross Build passed. Benchmarks have the existing PR-policy skip.
  • CI run: https://github.com/ip332/quarry/actions/runs/45077396557
  • Commit hooks and git diff --check passed.

#130 remains separate and will start only after independent review and merge of this PR. Auto-merge must remain disabled.

@ip332 ip332 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ip332
ip332 merged commit 51f11d3 into main Nov 22, 2026
5 checks passed
@ip332
ip332 deleted the test/129-record-insertion-stability branch November 22, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a regression for insertion before existing local record IDs

1 participant