Skip to content

DBB cobol_dependencySearch: a recursive mask declares its base directory too (Part of #8412) - #8869

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261121T1106Z
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261121T1106Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_dependencySearch from DBB application-conf/*.properties into 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/**/*.cpy declared only copybook/sub and copybook/sub/deep, never copybook itself. 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).
  • Fix (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.
  • A trailing ** with no file mask stays the mask (as *.cpy is): ?path=App/n/** declares n only. 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.
  • Invented names only; no remaining candidate read.
  • pr_gates --fast did 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 selfcheck 0 problems. CI is the lint/mypy confirmation.
  • Not run: --ratchets / golden bless (code runs only when an application-conf directory 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, DBB application-conf, JCL SYSLIB / JCLLIB). Members handled: proc_grps.json (#8111), settings.json (#8111), zapp.yaml (#8565, #8850), DBB cobol_dependencySearch including recursive masks (#8573, this PR), JCL SYSLIB / JCLLIB (#8656, #8752, #8753, #8766).

Sibling gaps (no issues filed):

  • DBB zBuilder YAML (dbb-app.yaml language 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).
  • Per-file values (value :: **/cobol/x.cbl in file.properties): skipped on purpose (they apply to some programs only); a per-program order would need a per-file declaration.
  • The file mask extension (*.cpy vs *.copy): every file in a declared directory counts regardless of extension.
  • copybookSearch / impactSearch (application-level, not COBOL-specific): read only through a ${copybookSearch} reference in cobol_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 copy over all of tests/cobol_mainframe/ runs for minutes and times out a foreground call: name the sibling test files.

🤖 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 21, 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 21, 2026 12:33
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 12:34
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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