Repository navigation
Read DBB application-conf cobol_dependencySearch into the declared copy-library order (Part of #8412) - #8573
Conversation
…art of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…through a constant (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…py-library order (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (fe6fa91) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
2 similar comments
|
No description provided. |
|
No description provided. |
Part of #8412 (checklist line: IBM DBB application-conf / file.properties copy paths)
Checklist: partial [c:19982422] -- DBB: application-conf cobol_dependencySearch done; zBuilder YAML, file.properties scoped values and dataset settings left (see Sibling gaps)
Checklist: partial -- DBB
Stacked on #8565 (zapp.yaml, open,
shepherd:merge): both editdeclared_dirs_in_folder, so this branch merges that PR's head and its files show in this diff until it merges. This PR's own hand-written files aregitgalaxy/standards/language_lens.py(the DBB reader, plus_expand_dir_globsfactored out of_zapp_dirs) andtests/cobol_mainframe/test_copy_dbb_conf_8412.py. After #8565 merges the diff is those two files only.What
A DBB (zAppBuild) application names its copybook search order in
application-conf/*.properties, keycobol_dependencySearch: orderedsearch:[:copy]<root>/?path=<dir>/*.cpy;<dir2>/*.cpyrules, directories relative to the workspace (the parent of the application folder).declared_dirs_in_foldernow reads it beside zapp.yaml, proc_grps.json and settings.json, so the implicit COPY resolver and the aperture's declared-library admission pick it up with no further change (same seam as #8565).application.properties,Cobol.properties,file.properties(file names case-folded; a later file overrides an earlier one).#/!comments,=or:separators,\line continuations,${name}resolved from the same files plus${application}(the folder name) and${workspace}(the root, dropped).${workspace}root,;or,lists, severalsearch:rules, backslashes,**globs (shared expander with zapp.yaml), the file mask (*.cpy) dropped, the application-name prefix (case-folded) stripped.[:LINK]and other bracketed rules,?file=rules, undefined variables, absolute or parent-escaping paths, missing directories, a value scoped with::pattern, other languages' keys, a missing / non-directoryapplication-conf, an unreadable file.Evidence
tests/cobol_mainframe/test_copy_dbb_conf_8412.py: 26 pass (with the zapp file, 46). The two end-to-end order tests (real scans, invented names: q-first, p-first) fail without the change; the reader tests cover 10 rule forms, 7 declare-nothing shapes, Java properties syntax, file precedence and scoped values.pr_gates --fast: 9/9 pass (CI-pinned ruff 0.17.4 / mypy 2.4.1 binaries).dbb-mortgage-applicationdump inTemplates/Common-Backend-Scripts/test/logs(cobol_dependencySearch=search:<root>/?path=MortgageApplication/copybook/*.cpy); that corpus carries noapplication-confitself, so only authored fixtures are used.--ratchetsand a golden bless (no extraction rule changed; the code runs only when anapplication-confdirectory exists); 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 (#8565), DBBapplication-confcobol_dependencySearch(this PR), DBB dataset-based settings and JCLSYSLIB DD/JCLLIB ORDER(missing).Sibling gaps (no issues filed):
zBuilder/*/dbb-app.yaml, language configuration): a different file format, own slice.cobol_cpyPDS/cobol_compileSyslibConcatenation/cobol_dependenciesDatasetMapping: MVS data sets, no directory to map.value::**/cobol/x.cblinfile.properties) and the mask extension (*.cpy): scoped values are skipped, and every file in a declared directory counts regardless of extension.?path=.../**masks name subdirectories too; only the directory itself is declared.copybookSearch/impactSearch(application-level, not COBOL-specific): not read.//SYSLIB DD,JCLLIB ORDER=): needs a JCL reader, own checklist line.Remaining slices
None for this line beyond the sibling gaps above.
🤖 Generated with Claude Code