Repository navigation
golden_export: a batch case's COBOL outputs as golden files, byte-exact Java check (Part of #4052) - #7545
Merged
Conversation
…ct check of a Java run (Part of #4052) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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.
Slice 1 of #4052:
tests/tools/golden_export.pyexports a proven plain batch case's COBOL outputs as golden files (export CASE --out DIR: one run for the case plus one per fault run,golden.jsonmanifest with RETURN-CODE / ABEND, bytes and sha256 per DD) andcheck DIR --java JAVA_DIRcompares a Java run laid out the same way, byte for byte. Stdlib only. Byte equality is stricter than the harness comparison (never looser): a difference the harness would accept is reported as a difference. After an abend, datasets are not compared, as incompare_run.Design decision: reuse the harness's own
run_cobol/selected_faultsso the golden outputs are exactly what the proof compared against, rather than a second COBOL driver.Checklist: partial [c:4b726470] -- field-level comparison with declared differences (#4051), the generated JUnit class per case, the Java-side dump into the check's layout, CICS / CALL / job / Db2 case kinds, and "fails on a mutant the proof kills".
Class / Sibling gaps
Class: case kinds the golden export must cover (batch plain, batch Db2, CICS scenarios, CALL, job chains) and the comparison the regression check must apply. Handled here: plain batch (no Db2) with its fault runs, byte-exact. Sibling gaps (not done, different mechanism: each reads a different oracle shape and the 5-file limit): batch Db2 (tables as outputs,
equivalence_db2), CICS (events,equivalence_cics.run_case), CALL (equivalence_call), job (equivalence_job), decimal-aware field comparison and declared differences (compare_run, #4051), JUnit generation (equivalence_java.equivalence_test).Remaining slices
JAVA_DIR/<run>/<DD>layout (equivalence_java.py, equivalence.py) and agolden_export.py junitthat emits the JUnit class into the generated project.compare_runwith declared differences.Facts checked
git log origin/main --grep).export carddemo-dailyvalunder heavy-run.sh produced 21 runs (main + 20 faults). Not run:checkagainst a real Java run (no layout producer yet: slice 1).pr_gates --fast9/9;audit_check.pyclear; tree-wide guards (source_reads, generated_branch, change_classifier) pass; 8 new tests, 0.4 s.--ratchetsnot run: no engine, golden, ledger or port input changed.🤖 Generated with Claude Code