Skip to content

golden_export: a batch case's COBOL outputs as golden files, byte-exact Java check (Part of #4052) - #7545

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4055-20261102T1331Z
Nov 2, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4055-20261102T1331Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Slice 1 of #4052: tests/tools/golden_export.py exports 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.json manifest with RETURN-CODE / ABEND, bytes and sha256 per DD) and check DIR --java JAVA_DIR compares 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 in compare_run.

Design decision: reuse the harness's own run_cobol / selected_faults so 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

  1. Java side: write a run's dumped outputs into the JAVA_DIR/<run>/<DD> layout (equivalence_java.py, equivalence.py) and a golden_export.py junit that emits the JUnit class into the generated project.
  2. Field-level compare through compare_run with declared differences.
  3. The other case kinds, one PR each.
  4. A mutant test: the check fails on a mutant the proof kills.

Facts checked

🤖 Generated with Claude Code

…ct check of a Java run (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 2, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 2, 2026 13:38
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 2, 2026 13:39
@squid-shepherd
squid-shepherd Bot merged commit 51bb6e6 into main Nov 2, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4055-20261102T1331Z branch November 2, 2026 13:44
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