Repository navigation
Read in-stream PROC calls and INCLUDE groups into the SYSLIB order (Part of #8412) - #8766
Merged
Merged
Conversation
…art of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Nov 20, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8412 (slice 2 of 2 of the JCL copy-library-order line; slice 1 is #8753).
Checklist: partial [c:166e4a56] -- JCL
SYSLIBorder now reads in-streamPROC .. PENDcalls andINCLUDEgroups; still unread: JCL held in extensions outside.jcl/.prc/.proc(INCLUDE groups included), and the zapp.yaml / DBB lines are separate checklist items.What changed
gitgalaxy/core/copy_libraries.py,_compile_steps(and its callerjcl_syslib_orders):INCLUDE MEMBER=is replaced in place by its group, found along the job'sJCLLIB ORDER=(first library wins, nested groups, groups inside a procedure), reusingjcl_proc._include_statements. A group found in no library, or invalid (holds JOB / PROC / PEND / JCLLIB), leaves the order unknown from that point (libsNone): it may hold aSYSLIBDD or aSET. Before this, INCLUDE statements were skipped silently, so a step could declare an order missing the group's libraries.PROCclosed byPEND, searched before any library, p. 26): a call of one reads its compile step'sSYSLIBwith the same symbol rules as a library proc (call keyword symbols > PROC defaults > SET; a clash is unresolved). The template's own steps declare only through a call.PENDnow resets the PROC defaults (they used to leak into later job steps), and an in-stream procedure's symbols are its PROC defaults plus its own SETs; the job's SETs reach it through the call, so one SET value is not read as a clash with itself.Class / Sibling gaps
Class: "a compile job's SYSLIB order, from the JCL the estate ships" -- every route by which JCL statements reach a compile step. Members: direct
EXEC PGM=IGYCRCTL/IGYW*(done), cataloged proc via JCLLIB (done), symbolic datasets (done #8753), in-stream proc call (done here, tests), INCLUDE group at job level, nested, along JCLLIB order, inside a proc, missing / invalid group (done here, tests).Sibling gaps (no issues filed):
.jcl/.prc/.proc(.cntl,.inc, extensionless PDS unloads) are not read, so such an INCLUDE group or proc is "missing" and the order is declared unknown (the safe side). Needs an aperture decision: separate slice.SETinside a step after itsEXEC(including one a spliced group brings) is not seen by that step'sSYSLIB: symbols are read at theEXEC(slice 1 design). Rare; the result is an unresolved order, never a wrong one.application-confcopy paths: their own checklist lines [c:19982422], [c:9ca24188].Remaining slices
None for this mechanism; the above siblings are listed for later.
Evidence
tests/cobol_mainframe/test_copy_jcl_syslib_8412.py: 43 pass (12 new: in-stream call with and without a library, in-stream wins over a library member, template-only-through-call, PEND resets defaults, job SET vs. in-stream default clash and call-symbol settle, two compile steps not guessed; INCLUDE: supplies SYSLIB, nests and follows JCLLIB order, group SET, missing / no-JCLLIB / invalid group unknown, INCLUDE inside an in-stream proc). All authored fixtures, invented names, no census / candidate repo read.pr_gates --fast9/9 afterruff format(no new lint findings).pr_gates --ratchets: 6 pass (cics-spec, ports, port-surface, estate, det-mutation, time), 3 fail, all from ONE cause that is not this change:example-health-apiscannot be fetched at its pinned ref (git fetchofibm/example-health-apissays "Repository not found"), soground-truth,completeness[example-health-apis]andfact-crosscheckstop atrequire_clone. The other 8 completeness corpora pass. Not verified here: whether this change moves anexample-health-apisscore; CI's ground-truth / completeness will say. Golden masters not re-blessed (no detector / language-standards file touched).Lessons for agents
pythonis not on PATH in a churn worktree andGG_PYis unset: use/home/joe/gitgalaxy/venvs/selfscan/bin/pythonand export its bin on PATH in every Bash call.🤖 Generated with Claude Code