Repository navigation
equivalence: a multi-step job case (kind job): batch steps chained through datasets, each proven (Part of #4268) - #7256
Merged
Conversation
…rough datasets, each proven (Part of #4268) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
5 tasks done
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 #4268
Checklist: partial [c:5944f8ad] -- the harness runs a multi-step job case (batch steps); no committed job case yet (TRANREPT STEP05R -> STEP10R waits on #7251 merging), and Db2/IMS/CICS steps are refused
Checklist: partial [c:9e003ccd] -- F4 states the job case; the IDCAMS DEFINE / utility-step items of F4 remain
What changed
tests/tools/equivalence_job.py(new):"kind": "job"case = orderedsteps(existing batch case names); a step'sfeeds({DD: {step, dd}}) read an earlier step's COBOL output. Each step is proven like a batch case (GnuCOBOL, then the port, via the existingrun_cobol/run_java_environments/compare_run); the Java side is given the same bytes the COBOL step read, so equal steps compose to an equal chain. Report:report.jsonwith one entry per step.tests/tools/equivalence.py: 7-line dispatch inmain(before corpus resolution; each step resolves its own corpus).--record/--port/--reuse/--case-filerefused for a job.tests/cobol_mainframe/test_equivalence_job_4268.py: the feed rules (every refusal by name: <2 steps, repeated step, unknown case, feed from a later step / unknown DD / uncompared DD, db2/ims/cics/call step, record-length mismatch, indexed feed, unknown key), records-to-lines staging round-trip through_fixed(latin-1, utf-8, cp037, cp500; trailing/all-space records), and the run loop with the COBOL/Java sides stubbed (next step reads the earlier COBOL output, differing Java leaves it unproven, abend stops the job,--cobol-only).docs/language_status/register/F4.md: the job case stated; "one program step" no longer the whole story.Oracle and assumptions
Oracle is GnuCOBOL plus our stub, not z/OS. The wiring between steps is the case's
feeds, not a parsed JCL job. A step that abends has no defined datasets, so the job stops and is not proven. The real Docker + JDK run is not exercised by this PR (no committed job case); the loop is pinned with stubs.Class / Sibling gaps
Class: a multi-step job as an equivalence case (steps chained through datasets). Handled here: sequential batch steps with sequential feeds. Siblings, not here:
carddemo-sort-tranrept, equivalence: a SORT case, CardDemo TRANREPT STEP05R lowered and proven against the oracle (Part of #4268) #7251) -> STEP10R (carddemo-trnrpt): needs equivalence: a SORT case, CardDemo TRANREPT STEP05R lowered and proven against the oracle (Part of #4268) #7251 merged; its real E2E run (Docker, JDK 17) is the first proof of this harness. Next slice: that case.json + run.--record) for a job.[c:ac8b71e6]: IDCAMS DEFINE (or its refusal register entry) remains.Cross-repo
None. No corpus pin change.
Overlap
#7251 also edits
tests/tools/equivalence.py(different hunk,program_sourcesites); merge main after it lands.Lessons for agents
equivalence.pyrun as__main__andimport equivalenceare two modules: a helper module that needs its functions takessys.modules[__name__]as a parameter (equivalence_call imports onlyequivalence_commonfor this reason).{}db2/ims spec is falsy: test"db2" in case, notcase.get("db2"), when classifying a case's kind.🤖 Generated with Claude Code