Skip to content

Read JCLLIB ORDER= compile procs into the COPY library order (Part of #8412) - #8752

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261120T0211Z
Nov 20, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261120T0211Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial [c:copy-library-order-from-jcl] -- SYSLIB DD landed in #8656; this adds the JCLLIB ORDER= proc-resolved compile step. Left: symbolic (&HLQ) SYSLIB datasets, PROGRAM-ID != SYSIN member.

What

A compile step that calls a cataloged proc (//BUILD EXEC FAKECOB) now declares its COPY library order. The job's JCLLIB ORDER=(a.PROCLIB1,b.PROCLIB2) names the PROCLIB libraries (directories named after each dataset's last qualifier); the first library holding the proc member wins; the proc's EXEC PGM=IGYCRCTL step supplies the SYSLIB concatenation, and a call-level //STEP.SYSLIB DD replaces the whole concatenation (JCL override rule). SYSIN member comes from the call's //STEP.SYSIN or the proc.

  • copy_libraries._compile_steps generalises the old reader (same behaviour for PGM= and IGYW*); _jcl_compiles is a thin wrapper; new _jcllib_order; jcl_syslib_orders indexes proc members by (directory, stem).
  • Declares nothing (never a guess): proc not in the JCLLIB order, no JCLLIB, a symbolic or member-qualified SYSLIB dataset (in proc or override), a proc with several compile steps, a non-literal SYSIN, two jobs that disagree.

Class / Sibling gaps

Class: sources of a COPY library order a workspace ships (zapp.yaml #8565, DBB conf #8573, compile JCL SYSLIB #8656, now JCLLIB-resolved procs). Members here: proc found first-in-order, second-library order flip, call override, proc outside the order, no JCLLIB, symbolic library; each has a test in test_copy_jcl_syslib_8412.py, plus a real-scan test that the JCLLIB order picks the same-name member.

Sibling gaps:

  • Symbolic &HLQ SYSLIB datasets resolved via SET / proc symbolics: refused by name; different mechanism (symbol substitution, jcl_proc._substitute); not built.
  • Program name = SYSIN member, not PROGRAM-ID: mismatches are not mapped (needs the engine's program-id index).
  • Proc libraries whose directory does not carry the dataset's last qualifier still need --copy-libraries.
  • Procs with several compile steps and per-step overrides: refused, not resolved.
  • Batch Badlands H-0071 is a proc-order plant in the estate-crucible repo, not exercised here (no burned estate checked).

Remaining slices

  • Symbolic SYSLIB via SET / proc defaults: copy_libraries.py, test.
  • Program-id mapping for a SYSIN member that differs from PROGRAM-ID.

Gates

  • pytest: copy_jcl_syslib (21), zapp, dbb, copy_libraries_4265, test_source_reads: 77 passed.
  • audit_check.py: ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage all clear; pinned ruff format clean.
  • Not run: crucible_check.py golden bless, pr_gates --ratchets (change only fires where a JCL has JCLLIB and a proc compile step; no golden diff expected, unverified).

🤖 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 20, 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 20, 2026 08:24
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 20, 2026 08:38
@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 20, 2026
@squid-shepherd
squid-shepherd Bot merged commit c153fd1 into main Nov 20, 2026
105 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261120T0211Z branch November 20, 2026 09:09
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@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