Repository navigation
Feature inventory: skip compile listings and .expanded copies, report excluded_listings (Part of #8411) - #8555
Conversation
…hem under excluded_listings (Part of #8411) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #8555 @ 4ec7b2c: 1 failed check(s) == Small audits (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (fd28ca9) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
| from gitgalaxy.tools.readiness.listings import ( # noqa: E402, F401 -- #8411: moved to the package, re-exported | ||
| LISTING_DIRS, | ||
| LISTING_MARKERS, | ||
| LISTING_NAME, | ||
| LISTING_NUMBER_MIN_LINES, | ||
| _LISTING_NUMBER, | ||
| listing_reason, | ||
| ) |
|
PR #8555 @ fd28ca9: 1 failed check(s) == full-suite part 3/3 (failure) -- real |
…t out of the hash (Part of #8411) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (840a8c4) is not the one a maintainer labelled |
|
No description provided. |
Part of #8411 (first slice: the engine, schema and authored-estate test; the example-health-apis inventory regeneration is blocked, see Remaining slices).
scan_estate(feature inventory) now skips compile listings and.expanded/copies with the same test the CICS census uses (listing_reason, #8112), and reports them under anexcluded_listingskey:count,by_reason(reason -> count) andmembers(path + reason). The key is added only when the estate has a listing, so the six older inventories stay byte-identical.listing_reasonand its constants moved togitgalaxy/tools/readiness/listings.py(the package cannot import fromtests/);tests/tools/cics_census.pyre-exports them, behaviour unchanged (its 24 Inventory: compile listings, expanded copies and duplicate PROGRAM-IDs are not programs #8112 tests pass).excluded_listingsobject..expanded/copy and a banner listing; they appear underexcluded_listings, in no category and no era tag, and the real programs stay. The fixture test asserts the six older fixtures carry no such key.Class / Sibling gaps
Class: every consumer that enumerates an estate's COBOL members from the tree instead of from the census's program test. Members: CICS census (handled, #8112); feature inventory
scan_estate(handled here);tests/tools/statement_inventory.py(own program walk: not checked here);det_survey.py(handled for hidden dirs, #8075).Sibling gaps: statement_inventory.py member enumeration (same mechanism, not verified/changed here to keep this slice small, source:
tests/tools/statement_inventory.py).Remaining slices
tests/fixtures/feature_inventory/example-health-apis.json(expect 29eras.programs, no.expanded/path,excluded_listingspresent) and then tightentest_schema_over_fixturesto assert it. Blocked: the local clone.mainframe_corpora/example-health-apisis empty (no commits) andmainframe_corpus.py fetch example-health-apisfails with "Repository not found" forhttps://github.com/ibm/example-health-apis/. Needs a reachable copy at the pinned ref.Gates run
ruff format+ pinned-ruff check on the new/changed package files,pytest tests/cobol_mainframe/test_feature_inventory.py tests/tools/test_cics_census_listing_8112.py, andfeature_inventory.py --all-burned --checkfor the six older fixtures (no stale fixture). Doc-refs fixes:gitgalaxy/tools/readiness/README.md(row forlistings.py);audit_checkclear.pr_gates --fast: lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet pass. Theaffectedstep runs 159 files (3242 passed, 2 failed):test_assess_clean_install[example-health-apis]andtest_container_datatype_change_reach_5005::test_no_burned_put_names_a_data_type_but_char. Both read the example-health-apis clone, which is empty on this box (only.git), so they find 0 programs; unrelated to this diff (neither touches listings or the inventory). They need the clone restored, the same blocker as the Remaining slice.Lessons for agents
.git) makes tools silently report zero programs and fails burned-estate tests: checkls -Aof the clone before reading a failure as yours.affected_tests.pyruns ~16 min here; run it in the background and read the log, never in a 600 s foreground call.Doc-refs fixes: gitgalaxy/tools/readiness/README.md
Fix rounds:
mainframe-ground-truth.ymlhashFiles now excludesreadiness/listings.py(a scan never imports it;test_ground_truth_scan_key_workflowpins it).pr_gates --fastaffected gate: 2 remaining failures (test_assess_clean_install[example-health-apis],test_container_datatype_change_reach_5005) need the example-health-apis sources, absent from this box's empty clone; they are environmental, not from this change.🤖 Generated with Claude Code