Repository navigation
Resolve symbolic SYSLIB datasets from PROC defaults, SET and call symbols (Part of #8412) - #8753
Merged
Merged
Conversation
…bols (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
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
Checklist: partial [c:copy-library-order-from-jcl] -- the
JCLLIB ORDER=proc call (#8752) and now symbolic SYSLIB datasets are read; left://SYSLIBdatasets with member-qualified names, in-stream PROCs called in the same job, andINCLUDEgroups holding SYSLIB DDs (see Remaining slices).What changed
gitgalaxy/core/copy_libraries.py: a compile step's SYSLIB dataset such as&HLQ..COPYBwas refused whole (order unknown). It is now expanded from the symbols that IBM JCL defines it with:PROCstatement defaults in the proc member;SETstatements before the step in the job;EXEC FAKECOB,HLQ=FAKE.TEST), which override the proc defaults.A name two equal-rank sources give different values (a job
SETnaming a proc default the call does not set) is dropped as unresolved, never picked. A name nothing assigns stays unresolved and declares nothing (as before). Member-qualified datasets still declare nothing.Tests: 7 new cases in
tests/cobol_mainframe/test_copy_jcl_syslib_8412.py(default, call override, SET fill, SET clash, call settles clash, unassigned, direct step reading a job SET). 28 pass.Gates
ruff format(pinned 0.16.10): unchanged.tests/ruff_audit.py --ci: no new findings.tests/mypy_audit.py --ci: findings are in other files only (local env differs from CI's), none incopy_libraries.py. dead-key, doc-refs, ast-accuracy, signal-coverage audits OK.copy_libraries.jcl_syslib_ordersonly applies when a repo ships compile JCL, and no crucible golden contains one (CIcrucible-auditis the check).Class / Sibling gaps
Class: JCL compile-job information that decides the COPY library order (
//SYSLIB DDconcatenation as written, via aJCLLIB ORDER=proc, via symbols). Members: literal SYSLIB (done earlier), JCLLIB proc call (done, #8752), symbolic datasets from PROC default / SET / call symbol (done here, tested for each source and the clash). Sibling gaps: (1) in-streamPROC ... PENDcalled in the same job, status missing: needs call-site parsing of a proc inside the job text, a different mechanism; (2)INCLUDEgroup members containing SYSLIB DDs or SETs, missing: needs the INCLUDE splice (jcl_proc._splice_includes) wired in; (3) member-qualified SYSLIB (DSN=LIB(MEM)), refused by name, correct as IBM reads that as one member; (4) zapp.yaml and DBBapplication-confpaths (separate #8412 lines).Remaining slices
_compile_steps(files:copy_libraries.py, the test file; reusejcl_proc._splice_includes).Lessons for agents
tests/mypy_audit.py/tests/ruff_audit.pylive intests/, nottests/tools/; the local mypy env reports unrelated findings, so grep its output for your own files.🤖 Generated with Claude Code