Skip to content

golden_export check: record-level comparison, FILLER-only differences counted (Part of #4052) - #8259

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4052-20261111T0141Z
Nov 11, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4052-20261111T0141Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4052 (slice 15).

golden_export.py check now compares a dataset record by record when the golden export carries its field layout. export writes records (reclen plus layout_fields rows for each fixed-record dataset the case compares) and code_page into the manifest, only when the case has such a dataset. On a byte difference, check runs the harness's own diff_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 check lacked. Handled: C10 sign (#7824), SYSOUT by lines (#7824), record fields with FILLER (this PR). Sibling gaps: (1) generated GoldenCheck.java stays byte-exact plus C10 and SYSOUT, so prove-mutant still fails the unmutated port on a FILLER-only dataset; it needs a Java mirror of diff_records (a different mechanism and too large for this slice). (2) V-format datasets (diff_varseq) are not laid out. (3) The case's comp5_byte_order declared difference is not carried. (4) Not run against real posttran: it needs the corpus clone and Docker.

Remaining slices

  1. GoldenCheck.java record comparison (files: golden_export.py, its test). 2. V-format layouts and comp5_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

…youts, FILLER-only differences counted (Part of #4052)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 11, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 11, 2026 01:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant