Repository navigation
Feature inventory counts a member held in several stages once; production stage stays (Part of #8412) - #8929
Conversation
…oduction stage stays (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #8929 @ 1c1882c: 2 failed check(s) == equivalence-e2e (failure) -- real == shard 1/2 (failure) -- real |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
CI shepherd: the head of this PR (c4183c1) is not the one a maintainer labelled |
Pull request was converted to draft
|
No description provided. |
|
No description provided. |
Part of #8412 (checklist line: change-management stage trees and plain listings)
Checklist: done [c:81671baa]
Note on the DBB line [c:19982422]: already worked on main (#8573
cobol_dependencySearch, #8869 recursive masks). What is left there needs a zBuilder YAML format reference first (see #8869 Remaining slices), so this PR takes the next line's open slices.What
Closes the two Sibling gaps #8574 left on the stage-tree line:
inventory.scan_estateexcluded listings (Feature inventory: compile listings and expanded copies are still counted as programs (follow-up to #8112) #8411) but never ran the census's duplicate-PROGRAM-ID rule, so one Endevor / ChangeMan member held in DEV / QA / PROD was counted three times. It now excludes the duplicates the same way (reported underexcluded_listings, reasonduplicate PROGRAM-ID (exact|near copy ...)).PROD,PRD,PRODUCTION,LIVE, matched on directory names only, never the file name) stays; with no production stage the first sorted path stays, as before.To share the rule,
source_lines,fixed_format_text,program_idandduplicate_reasonsmoved fromtests/tools/cics_census.pytogitgalaxy/tools/readiness/listings.py(already home oflisting_reason);cics_censusre-exports them, so its callers are unchanged.Evidence
tests/tools/test_change_management_listings_8412.py: production stage stays whatever it is called and wherever it sorts (4 names), no production stage keeps first-sorted, aPROD.cblfile name is not a stage, and an inventory run over an authored Endevor tree counts ORDPOST once (PROD) and lists DEV / QA as duplicates. The old DEV-stays assertions are updated.tests/cobol_mainframe/test_feature_inventory.py: its synthetic estate gave all 11 snippetsPROGRAM-ID. P.; each now gets its own (they are different programs).GITGALAXY_NIGHTLY=1, all burned estates) pass, so no burned estate holds a duplicate PROGRAM-ID.audit_check.pyall clear; pinned ruff 0.17.4 format and check clean on the changed files.pr_gates --ratchets/ golden bless (no detector or language rule changed; code runs only in the readiness tools).Class / Sibling gaps
Class: a COBOL source file in an estate that is not the estate's own program, because it is a stage copy or a compile listing. Members: banner listing (handled, #8112); listing path (handled); dense numbered listing 20+ lines (handled); short numbered listing (handled, #8574); same member in several stages, census (handled, #8574); same member in several stages, feature inventory (handled, this PR); which stage stays the program (handled, this PR: production stage first). Sibling gaps: (1) other readers of the estate's program list (
gap_prevalence,era_distribution,assess) go throughscan_estate, so they inherit the dedupe; no separate reader walks the tree itself, none found. (2) A stage tree whose production stage has a name outside PROD / PRD / PRODUCTION / LIVE (a site-specific code such asP01) falls back to first-sorted: not detectable by shape, out of scope. (3) A listing with no numbers, banner or path is not detectable by shape: out of scope.Remaining slices
None for this line.
Lessons for agents
DATA_TYPES) is not valid for the det parser and silently drops that program's data types from an inventory: derive a test PROGRAM-ID with hyphens.ruff check <files>alone misses the per-file rules (B905 here);audit_check.pyreports it.Doc-refs fixes: none.
🤖 Generated with Claude Code