Repository navigation
Census listings: short banner-less numbered listings; stage-tree claiming pinned (Part of #8412) - #8574
Merged
Conversation
…e-tree claiming (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
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: change-management stage trees and banner-less compile listings.
Checklist: partial [c:81671baa] -- plain listings and the census's stage-tree claiming are done and tested; the feature inventory still counts every stage copy, and "first sorted stage stays the program" is not stage-aware.
What changed
listing_reason(gitgalaxy/tools/readiness/listings.py) missed a short listing with no banner and no listing path: the numbered-listing rule needs 20+ lines and a number above 49 (to rule out level numbers), so 8-24 line listings counted as programs. New rule: 8+ lines, 90% numbered, 90% of steps exactly +1 (level numbers 01/05/10 never step by one). Reason:listing line numbers (space-padded, consecutive).cics_census.not_program_rowson an Endevor-style tree (same member in DEV / QA / PROD). It already lists the later copies asduplicate PROGRAM-ID(exact or near) and keeps one; no code change. Pinned by the new test, including a listing copy sitting in the first stage.tests/tools/test_change_management_listings_8412.py: authored invented-name tree and listings (built in tmp_path), plus a real short program and level-number guard.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 (this PR); same member in several stages, census (handled, pinned here); same member in several stages, feature inventory (missing); which stage stays the program (partial: first sorted path); listing with no numbers, banner or path (not detectable by shape: out of scope). Sibling gaps: (1)
inventory.pyexcludes listings but never callsduplicate_reasons, so stage copies are counted several times; needs a shared dedupe in listings.py plus inventory fixture counts. (2) Stage choice: prefer the production stage dir name (PROD/PRD/LIVE) over sort order. Source: probe in this PR.Remaining slices
Sibling gaps 1 and 2 above, in that order (listings.py, inventory.py, test, fixture counts).
Gates
audit_check.pyall clear; test_source_reads, change_classifier, sweep_plan guards pass; new + 8112 + feature_inventory tests pass. No golden (no detector change). ruff format applied.Doc-refs fixes: none.
🤖 Generated with Claude Code