Repository navigation
Read zapp.yaml COBOL copy libraries into the declared SYSLIB order (Part of #8412) - #8565
Conversation
…art of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #8565 @ e225cef: 1 failed check(s) == Small audits (failure) -- real |
|
No description provided. |
…through a constant (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (2bfa142) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
Part of #8412 (checklist line: zapp.yaml copy paths)
Checklist: partial [c:zapp-yaml]
What
A Z Open Editor
zapp.yamlnames the SYSLIB order of a COBOL estate.declared_dirs_in_folder(gitgalaxy/standards/language_lens.py) now reads it beside.cobolplugin/proc_grps.jsonand.vscode/settings.json: everytype: locallibrary of alanguage: cobolproperty group, in declaration order, eachlocationsglob (**/COPYBOOK,a/*,?) expanded over the folder's directories (case-folded, matches sorted, walk capped at 20000 dirs,.git/node_modulespruned). 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.mvsentries,${...}variables, absolute or parent-escaping paths, other languages' groups, a malformed file and a missing PyYAML all declare nothing (lazyyamlimport).Design: reuse the existing declared-directory seam rather than translate zapp.yaml into a
--copy-librariesJSON, 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.--ratchetsand a golden bless (no extraction rule changed; the new code only runs when azapp.yamlis 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), DBBapplication-conf/file.properties(missing), JCLSYSLIB DD/JCLLIB ORDER(missing).Sibling gaps (no issues filed; each is a remaining #8412 checklist line or a limit of this one):
application-conf/file.propertiescopy paths (dbb-mortgage-application): a different file format and property-key mechanism, own line.//SYSLIB DD,JCLLIB ORDER=): needs a JCL reader, own line.language: pl1include libraries and the named libraries (MYLIB,MYFILE) forCOPY x IN MYLIB: here every local cobol library joins one search order andIN libstill resolves by directory name; honoring named libraries and PL/I needs a per-library structure, not a flat directory list.type: mvsdata sets: no directory to map, so they declare nothing.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