Skip to content

Job harness: indexed feeds, CardDemo POSTTRAN -> INTCALC job case (Part of #8879) - #8917

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8879-20261121T1405Z
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8879-20261121T1405Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8878 (Graveyard Shift 1). Part of #8879.

What

  • tests/tools/equivalence_job.py: a job step's feeds may now name an INDEXED (VSAM-style) dataset, including a KSDS the earlier step opens I-O. The fed state is the earlier step's COBOL-side unload (primary-key order), staged as fixed-length lines and loaded, keyed as the next step's SELECT declares (keys), into both the COBOL and Java sides: the same composition claim as a sequential feed. Refused by name: indexed to sequential (or the reverse), differing keys, differing record length (already), a feed from an abended step (already stops the job).
  • inputs values may start @corpus/ to name a corpus file (CardDemo's shipped data) instead of a file beside the job case.
  • tests/equivalence/jobs/carddemo-job-posttran-intcalc.json: POSTTRAN STEP15 then INTCALC STEP15 (PARM 2022071800, each step's pinned clock). INTCALC's ACCTFILE and TCATBALF are fed from POSTTRAN's compared outputs; XREFFILE and DISCGRP are CardDemo's shipped files.
  • Tests (no corpus, no Docker): refusals by name, one passing indexed feed on a small authored fixture (the next step is given the unload as keyed lines), the @corpus/ override, and the real job case's wiring against the real step cases.

Checklist: done [c:cfb57188]
Checklist: done [c:7242d36e]
Checklist: done [c:fe2d142a]
Checklist: partial [c:91b8f91e] -- the real GnuCOBOL + port proof (equivalence.py run carddemo-job-posttran-intcalc) and the det sweep have NOT run: the box's single heavy slot was held for 1h40m+ by another worker's mvs38j/sysgen.py serve (churn-8414 worktree), so heavy-run.sh never started. Re-run it, then paste "records equal per compared output of each step" here.

Tests: pytest tests/cobol_mainframe/test_equivalence_job_4268.py tests/cobol_mainframe/test_job_case_4268.py: 39 passed. ruff format --check (pinned 0.17.4) clean on the three .py files. pr_gates --fast / --ratchets not run (same slot). Risk: the job case is unproven; a differing step or an INTCALC abend on the shipped XREFFILE/DISCGRP would show only in the real run.

Class / Sibling gaps

Class: job-case feeds between steps by dataset organization (sequential, indexed, other VSAM kinds, and cross-organization). Sequential: handled (#4268). Indexed to indexed with equal keys and record length: handled here. Sibling gaps: indexed to sequential or sequential to indexed (refused by name; needs a stated unload/load rule); indexed feeds with differing keys (refused; needs a re-key); RRDS/ESDS feeds (no such organization in the harness); a feed from a dataset an earlier step reads but does not compare (refused); fault runs on a job step (refused, not modelled); reading the wiring from JCL (Graveyard Shift 3).

Remaining slices

  1. Run the real proof and the det sweep for the job case; record the result here (no files, or one notes edit).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 21, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 21, 2026 15:59
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 16:02
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 2be80de into main Nov 21, 2026
68 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8879-20261121T1405Z branch November 21, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant