Skip to content

Spring harness: one-command mode runs the chain and the generated jobs and compares them (Part of #8886) - #9356

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8886-20261126T0141Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8886-20261126T0141Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Part of #8886 (epic #8878, #4891). Slice 23: the Spring-vs-chain comparison becomes one command.

Checklist: partial [c:101680f3] -- the javac-only run_forged still stubs program steps (the ports run in the Maven Spring run, slice 22); STEP30 BLDINDEX refusal unchanged

What changed

  • tests/tools/equivalence_forged_spring.py: new main(): --spec X.forged.json with --report R (a chain's report.json) or --run-chain DIR (runs equivalence.py run CASE --keep DIR first). It hands the report's generations_dir / outputs_dir to scan_and_run, prints the per-step and per-dataset lines, --json writes the rows, and exits 1 when any step or dataset differs in either mode (stubbed program rows included, never rounded), 2 when no JDK / Spring jars were found (nothing ran, not a pass), 0 only when all equal. differs() lists them.
  • tests/cobol_mainframe/test_forged_spring_cli_8886.py: four tests with scan_and_run stubbed (wiring, exit codes, run_chain).

Evidence (levels, not "proven")

  • Unit level here: the command's wiring and exit codes. The Spring run itself stays covered by test_forged_spring_nightly_8886.py (8 of 9 steps equal, unchanged by this PR).
  • Real run (--run-chain, GnuCOBOL chain + IDCAMS model, then Spring): 8 of 9 steps equal in strict and skip; 4 results differ, exit 1: TRANIDX STEP30 (IDC1646I over-RECORDSIZE refusal, not modelled) and the stubbed SYSTRAN row in both modes (the linked-port row is equal). Same as before this PR; the command now reports it in one run.
  • Residual risk: oracle is GnuCOBOL plus our stub, not z/OS.

Class / Sibling gaps

The class is "a comparison the harness can only run through a scratch script": the Spring-vs-chain run had no command (slice 21 handoff). Members: this nightly (now a command); slice 1's replay already had a CLI (equivalence_forged_job.py). Sibling gaps: ports inside the javac run_forged (needs a JPA stack); the STEP30 over-RECORDSIZE refusal; an ifChain assertion; abend scenarios. No other job case has a .forged.json spec yet, so the command has no other member.

Remaining slices

  • Run ports inside run_forged; ifChain assertion; abend scenarios (each its own PR).

Gates

  • audit_check.py all clear; ruff format clean; the four new tests pass.

Doc-refs fixes: none

🤖 Generated with Claude Code

…s and compares them (Part of #8886)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 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 26, 2026 01:56
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 01:58
@squid-shepherd
squid-shepherd Bot merged commit 3964d1c into main Nov 26, 2026
72 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8886-20261126T0141Z branch November 26, 2026 02:25
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