Repository navigation
equivalence: compare_files takes the declared COMP-5 reversal (Part of #7646) - #7733
Merged
Merged
Conversation
…m comparator (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…laxy into churn/7646-20261104T1959Z
…olds them under a declared comp5_byte_order (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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]>
This was referenced Nov 5, 2026
Merged
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 #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 declarescomp5_byte_orderand the file's dataset names a copybook, each oracle record is read throughcommon.comp5_zos_record(z/OS big-endian image) before comparison, anddiff_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
diff_db/diff_gsam(IMS comparators): same reversal, own layouts._compare_tables.run_casetext-item compare (needs the layout).Sibling gaps: the
compare_filesreversal 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
--fast9/9 pass;--ratchets9/9 pass (estate and fact-crosscheck rerun aftersync-pins.shput the estate-crucible on its v0.7.0 pin).🤖 Generated with Claude Code