Repository navigation
DBB zBuilder dbb-app.yaml impactQueryPatterns read into the declared copy-library order (Part of #8412) - #8984
Merged
Conversation
…copy-library order (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
13 tasks done
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: done [c:19982422]
What
The DBB
application-conf/file.propertiesreader landed in #8573, #8869 and #8968. The burned DBB estate (dbb-mortgage-application) uses the DBB 3.x zBuilder layout instead, where the copybook directories are named indbb-app.yaml, and nothing read them. This reads theimpactQueryPatternsvariable (any task): thedependencyPatternsof a COBOLlanguageExtentry (cbl, cob, cobol, pco) whose file mask is a copybook extension (cpy, copy, cpb, cobcpy, cobcopy, dcl, inc), in declaration order, into the declared copy-library order (declared_dirs_in_folder). A same-name member then resolves in the declared order instead of being refused as ambiguous.Real estate:
declared_dirs_in_folder(zBuilder/MortgageApplication)now returns thecopybookdirectory.Class / Sibling gaps
Class: a build/IDE configuration file that names the SYSLIB order of a COBOL workspace (proc_grps.json, cpy-manager paths, zapp.yaml, zapp named libraries, DBB application-conf, DBB dbb-app.yaml, JCL SYSLIB / JCLLIB). Members: proc_grps, settings.json, zapp.yaml SYSLIB and named libraries, application-conf (all three files,
::scoped values refused by design) are handled (#8111, #8850, #8573, #8869, #8968); dbb-app.yaml handled here. Sibling gaps: the zBuilder language YAMLs (copyLibraries-style dataset names in${HLQ}.*.COPY) name MVS datasets, not local directories, and stay out of scope. The JCL SYSLIB / JCLLIB line of the issue is a separate checklist item.Tests
tests/cobol_mainframe/test_copy_dbb_app_yaml_8412.py(authored fixtures, invented names): the reader over pattern forms (variable, literal and case-folded application name, recursive mask, other copybook extensions, repeats), entries that declare nothing (link card, other variable, unresolved variable, escaping path, missing dir, no mask, malformed, list, empty), and a real scan where the declared order picks the winner for two same-name members. 79 copy tests pass with the zapp and application-conf files.Gates:
pr_gates --fastwas 8/9 (lint, secrets, xray, gen-docs, derived, workflows, gauntlet and affected passed; audits failed on one mypy finding). Fixed since, then mypy_audit, dead_key_audit, ruff format and the 54 copy tests (dbb-app.yaml and application-conf) re-run clean; theaffectedgate ran on the tree before that fix and was not re-run.🤖 Generated with Claude Code