Skip to content

equivalence: compare_files takes the declared COMP-5 reversal (Part of #7646) - #7733

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7646-slice5-cics-files
Nov 4, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7646-slice5-cics-files

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7646. Stacked on #7729 (slice 4; not yet merged: this branch merges its head, so the diff against main also shows slice 4 until it lands).

What

equivalence_cics.compare_files (the CICS file-update comparator) takes the declared COMP-5 reversal. When the case declares comp5_byte_order and the file's dataset names a copybook, each oracle record is read through common.comp5_zos_record (z/OS big-endian image) before comparison, and diff_records(..., oracle_comp5_reversed=True) names the differing fields. Raw byte equality no longer short-circuits under the declaration: a port that kept the oracle's little-endian image is a difference, never a silent pass. An undeclared case, or a dataset with no copybook (no field list to reverse), compares exactly as before.

Files (2 hand-written): tests/tools/equivalence_cics.py, tests/tools/test_equivalence_declared_differences.py (new test: declared equal, undeclared still differs, little-endian port not equal under the declaration, a real value difference still names its field).

Class / Sibling gaps

Class: comparators that read oracle bytes holding COMP-5 fields and so need the declared z/OS reversal (#7646 C7). Handled: fixed-record datasets (slice 3), diff_varseq, CALL compare_item / compare_dto (slice 4), CICS compare_files (this PR). Same mechanism, one call site each.

Remaining slices

Sibling gaps: the compare_files reversal covers only datasets whose case names a copybook; a CICS file with no copybook has no field list, so a declared case over it is compared raw (as undeclared), not refused. Whether to refuse that by name belongs to the real-proof slice.

Gates: pr_gates --fast and --ratchets --fast 9/9 pass; --ratchets 9/9 pass (estate and fact-crosscheck rerun after sync-pins.sh put the estate-crucible on its v0.7.0 pin).

🤖 Generated with Claude Code

squid-protocol and others added 3 commits November 4, 2026 14:57
…olds them under a declared comp5_byte_order (Part of #7646)

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 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 20:19
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 20:21
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 4, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 21:02
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 56ddd68 into main Nov 4, 2026
48 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7646-slice5-cics-files branch November 4, 2026 22:05
squid-shepherd Bot pushed a commit that referenced this pull request Nov 4, 2026
…l (Part of #7646, stacked on #7733) (#7734)

* equivalence: declared COMP-5 reversal at diff_varseq and the CALL item comparator (Part of #7646)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* equivalence: compare_files reads the oracle's COMP-5 fields as z/OS holds them under a declared comp5_byte_order (Part of #7646)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* equivalence: diff_db / diff_gsam read the oracle's COMP-5 fields as z/OS holds them under a declared comp5_byte_order (Part of #7646)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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