Skip to content

DBB application-conf: a comment ending in a backslash no longer swallows the next property (Part of #8412) - #8968

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261122T0143Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261122T0143Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412. Takes the DBB application-conf / file.properties line.

The other open line ("tab characters and REPLACE reach the det path") is already covered by #8654 (tests/cobol_mainframe/test_det_tab_replace_8412.py), so I did not redo it.

What changed

_dbb_properties (the Java .properties reader behind DBB cobol_dependencySearch) had two continuation bugs, found by reading it against Java properties syntax:

  • A comment line ending in a backslash (# files under C:\build\ws\, a normal thing to write in a DBB conf) continued onto the next line and swallowed the next property, so the whole copy-library declaration vanished and the COPY order fell back to the default.
  • An even run of trailing backslashes (\\, a literal backslash) was treated as a continuation.

Now a comment never continues and only an odd run of trailing backslashes does. New tests also pin that a # at the start of a continuation line belongs to the value, and that the last of two definitions of a key in one file wins. Authored fixtures, invented names.

Checklist: partial [c:19982422] -- reader hardened and pinned; remaining DBB property forms are under Sibling gaps.

Class / Sibling gaps

Class: the DBB application-conf property reader and the copy paths it declares (the Java .properties syntax it must honour, and the zAppBuild properties naming copybook directories). Handled and tested: comments, =/:/whitespace separators, continuations, scoped :: values, the three property files and their override order, ${var} substitution, the search-rule forms, recursive masks (#8573, #8869, this PR). Fixed here: comment-continuation and even-backslash.
Sibling gaps:

  • Escaped separators in a key (k\:x=1 reads key k\): exotic, a DBB key never contains one; source: Java Properties.load.
  • Variable chains deeper than 3 levels stay unresolved and declare nothing; no DBB conf seen nests deeper.
  • cobol_cpyPDS (MVS dataset copy libraries) is not a directory path: out of scope for the file-based order.
  • A ::pattern-scoped cobol_dependencySearch declares nothing (per-program scoping needs the program path in the reader): different mechanism.

Gates

pytest tests/cobol_mainframe/test_copy_dbb_conf_8412.py 35 passed; pr_gates.py --fast 9/9 pass. Not run: --ratchets (the reader only touches application-conf property files, none in the pinned corpora; no golden change expected).

Lessons for agents

  • /tmp/gitgalaxy-scratch/claude/<issue>/ can be shared with another worker on the same issue number: name your files uniquely (a stale body.md was another worker's PR body).

🤖 Generated with Claude Code

…ows the next property (Part of #8412)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 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 22, 2026 02:33
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 02:43
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit f2b9d6b into main Nov 22, 2026
105 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261122T0143Z branch November 22, 2026 03:28
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