Skip to content

Job harness: a SORT step then a subprograms step (CBSTM03A + CBSTM03B) run for real (Part of #8884) - #9011

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8884-20261122T0844Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8884-20261122T0844Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8884. Checklist: partial [c:9d106702] -- a job step with subprograms now has a real GnuCOBOL + Java run (below); the committed CREASTMT job case (#8978) still waits on the sequential-to-indexed feed into TRNXFILE and the OUTREC 328 vs LRECL 350 citation.

What changes

  • tests/cobol_mainframe/test_equivalence_job_subprograms_e2e_8884.py (new, the only hand-written file). Every earlier job test stubs run_cobol / run_java_environments (Job harness: a step may be a case with subprograms (Part of #8884) #8951, Job harness: pin that both sides of a subprograms step get the whole case (Part of #8884) #8960 pin what the stubs are handed). This runs a two-step job through equivalence_job.run_case for real, in JCL order: the lowered SORT step carddemo-sort-tranrept, then carddemo-cbstm03a with subprograms: [app/cbl/CBSTM03B.CBL], both sides compiled with CBSTM03B.
  • Four tests: the job passes check_job over the real cases; a subprogram that is the step's own program is refused by name; the called source is in the clone; and the real run (EQUIVALENCE_E2E=1, slow-marked, ~30 s) asserts the job is proven, the step report lists subprograms, and every compared dataset of both steps is equal and non-empty.
  • No harness change was needed: the real run passed on the existing run_case.

Real run on this box: EQUIVALENCE_E2E=1 heavy-run.sh pytest -> 4 passed in 33 s (Docker GnuCOBOL, JDK 17, Maven).

Class / Sibling gaps

Class: a job step that is a batch case with subprograms (a static CALL of an estate COBOL program), compiled on both sides. Burned cases with subprograms: CBSTM03A (covered, real run), carddemo-report, report-generated, acctupdate, tranadd, DBB mlist / cmort / csmrt: none is a step in any burned job, so there is no job to run them in. Sibling gaps: sequential or IDCAMS output into CBSTM03A's indexed TRNXFILE (CREASTMT, #8978); SORT OUTREC 328 vs LRECL 350 has no IBM citation (CREASTMT STEP010); STEP030 IEFBR14 and DELDEF01 catalog state (CREASTMT); Java IDCAMS comparison (#8976).

Remaining slices

Gates

pr_gates --fast 9/9; --ratchets 9 pass, 0 fail; new test file 3 passed, 1 skipped without EQUIVALENCE_E2E.
Overlap: #8978 touches test_job_case_4268.py; this PR does not.

🤖 Generated with Claude Code

…) run for real (Part of #8884)

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 22, 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 22, 2026 08:54
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 08:56
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 22, 2026 09:08
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9011 @ 81a8913: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45005013671/job/137157124443
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: {dd8a6366-b5a4-4472-9f00-68d623e1f869}
Region: eastus2
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261116.202.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261116.202/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261116.202
##[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: select
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: select)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/1 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45005013671/job/137155537969
repro: python -m pytest -q tests/cobol_mainframe/test_equivalence_job_subprograms_e2e_8884.py::test_the_called_program_source_is_in_the_case_corpus
failing tests: tests/cobol_mainframe/test_equivalence_job_subprograms_e2e_8884.py::test_the_called_program_source_is_in_the_case_corpus
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
FAILED tests/cobol_mainframe/test_equivalence_job_subprograms_e2e_8884.py::test_the_called_program_source_is_in_the_case_corpus - SystemExit: aws-mainframe-modernization-carddemo is not fetched at its pinned ref; run: mainframe_corpus.py fe
##[error]Process completed with exit code 1.
log tail:
PYTHONUTF8: 1
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
##[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-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 807856
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 0d2156e435b9a8f4996115ddae69aec0c5b2701448b8f7ae7b25a444f5ac66a3
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 14747119564
Artifact test-times-part-1 has been successfully uploaded! Final size is 807856 bytes. Artifact ID is 14747119564
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/45005013671/artifacts/14747119564
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/584dbf96-ef72-4a95-be06-6cb6fcb9e7c7' 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 22, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (eb95d45) 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 22, 2026 09:13
@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 labels Nov 22, 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 22, 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 22, 2026 09:15
@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 22, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 09:16
@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 22, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 22, 2026 09:44
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9011 @ eb95d45: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45006388168/job/137166587844
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
##[group]Operating System
Ubuntu
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261116.202.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261116.202/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261116.202
##[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: ground-truth
##[group]Run echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
# #5543: ... or when the layout needs no warm job (a cache hit on the scans, or the busy layout): the parts then warm for themselves
{ ok "$WARM" || { test "$WARM" = "skipped" && test "$PLANNED_WARM" = "false"; }; } && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: skipped
PARTS: failure
SKIP:
MODE: full
PLANNED_WARM: false
LAYOUT: calm
##[endgroup]
ground-truth warm: skipped, parts: failure (tested-tree skip: , plan mode: full, layout: calm, warm planned: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 1/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45006388168/job/137164596582
repro: python -m pytest -q tests/cobol_mainframe/test_blocker_leak.py::test_anonymized_blockers_leak_nothing_of_the_estate_source[aws-mainframe-modernization-carddemo]
failing tests: tests/cobol_mainframe/test_blocker_leak.py::test_anonymized_blockers_leak_nothing_of_the_estate_source[aws-mainframe-modernization-carddemo]
errors:
fail-on-cache-miss: false
pytest.fail(f"{estate} missing under GITGALAXY_MAINFRAME_CORPORA: the leak scan would skip")
E AssertionError: [('identifier', 'AA34')]
tests/cobol_mainframe/test_blocker_leak.py:233: AssertionError
FAILED tests/cobol_mainframe/test_blocker_leak.py::test_anonymized_blockers_leak_nothing_of_the_estate_source[aws-mainframe-modernization-carddemo] - AssertionError: [('identifier', 'AA34')]
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 9b13cfd453f9ca484bfdaba4c9145bbcaa7a722867efdd42c891639de78ebdfc
PYTHONUTF8: 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
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 109049
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 31b3a75521d4ed25a2cf395ae354fc05efab6cb8fc8e61e9c7bf4f20f2a78e92
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 14748628566
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 109049 bytes. Artifact ID is 14748628566
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/45006388168/artifacts/14748628566
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/ced397cd-b5e4-4493-945e-96f9813571ee' 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/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 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 09:50
@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 22, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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