Repository navigation
JCL step-flow level fixture: FLOW.jcl, IBM-written scenarios, shape test (Part of #4891) - #7654
Merged
Merged
Conversation
…e test (Part of #4891) 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 #4891 (slice 1 of 3): the JCL step-flow level fixture, with expected answers written from IBM's text before any evaluator exists (evidence policy 5, as in #7539).
Changes
tests/equivalence/jcl/fixture/FLOW.jcl: three jobs. CONDJOB (EXEC COND with and without a stepname, a bypassed step named by a later test, EVEN, ONLY), EVNJOB (EVEN and ONLY combined with a test), IFJOB (IF/THEN/ELSE/ENDIF onstepname.RC,RC,ABEND,stepname.RUN).tests/equivalence/jcl/fixture/scenarios.json: 14 scenarios (each step's RC or abend in; run / bypass per step out), each with the IBM rule it rests on; the assumed points (A1-A4) and the refused constructs, by name.tests/cobol_mainframe/test_jcl_flow_level_fixture.py: shape test (9 tests) plus thatjob_flowreads the steps,cond,if_condand DD bindings the scenarios assume. No execution model yet; a last test pins that.docs/language_status/register/F4.md: the note, with ASSUMED and refused lists..gitignore: whitelist for the fixture's JSON (*.jsonis ignored repo-wide).Class / Sibling gaps
Class: JCL conditional step flow, i.e. every construct that decides whether a step starts: EXEC COND (RC tests, with and without stepname, EVEN, ONLY), IF/THEN/ELSE/ENDIF (RC, stepname.RC, ABEND, ABENDCC, RUN, operators, nesting), the JOB-statement COND, and restart/checkpoint. Handled here with a scenario each: EXEC COND tests and EVEN / ONLY, IF on RC / stepname.RC / ABEND / RUN, abend-then-IF. Sibling gaps: (1) the evaluator that reproduces every
expect(JclFlow): different mechanism, slice 2. (2) A burned case, CardDemo DEFGDGD / TRANEXTR (COND=(n,op,step) and IF RC=0 in BLDCIDB2.prc): after the evaluator, slice 3. (3) ABENDCC, stepname.ABEND,&without|, nesting depth: named in IBM's text, no scenario yet, listed for slice 2 (no IF in the fixture uses them). (4) JOB-statement COND, COND inside THEN/ELSE, the job's final completion code, RESTART=/RD=/checkpoint: refused by name (IBM text for them was not found; no burned estate uses CHKPT). (5) Mixed AND/OR: refused by name (IBM gives one priority, no mixing rule).Facts checked
$H/4891-ibm-jcl-sources.md(z/OS 3.1.0 MVS JCL Reference, EXEC COND and IF/THEN/ELSE pages); not copied into the repo, paraphrased with the page names.jcl_job_flowreads FLOW.jcl as the test asserts (e.g.if_condNOT (I1.RC = 0)in the ELSE).Remaining slices
job_flowrows (new module + tests); fliptest_there_is_no_flow_evaluator_yet.feedsfrom the real JCL.Gates
pr_gates.py --fast(heavy-run, ruff 0.17.2 pinned): 9/9 pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected). Tree-wide guard tests (287) pass; new test file 9 passed in about 1 s.--ratchetsnot run: no parsing logic, golden, ledger or pin touched. Local ruff was 0.16.0 (shared venv); the gate used the pinned 0.17.2.Cross-repo
None: this repo only.
🤖 Generated with Claude Code