Repository navigation
golden_export check: record-level comparison, FILLER-only differences counted (Part of #4052) - #8259
Merged
Merged
Conversation
…youts, FILLER-only differences counted (Part of #4052) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Nov 11, 2026
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.
Part of #4052 (slice 15).
golden_export.py checknow compares a dataset record by record when the golden export carries its field layout.exportwritesrecords(reclen pluslayout_fieldsrows for each fixed-record dataset the case compares) andcode_pageinto the manifest, only when the case has such a dataset. On a byte difference,checkruns the harness's owndiff_records. It accepts the run only when no field differs and the record counts match. A FILLER difference is accepted and counted in the notes, as the harness does. A C vs F sign-nibble difference or a changed byte outside the layout still fails. This is the case slice 14 found on posttran (TCATBALF FILLER x22).Class / Sibling gaps
Class: comparisons the harness applies that
golden_export checklacked. Handled: C10 sign (#7824), SYSOUT by lines (#7824), record fields with FILLER (this PR). Sibling gaps: (1) generatedGoldenCheck.javastays byte-exact plus C10 and SYSOUT, soprove-mutantstill fails the unmutated port on a FILLER-only dataset; it needs a Java mirror ofdiff_records(a different mechanism and too large for this slice). (2) V-format datasets (diff_varseq) are not laid out. (3) The case'scomp5_byte_orderdeclared difference is not carried. (4) Not run against real posttran: it needs the corpus clone and Docker.Remaining slices
GoldenCheck.javarecord comparison (files:golden_export.py, its test). 2. V-format layouts andcomp5_byte_order. 3. Re-run the posttran golden-verify sweep with the new check.Tests:
tests/tools/test_golden_export.py(32 pass, 4 new: layouts carried only when given, FILLER-only accepted and counted, field/short/long still fail, no layout stays byte-exact). Hand-written files: 2.🤖 Generated with Claude Code