Skip to content

CardDemo nightly job case: POSTTRAN..COMBTRAN..CREASTMT proven, TRANIDX refused by name (Part of #8885) - #9072

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8885-20261122T2315Z
Nov 23, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8885-20261122T2315Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8885 (Part of #8878, Graveyard Shift 2).

Adds tests/equivalence/jobs/carddemo-nightly.json: CardDemo's nightly as ONE job case (POSTTRAN, INTCALC, TRANBKP, COMBTRAN, CREASTMT, TRANIDX) from CardDemo's shipped data. It is not fully proven: steps 1-6 are equal on both sides; the last step (TRANIDX) is refused by name by the IDCAMS model. The case stays unproven until the slices under "Remaining slices" land.

File-cap exception: harness, tests, decks and port are one atomic case

What changed

  • tests/tools/equivalence_job.py (harness): a GDG generation (gdg_in / gdg_out) on an IDCAMS step's sequential DD; a sequential DD may read a KSDS an IDCAMS step left; an ibm_stops ICE043A stop now ends only the JCL job the stopped step belongs to (its job key), so the later TRANIDX job still runs, and a later job that reads a step the stop never reached is refused by name. _idcams_step takes the GDG catalog (optional).
  • carddemo-nightly.json + carddemo-tranbkp.idc + carddemo-combtran-step10.idc: the case and its two IDCAMS decks (case data).
  • tests/equivalence/carddemo-sort-creastmt/port/ + evidence.json: the det port of CREASTMT STEP010 (the lowered DFSORT), generated by det_port.py run carddemo-sort-creastmt --faults none, which PROVED it standalone (13/13 translated). The nightly's Java side needs it; two list entries (MUTATION_PENDING, test_estate_evidence) record that its L5 mutation run is a follow-up, as for the sibling sort cases.
  • tests/cobol_mainframe/test_job_case_nightly_8885.py: wiring and harness-rule tests, no Docker (one existing refusal test updated: gdg_in on an IDCAMS step is now allowed, a malformed one is still refused).

Proof, per job and step (equivalence.py run carddemo-nightly, local)

Job Step Result Condition code
POSTTRAN carddemo-posttran equal: ACCTFILE 50/50, TCATBALF 100/100, TRANFILE 264/264, DALYREJS 41/41 4 / 4 (COBOL / Java)
INTCALC carddemo-intcalc equal: ACCTFILE 50/50, TRANSACT 50/50 (-> SYSTRAN(+1)) 0 / 0
TRANBKP tranbkp-idcams equal (model vs Java, 7 log lines); REPRO 264 records -> BKUP(+1), DELETE KSDS, SET MAXCC = 0, DEFINE CLUSTER 0 / 0
COMBTRAN carddemo-sort-combtran equal: SORTOUT 314/314 (BKUP(0) 264 + SYSTRAN(0) 50 -> COMBINED(+1)) 0 / 0
COMBTRAN combtran-step10-idcams equal: REPRO 314 records COMBINED -> TRANVSAM (model vs Java) 0 / 0
CREASTMT carddemo-sort-creastmt equal: SORTOUT 314/314 0 / 0
CREASTMT creastmt-step020, carddemo-cbstm03a not reached: STEP010 writes 328-byte OUTREC under a 350-byte LRECL, IBM ends the step (ICE043A, register F4), COND=(0,NE) bypasses the rest; no pad guessed n/a
TRANIDX carddemo-tranidx refused by name, IDCAMS model: BLDINDEX busiest alternate key needs a 5055-byte record over RECORDSIZE 350, IBM's outcome not stated n/a

Verdict: NOT proven over 7 of 9 steps (6 equal, 2 not reached by IBM's own stop, 1 refused).

What the chain claims

GnuCOBOL plus the models (IDCAMS det model, DFSORT lowering), not z/OS. Each step is proven as its own case and what a step reads is the COBOL side's output of the step before, the same bytes the Java side is given. The wiring (which step feeds which, the BKUP / SYSTRAN / COMBINED generations, the KSDS TRANBKP redefines empty and COMBTRAN STEP10 reloads) is written from the case, not read from the JCL (Graveyard Shift 3).

One deviation from the JCL, stated: the TRANBKP deck leaves out the DELETE ... ALTERNATEINDEX (an absent entry: code 8, then SET MAXCC = 0, no effect) because the IDCAMS model refuses that parameter by name (the IDCAMS DELETE ALTERNATEINDEX parameter). With it in, the run stops at step 3.

Gates

  • Pinned ruff format --check on the changed .py files: clean. audit_check.py: all clear. pr_gates --fast: xray, gen-docs, derived, workflows, gauntlet pass; the affected-tests lane failed only on the new port's missing evidence record (fixed here) and on test_call_compare_4778 (a hard-coded /home/joe/gitgalaxy/repo/.mainframe_corpora/example-health-apis path that is not on this box).
  • pr_gates --ratchets: estate, det-mutation, time pass; fact-crosscheck, completeness, ground-truth fail only because example-health-apis is not fetched at its pin on this box (no engine file changed).
  • 132 job / GDG / IDCAMS-job tests pass; test_evidence.py and test_estate_evidence.py pass (97).
  • Det sweep: not run here (no det-port translator change; the nightly proof above is the local proof).

Class / Sibling gaps

Class: a chained job case needs every IDCAMS or sort step's model and committed port to cover the real deck and data, not only the harness. Siblings: (1) the IDCAMS model and Idcams.java refuse DELETE ... ALTERNATEINDEX (TRANBKP's real deck); (2) the model refuses a BLDINDEX whose busiest alternate key overflows RECORDSIZE (TRANIDX on this chain's 314 TRANSACT records; IBM's outcome needs a citation); (3) carddemo-sort-creastmt has no L5 mutation run; (4) the harness cannot run the CREASTMT steps after the stop, by IBM's own stop.

Remaining slices

  • Model + Idcams.java parity for DELETE ... ALTERNATEINDEX of an absent entry (code 8), then restore the line in carddemo-tranbkp.idc.
  • TRANIDX over this chain's data: the BLDINDEX overflow outcome (an IBM citation, then a model + Java rule, or a stated stop).
  • det_mutation.py run for carddemo-sort-creastmt.

Checklist: done [c:8eedb9bc] the nightly case file tests/equivalence/jobs/carddemo-nightly.json
Checklist: partial [c:69f0e953] proven locally for steps 1-6 with per-step records and condition codes above; TRANIDX refused by the model, TRANBKP's DELETE AIX omitted, det sweep not run
Checklist: done [c:718a1629] the note on what the chain claims (above and in the case's notes)

Lessons for agents

  • A committed port/ needs evidence.json (evidence.py prove KEY) and a MUTATION_PENDING + test_estate_evidence entry, or test_records_cover_the_ports and two estate tests go red.
  • equivalence.py run of a 9-step job exceeds 10 minutes: start it with bg-job.sh, never as a background shell (the 600 s cap kills it with an empty log).
  • A job step that is a lowered DFSORT case needs its committed det port (det_port.py run CASE --faults none), or the Java side fails with cannot find symbol DfsortstService.

🤖 Generated with Claude Code

…DX refused by name (Part of #8885)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 23, 2026 00:17
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 00:19
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 23, 2026 00:27
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9072 @ 01933cc: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45087932827/job/137413006138
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: b8a594ea514ff44cadb5342986c68b1eac6e22ed
Build Date: 2026-11-11T01:49:01Z
Worker ID: {6641e269-58bc-4a16-af6f-b8609821a9af}
Region: us-west-2
Cloud: AWS
##[endgroup]
##[group]Operating System
Ubuntu
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261116.88.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261116.88/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261116.88
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: full
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 2/5 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45087932827/job/137410866887
repro: python -m pytest -q tests/tools/test_no_duplicated_port_shims_8486.py::test_committed_ports_no_new_duplicated_shims
failing tests: tests/tools/test_no_duplicated_port_shims_8486.py::test_committed_ports_no_new_duplicated_shims
errors:
fail-on-cache-miss: false
> raise AssertionError(
E AssertionError: New >=3-line duplicated helper method(s) found in >=3 committed *Service.java ports; hoist them into cobolrt instead (#8486):
tests/tools/test_no_duplicated_port_shims_8486.py:197: AssertionError
FAILED tests/tools/test_no_duplicated_port_shims_8486.py::test_committed_ports_no_new_duplicated_shims - AssertionError: New >=3-line duplicated helper method(s) found in >=3 committed *Service.java ports; hoist them into cobolrt instead (#
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 1011321
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is a54ce9e44c29a7351d1f58fbfec879096fe442ab49d970937b70d282b7bcec79
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 14780282457
Artifact test-times-part-2 has been successfully uploaded! Final size is 1011321 bytes. Artifact ID is 14780282457
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/45087932827/artifacts/14780282457
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/1b6544af-c1e3-4afa-827e-443a0013388d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 00:36
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 23, 2026 00:42
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 23, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 23, 2026
@squid-shepherd squid-shepherd Bot added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (ab34b32) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 23, 2026 01:01
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (ab34b32) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Nov 23, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 23, 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 23, 2026 01:04
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 01:04
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd
squid-shepherd Bot merged commit 60a66ad into main Nov 23, 2026
92 of 116 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8885-20261122T2315Z branch November 23, 2026 01:39
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