Repository navigation
DBB cobol_dependencySearch: a recursive mask declares its base directory too (Part of #8412) - #8869
Merged
Merged
Conversation
…ory too (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 21, 2026
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 line: IBM DBB application-conf / file.properties copy paths)
Checklist: partial [c:19982422] -- DBB: cobol_dependencySearch (#8573) and now its recursive masks are read; zBuilder YAML and scoped per-file values are left (see Sibling gaps)
What
#8573 reads
cobol_dependencySearchfrom DBBapplication-conf/*.propertiesinto the declared COPY library order. Its Sibling gaps named recursive?path=masks as incomplete; checked on main with an authored tree (FakeApp/copybook/sub/deep):?path=FakeApp/copybook/**/*.cpydeclared onlycopybook/subandcopybook/sub/deep, nevercopybookitself. A member in the base directory was then outside the declared order, so a same-name member in a subdirectory could win over it (or the base was not a library at all).gitgalaxy/standards/language_lens.py,_dbb_copy_globs): a glob ending in/**(after the file mask is dropped) also declares the directory before it, first, then the subdirectories in sorted glob order.**with no file mask stays the mask (as*.cpyis):?path=App/n/**declaresnonly. Pinned by a test so it is a stated choice.Evidence
tests/cobol_mainframe/test_copy_dbb_conf_8412.py: new cells for four mask shapes (n/**/*.cpy,n/**,n/**/c/*.cpy,n/*/*.cpy) and one for a scoped (::pattern) override line that leaves the unscoped value in force. The recursive-mask cell fails on main (base dir missing). 31 pass; with the zapp / copy-layout sibling tests, 394 pass.pr_gates --fastdid NOT complete: two runs via heavy-run.sh were killed at their background time limit with no output (box slot never freed). Done instead: CI-pinned ruff 0.17.4 format on both files, 31 + sibling tests,churn selfcheck0 problems. CI is the lint/mypy confirmation.--ratchets/ golden bless (code runs only when anapplication-confdirectory exists; no extraction rule changed). crucible-audit CI is the confirmation.Class / Sibling gaps
Class: workspace-declared COBOL copy-library order that a scan reads with no
--copy-libraries(proc_grps.json, settings.json cpy-manager, zapp.yaml, DBBapplication-conf, JCL SYSLIB / JCLLIB). Members handled: proc_grps.json (#8111), settings.json (#8111), zapp.yaml (#8565, #8850), DBBcobol_dependencySearchincluding recursive masks (#8573, this PR), JCL SYSLIB / JCLLIB (#8656, #8752, #8753, #8766).Sibling gaps (no issues filed):
dbb-app.yamllanguage configuration): different file format, no authored source of its search-path keys in the corpora; own slice, needs a format reference first.cobol_cpyPDS/cobol_compileSyslibConcatenation/cobol_dependenciesDatasetMapping: MVS data sets, no directory to map (an estate shipping its compile JCL goes through the JCL reader).value :: **/cobol/x.cblinfile.properties): skipped on purpose (they apply to some programs only); a per-program order would need a per-file declaration.*.cpyvs*.copy): every file in a declared directory counts regardless of extension.copybookSearch/impactSearch(application-level, not COBOL-specific): read only through a${copybookSearch}reference incobol_dependencySearch.Remaining slices
zBuilder YAML reader (1 source file + 1 test), once a format reference exists. Nothing else for this line.
Lessons for agents
pytest -k copyover all oftests/cobol_mainframe/runs for minutes and times out a foreground call: name the sibling test files.🤖 Generated with Claude Code