Skip to content

Read DBB application-conf cobol_dependencySearch into the declared copy-library order (Part of #8412) - #8573

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/8412-20261117T1352Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/8412-20261117T1352Z

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: 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 edit declared_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 are gitgalaxy/standards/language_lens.py (the DBB reader, plus _expand_dir_globs factored out of _zapp_dirs) and tests/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, key cobol_dependencySearch: ordered search:[:copy]<root>/?path=<dir>/*.cpy;<dir2>/*.cpy rules, directories relative to the workspace (the parent of the application folder). declared_dirs_in_folder now 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).

  • Files read: application.properties, Cobol.properties, file.properties (file names case-folded; a later file overrides an earlier one).
  • Java properties syntax: # / ! comments, = or : separators, \ line continuations, ${name} resolved from the same files plus ${application} (the folder name) and ${workspace} (the root, dropped).
  • Rule forms: absolute or ${workspace} root, ; or , lists, several search: rules, backslashes, ** globs (shared expander with zapp.yaml), the file mask (*.cpy) dropped, the application-name prefix (case-folded) stripped.
  • Declares nothing: [: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-directory application-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).
  • Format source of truth: the shape of the property comes from the dbb-mortgage-application dump in Templates/Common-Backend-Scripts/test/logs (cobol_dependencySearch=search:<root>/?path=MortgageApplication/copybook/*.cpy); that corpus carries no application-conf itself, so only authored fixtures are used.
  • Not run: --ratchets and a golden bless (no extraction rule changed; the code runs only when an application-conf directory 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), DBB application-conf cobol_dependencySearch (this PR), DBB dataset-based settings and JCL SYSLIB DD / JCLLIB ORDER (missing).

Sibling gaps (no issues filed):

  • DBB zBuilder YAML (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.
  • Per-file values (value::**/cobol/x.cbl in file.properties) and the mask extension (*.cpy): scoped values are skipped, and every file in a declared directory counts regardless of extension.
  • Recursive ?path=.../** masks name subdirectories too; only the directory itself is declared.
  • copybookSearch / impactSearch (application-level, not COBOL-specific): not read.
  • Copy-library order from JCL (//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

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 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 17, 2026 14:17
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 14:17
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 17, 2026 14:22
@squid-shepherd

Copy link
Copy Markdown
Contributor

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.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (fe6fa91) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 17, 2026 15:00
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 17, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 15:02
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

2 similar comments
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 15:02
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd
squid-shepherd Bot merged commit 47b9f9e into main Nov 17, 2026
113 of 144 checks passed
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