Repository navigation
carddemo-cbstm03b case: call harness datasets, a called program's files, open-state statuses (Part of #5561) - #5589
Merged
Conversation
…ram's files live in its service (Part of #5561) - equivalence_call.py: datasets (indexed / sequential inputs staged, DD env bound on the COBOL run, entity repositories loaded on the Java side), text and DTO paths; compare datasets stay unsupported. - det program.py: a CALLed program's file handles are built once in the constructor (they were only built in runBatch). - DetFiles.Indexed tracks its open state: 41 / 42 / 46 / 47. - case: 33 calls, every file x OPEN / READ / CLOSE, end of file, a missing record, misuse statuses. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 19, 2026 08:54
|
|
||
| def stage_inputs(case: dict[str, Any], corpus: Path, dest: Path) -> None: | ||
| """Each dataset's input as fixed-length records in `dest/<DD>.in` (as a batch case stages them).""" | ||
| import equivalence_inputs # `@generate` inputs, from their record layouts |
|
|
||
| def cobol_datasets(case: dict[str, Any], src: Path, flags: str) -> tuple[list[str], str]: | ||
| """(script lines that build and run the loaders, the run's DD environment) for the case's datasets.""" | ||
| import equivalence # lazy: equivalence dispatches to this module |
squid-protocol
enabled auto-merge (squash)
October 19, 2026 09:00
Contributor
This was referenced Oct 20, 2026
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 #5561 (slice 2 of 2)
What
tests/tools/equivalence_call.py: akind: callcase may carrydatasets(indexed and sequential inputs staged, DD env bound on the COBOL run, entity repositories loaded on the Java side), on the text and the DTO path.comparedatasets stay unsupported (raisesUnsupported).det/program.py: a CALLed program's file handles are built once in its constructor. They were only built inrunBatch, so a called program's files were null.DetFiles.Indexedtracks its open state: 41 (OPEN of an open file), 42 (CLOSE of a closed one), 46 (sequential READ after end of file), 47 (READ of a file not open).carddemo-cbstm03b(CardDemo, burned; Apache-2.0 LICENSE/NOTICE copied): each of the four files x OPEN/READ/CLOSE, end of file, a missing record (23), a short key, misuse statuses, an unknown DD.Evidence (level L2, calls driven through LINKAGE)
000I) because GnuCOBOL-fsign=EBCDICrewrites an unsigned digit read as S9(4) in place.det_port.py checklisted 84 ports; re-proved 77 PROVED, 5 DIFFERS (cbsa-bnk1ccs,bnk1tfn,bnk1uac,bnk1uac-generated,crecust), all already indet_sweep_baseline.json. Existing call casescarddemo-dateutil,mortgage-nbrvlstill PROVED;mortgage-mpmtunchanged (named hole, C6).pr_gates --fast6/6,--ratchets8/8, related cobol_mainframe tests pass. No parsing change, no golden bless.Plan changed
The request block is a group USING item, so the det service takes the forged DTO, not
CobolRef<String>: the datasets hooks went into the DTO template too. Two runtime gaps (files only built inrunBatch, no open state) were found only when the Java side ran, soprogram.pyandDetFiles.javachanged too. That used the five-file budget, so the plannedtest_equivalence_call_datasets.pyis a remaining slice.Cross-repo
None. Companions: PR #5579 (
equivalence_cics.py) and #5587 (test_mutation_tooling.py) do not touch these files; origin/main merged cleanly.Remaining slices
comparedatasets for call cases (unload after the calls).Sibling gaps
DetFiles.Sequential/VarSequentialhave no open-state statuses (41/42/46/47); write/rewrite on a closed indexed file (48/49) not modelled.Lessons for agents
runBatch: the first symptom is an NPE on<FD>_FILE, not a status.DetFiles.javais part of every port's runtime:det_port.py checkthen lists ~80 ports to re-prove; compare any DIFFERS againstdet_sweep_baseline.jsonbefore treating it as a regression.-fsign=EBCDICrewrites an unsigned S9(4) argument in place on read; spell it in overpunch form in call args.🤖 Generated with Claude Code