Repository navigation
Forged Spring Batch jobs vs the JCL level fixture: 42 IBM-written answers, 21 agree, 28 step differences named (Part of #4891) - #8821
Merged
Conversation
…wers, 21 agree, 28 step differences named (Part of #4891) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Nov 21, 2026
Merged
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…0 of #8821's 28 step differences closed (Part of #8886) (#9190) * IDCAMS BLDINDEX UNIQUEKEY-over-duplicates refusal cites IDC1645I in the model and the Java twin (Part of #8886) Still refused: IBM keeps the first pointer and states no condition code (register F4). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Forge JclConditions: COND=ONLY, stepname.RUN and ABENDCC=code read; 10 of #8821's 28 step differences closed (Part of #8886) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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 2 of N)
What
tests/cobol_mainframe/test_jcl_forged_job_fixture.pyruns the level fixture's 42 IBM-written answers (FLOW.jcl 14, IFFLOW.jcl 28) through whatBatchForgegenerates, as slice 1 (#8808) did for CardDemo: each job is forged from thejob_stepsfact shape (a PROC call carriesexpands_to, so procedure steps forge asCALL.PROCSTEP), the<Job>JobConfigis read back, and the forge's ownJclConditionsJava decides run / bypass in the orderJclSteps.guardeduses. Slice 1's helpers and driver are reused; the cell separator is U+001F because an IF expression holds|.Result (first run, 2026-11-21)
21 of 42 scenarios agree; 21 differ on 28 steps.
KNOWN_DIFFERENCESnames every one with its cause, and the test fails on a new difference AND on a listed one that stops reproducing:(code,op)tests only): 4 steps run that IBM bypasses.stepname.RUN: 4 steps; the IF parser reads it as true (and leaves= FALSEunconsumed), so.RUN = FALSEand NOT.RUNcome out inverted.stepname.ABENDCC = code: 2 steps; the parse ends after the left token, so the whole expression is one false relation and NOT (...) holds whatever RC is.The agreeing 21 cover EXEC COND (code,op[,step]), nested IF / ELSE, NOT,
&/|,RCandstepname.RC, and procedure steps keyedCALL.PROCSTEP.Class / Sibling gaps
Class: the generated Spring Batch job's JCL step-flow behaviour against the IBM-written answer key, per estate-level fixture. Covered: CardDemo 34 (#8808), fixture FLOW 14 + IFFLOW 28 (this PR). Sibling gaps (each a different mechanism, not done here): (1) forge
JclConditionsdefects found above (ONLY,.RUN,ABENDCC =parse; the abend flush is a design limit, EVEN / ONLY need a job that survives an abend): a forge fix slice that deletes entries fromKNOWN_DIFFERENCES; (2) ifelse 18 answers; (3) proc 221 resolve answers (here only the in-stream PROC shape of IFFLOW is exercised); (4) dataflow, (5) gdg, (6) restart: DD binding andDatasetResolvernot run; also not run: the SpringJclSteps.guardedbody (pinned by text in slice 1) and the final job exit status. Not logged inport_blockers.json: its entries are tagged by a burned estate, and these were found on a fixture.Remaining slices
forge
JclConditionsfix (1 file + test), ifelse 18, proc 221, dataflow, gdg, restart.Files (1 hand-written)
tests/cobol_mainframe/test_jcl_forged_job_fixture.py(new).Gates
New file: 2 passed (6 with slice 1's file; also from an unrelated cwd).
ruff format(pinned 0.17.4) clean;ruff_audit --cianddoc_refs_audit --cipass;mypy_audit --cishows nothing in the new file (it reports unrelated findings in this local env).pr_gates --fast/--ratchetsnot run. No parsing logic touched, no golden bless.🤖 Generated with Claude Code