Skip to content

Read zapp.yaml COBOL copy libraries into the declared SYSLIB order (Part of #8412) - #8565

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-zapp-yaml-20261117T1144Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-zapp-yaml-20261117T1144Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412 (checklist line: zapp.yaml copy paths)

Checklist: partial [c:zapp-yaml]

What

A Z Open Editor zapp.yaml names the SYSLIB order of a COBOL estate. declared_dirs_in_folder (gitgalaxy/standards/language_lens.py) now reads it beside .cobolplugin/proc_grps.json and .vscode/settings.json: every type: local library of a language: cobol property group, in declaration order, each locations glob (**/COPYBOOK, a/*, ?) expanded over the folder's directories (case-folded, matches sorted, walk capped at 20000 dirs, .git / node_modules pruned). Both consumers pick it up with no further change: the implicit COPY resolver (network_risk_sensor._resolve_implicit_library, so same-name members resolve in declared order instead of falling to the default resolver) and the aperture's declared-library admission.

mvs entries, ${...} variables, absolute or parent-escaping paths, other languages' groups, a malformed file and a missing PyYAML all declare nothing (lazy yaml import).

Design: reuse the existing declared-directory seam rather than translate zapp.yaml into a --copy-libraries JSON, so a scan with no flag behaves like the proc_grps / settings cases.

Evidence

  • tests/cobol_mainframe/test_copy_zapp_yaml_8412.py: 19 pass. The 4 end-to-end order tests (real scans, invented names: q-first, p-first, glob, nearer zapp.yaml) fail without the change; the reader tests cover glob forms, declaration order, dedupe, and the seven declare-nothing shapes.
  • pr_gates --fast (under heavy-run / bg-job): 9/9 pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected), run with the CI-pinned ruff 0.17.4 / mypy 2.4.1 binaries.
  • Not run: --ratchets and a golden bless (no extraction rule changed; the new code only runs when a zapp.yaml is present; the crucible-audit CI check is the confirmation).

Class / Sibling gaps

Class: workspace-declared COBOL copy-library order that a scan reads with no --copy-libraries: proc_grps.json (handled, #8111), settings.json cpy-manager (handled, #8111), zapp.yaml (this PR), DBB application-conf / file.properties (missing), JCL SYSLIB DD / JCLLIB ORDER (missing).

Sibling gaps (no issues filed; each is a remaining #8412 checklist line or a limit of this one):

  • DBB application-conf / file.properties copy paths (dbb-mortgage-application): a different file format and property-key mechanism, own line.
  • Copy-library order from JCL (//SYSLIB DD, JCLLIB ORDER=): needs a JCL reader, own line.
  • zapp.yaml language: pl1 include libraries and the named libraries (MYLIB, MYFILE) for COPY x IN MYLIB: here every local cobol library joins one search order and IN lib still resolves by directory name; honoring named libraries and PL/I needs a per-library structure, not a flat directory list.
  • zapp.yaml type: mvs data sets: no directory to map, so they declare nothing.
  • Per-program property-group selection (multiple cobol groups applying to different programs): groups are concatenated.

Remaining slices

None for this line beyond the sibling gaps above. Checklist lines already merged but unticked: Archived members (#8419) and RECFM=V (#8562).

🤖 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 17, 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 17, 2026 12:19
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 12:19
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 17, 2026 12:22
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8565 @ e225cef: 1 failed check(s)

== Small audits (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44081863817/job/134034201246
repro: no local equivalent; read the check page
errors:
##[error]Process completed with exit code 1.
log tail:
{
echo "## ⚠️ This PR modifies a golden-crucible fixture"
echo ""
echo "Files changed ($(echo "$CHANGED" | wc -l) golden-master part(s)):"
echo '' echo "$CHANGED" | head -n 100 echo ''
echo ""
echo "These files should only ever change via `tests/tools/update_golden_master.py`,"
echo "and the PR description should explain why GitGalaxy's output was expected to"
echo "change. Reviewers: confirm the description covers this before approving."
echo "For the semantic diff: `python tests/tools/bless_scope.py --from-head tests/golden_master_audit`."
} >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
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
BASE_REF: main
##[endgroup]
No golden master fixture changes in this PR.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/2c963cd4-8809-4764-8b59-a81850118a62' 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 17, 2026
@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 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

…through a constant (Part of #8412)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (2bfa142) 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 17, 2026 13: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 17, 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 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 13:16
@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 17, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 13:17
@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 17, 2026
@squid-shepherd
squid-shepherd Bot merged commit caca432 into main Nov 17, 2026
123 of 158 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-zapp-yaml-20261117T1144Z branch November 17, 2026 14:18
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