Skip to content

Job case: GDG generations (+1)/(0)/(-n) and base references (Part of #8883) - #8934

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8883-20261121T1819Z
Nov 21, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8883-20261121T1819Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #8878 (Graveyard Shift 2), #4890, #4891. Refs #8883.

What

A job case ("kind": "job", tests/tools/equivalence_job.py) can now carry a GDG model (tests/tools/equivalence_gdg.py):

  • gdgs declares bases (LIMIT, record length, existing generations beside the case, oldest first).
  • A step's gdg_out {DD: base} writes (+1), catalogued at step end (never for a step that abends).
  • A step's gdg_in {DD: {base, gen}} reads (0), (-n), (+1) (the job's own new generation) or all (concatenation, newest first).
  • Relative numbers are resolved once per job against the catalog as the job started (ASSUMED: IBM behaviour recalled from the z/OS MVS JCL Reference, "Generation data groups" / DSNAME, not checked against the manual text; recorded as an assumption in register F4); a step's job key starts a new job.
  • Both sides read the COBOL side's generation bytes, staged like any feed.

Checklist: done [c:60bfea02]
Checklist: done [c:a58a2da9]
Checklist: done [c:072c4a64]
Checklist: partial [c:31df2956] -- tests run the authored two-job chain with the COBOL / Java sides stubbed; no committed job case run on real GnuCOBOL + ports yet

Class / Sibling gaps

Class: how a job case hands data between steps and jobs through catalogued datasets (feeds today: sequential and indexed step outputs). Members: sequential feed (handled), indexed feed (handled, #8879), GDG generation (+1) / (0) / (-n) / base reference (this PR), GDG LIMIT roll-off, (+2) and further, a GDG defined by the job (IDCAMS DEFINE GDG), GDG generations that are indexed or non-compared.
Sibling gaps (refused by name here, none filed):

  • LIMIT roll-off with SCRATCH / NOSCRATCH / EMPTY: refused; needed by any burned-estate base that fills to its LIMIT (not checked against CardDemo's JCL in this slice).
  • (+2) and further new generations in one job: refused; not checked against the burned jobs.
  • GDG defined in the job itself (IDCAMS DEFINE GDG): refused; the CardDemo JCL's own DEFINE steps were not read in this slice.
  • Non-sequential generations (a VSAM base cannot be a GDG; refused).

Remaining slices

  1. Commit a job case over CardDemo's real chain (TRANBKP writing (+1), a later job reading (0)), run through equivalence.py run with Docker (1 JSON + notes + pinned wiring test).
  2. LIMIT roll-off model with NOSCRATCH (uncatalog only), then SCRATCH if an oracle can back it.

Gates

Stubbed tests: 69 pass (test_equivalence_gdg_8883.py, test_equivalence_job_4268.py, test_job_case_4268.py). pr_gates --fast: lint, audits pass; the affected-tests lane ran 7212 pass, 3 fail in corpus-presence tests (test_runtime_option_table, test_bms_occurs_grpname_census_5116, test_container_datatype_change_reach_5005: burned corpora such as example-health-apis not in this checkout; none touch the changed files; rerun on origin/main: the same 3 fail there, so they are not from this PR). --ratchets not run (no engine, golden or ledger input changed). No Docker run.

Lessons for agents

  • heavy-run.sh ... | tail in the foreground can sit in the slot queue past the 10 min background limit and be killed with no output: use bg-job.sh start NAME -- ... then bg-job.sh wait NAME.
  • test_runtime_option_table, test_bms_occurs_grpname_census_5116 and test_container_datatype_change_reach_5005 fail on a checkout without the example-health-apis burned corpus (also on origin/main): confirm there before calling them yours.

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 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 19:09
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 19:27
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (2e9042a) 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 21, 2026 19:47
auto-merge was automatically disabled November 21, 2026 19:47

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 21, 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 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 20:05
@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 21, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 20:20
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 21, 2026 20:49
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8934 @ 2e9042a: 8 failed check(s)

== full-suite (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44941336060/job/136963455945
repro: python -m pytest -q tests
log tail:
(log unavailable: gh: HTTP 404)

== full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44941336060/job/136963455373
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth part ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44941335996/job/136963450370
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44944396600/job/136971749295
repro: python -m pytest -q tests/cobol_mainframe/test_trials.py::test_every_equivalence_module_is_in_the_frozen_harness_or_named_outside_it
failing tests: tests/cobol_mainframe/test_trials.py::test_every_equivalence_module_is_in_the_frozen_harness_or_named_outside_it
errors:
fail-on-cache-miss: false
E AssertionError: ['tests/tools/equivalence_gdg.py']
tests/cobol_mainframe/test_trials.py:491: AssertionError
FAILED tests/cobol_mainframe/test_trials.py::test_every_equivalence_module_is_in_the_frozen_harness_or_named_outside_it - AssertionError: ['tests/tools/equivalence_gdg.py']
##[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: 4165faf9e0dbfb7ba98616ae21ca638842842e2e6d6f80cf9a4d03e1a86b5fdf
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-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 183476
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is c6a1b0333c69d965e674f6a578d5c4a1a3dd2c823dcc146bf85daf240ec171df
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 14723878340
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 183476 bytes. Artifact ID is 14723878340
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44944396600/artifacts/14723878340
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/cc0e2318-3be5-43e4-b692-32b8a983751a' 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

== ground-truth-warm (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44941335996/job/136963450711
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== publish-history (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44941335996/job/136963450921
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== store the suite's durations (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44941336060/job/136963455873
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== suite time budget (#5166) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/44941336060/job/136963455870
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

@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 21, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 21, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (b755e0a) 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 21, 2026 21:11
@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:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 21, 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 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 21:37
@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 21, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 21:51
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 21, 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