Repository navigation
equivalence: IMS diff_db / diff_gsam take the declared COMP-5 reversal (Part of #7646, stacked on #7733) - #7734
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]>
…to churn/7646-20261104T2018Z
…/OS holds them under a declared comp5_byte_order (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
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. |
…018Z # Conflicts: # tests/tools/test_equivalence_declared_differences.py
|
CI shepherd: the head of this PR (c4ce04c) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
PR #7734 @ c4ce04c: 2 failed check(s) == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (6407fbb) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
1 similar comment
|
No description provided. |
Part of #7646, slice 6. Stacked on #7733 (branch
churn/7646-slice5-cics-files; retarget/merge after it).What
diff_dbanddiff_gsam(IMS,tests/tools/equivalence_ims.py) take the declaredcomp5_byte_orderreversal, same pattern as #7725, #7729 and #7733. When the case declares it and the segment (or GSAM record) has a copybook layout, the oracle's record is reversed per COMP-5 field (comp5_zos_record) before the raw-equality shortcut, anddiff_records(..., oracle_comp5_reversed=True)reports the field diffs. Raw equality no longer passes under the declaration: a port keeping the oracle's little-endian image differs. Undeclared cases are byte-for-byte as before. Nothing is loosened.Class / Sibling gaps
Class: every comparator that reads an oracle record holding COMP-5 fields must read it as z/OS holds it under a declared
comp5_byte_order. Handled:diff_records(#7725),diff_varseq, CALLcompare_item/compare_dto(#7729),compare_files(#7733),diff_db,diff_gsam(this PR, both with a test). Sibling gaps:_compare_tables(not wired; needs its own table layout, own slice), CALLrun_casetext-item compare (needs layout), a real proof run under the switch, HFP byte view for COMP-1/2, census re-run. A segment with no copybook layout is still compared by bytes (no field map to reverse by); the declaration does not apply there.Remaining slices:
_compare_tables, CALL text-item compare, real proof under the switch, HFP view, census.File-cap exception: stacked on #7733, so the diff against main carries the base PRs files; this slice itself adds 2 hand-written files (equivalence_ims.py and its test).
Facts checked: #7733 was open at start (merged its head into this branch); tests
test_diff_db_and_diff_gsam_reverse_the_oracle_records_only_when_declared(both comparators) andtest_det_dli.pypass;pr_gates --fast9/9 and--ratchets9/9 (aftersync-pins.sh); pinned ruff 0.17.2 format clean. Two hand-written files; no golden / engine change.🤖 Generated with Claude Code