Repository navigation
Execute CardDemo's forged Spring jobs under Spring Batch and compare with the COBOL chain (Part of #8886) - #9121
Merged
Conversation
…mo's JCL, not hand-built facts (Part of #8886) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…with the COBOL chain: 2 of 9 steps equal (Part of #8886) 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.
Part of #8886 (slice 2 of 3). Stacked on #9117 (slice 1): this branch carries its commits, so the diff shrinks to the three files below once #9117 merges.
What changed
tests/tools/equivalence_forged_spring.pyexecutes the Spring Batch jobsBatchForgegenerates for CardDemo's nightly and compares every case step with the COBOL chain. It forges with the real forge (skeletons only for the estate's own COBOL programs;job_steps/job_dds/job_sysinfrom a scan of the JCL), compiles the generated<Job>JobConfigclasses and the forge's runtime (JclSteps,JclConditions,DatasetResolver) with javac against the Spring Batch 5.1 jars in~/.m2, and runs them on an in-memory H2JobRepository. Each job runs twice: as shipped (strict) and withgitgalaxy.batch.skip-unimplemented.Program steps call a stub service whose
runBatchreturns the chain's COBOL return code. The proven ports are NOT linked (a later slice).Result (evidence level: executed under Spring Batch, program bodies stubbed)
2 of 9 case steps equal, in both modes (POSTTRAN, INTCALC).
NoSuchFileException), and STEP040 is not started.Checklist: partial [c:1b7f6936] -- the step differences are now named from an executed job (the 7 non-equal steps above); none closed yet, they are forge or model gaps listed under Remaining slices
Checklist: partial [c:101680f3] -- generated jobs run under Spring Batch and every step's exit is compared, but program steps use stub services returning the chain's RC, not the proven ports; the IDCAMS / SORT runtime ran only where the model lowers the step
Checklist: done [c:0d1ebe5a] -- the run on CardDemo's nightly with a result per step (
test_forged_spring_nightly_8886.pypins it)Class / Sibling gaps
Class: a forged job step that does not do what the chain's step did. Members, with status: POSTTRAN STEP15 and INTCALC STEP15 (equal); TRANBKP (3 steps), COMBTRAN (2), TRANIDX (3 JCL steps): no job generated, utility-only; CREASTMT DELDEF01 (multi-command IDCAMS refused, job fails as shipped); CREASTMT STEP010 / STEP020 (SORT / copy steps need input datasets the harness does not seed); CREASTMT STEP040 (program step, never reached); every program step above runs a stub, not the port. Sibling gaps: forging utility-only jobs or stating them refused by design; IDCAMS multi-command lowering; seeding datasets from the chain; linking the ports;
--forgedinequivalence.py run.Remaining slices
--forgedintoequivalence.py run.Gates
audit_check.pyall clear (ruff, mypy, dead-key, doc-refs, format);pr_gates --fast9/9 pass; forged-job tests 16 passed locally (the Spring test ~11 s, marked slow).pr_gates --ratchets: 6 pass, 3 fail (fact-crosscheck, completeness, ground-truth), the known environment failure when the shared corpora checkout lacks example-health-apis at its pinned ref; this PR touches no engine, fact or ledger file, so CI is the check for those.Lessons for agents
pythonis not on PATH in a worktree shell; export the selfscan venv bin every call.🤖 Generated with Claude Code