Skip to content

Feature inventory: skip compile listings and .expanded copies, report excluded_listings (Part of #8411) - #8555

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8411-20261117T0555Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8411-20261117T0555Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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 an excluded_listings key: count, by_reason (reason -> count) and members (path + reason). The key is added only when the estate has a listing, so the six older inventories stay byte-identical.

  • listing_reason and its constants moved to gitgalaxy/tools/readiness/listings.py (the package cannot import from tests/); tests/tools/cics_census.py re-exports them, behaviour unchanged (its 24 Inventory: compile listings, expanded copies and duplicate PROGRAM-IDs are not programs #8112 tests pass).
  • Schema: optional excluded_listings object.
  • Test: the combined synthetic estate gains an .expanded/ copy and a banner listing; they appear under excluded_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

  • Regenerate tests/fixtures/feature_inventory/example-health-apis.json (expect 29 eras.programs, no .expanded/ path, excluded_listings present) and then tighten test_schema_over_fixtures to assert it. Blocked: the local clone .mainframe_corpora/example-health-apis is empty (no commits) and mainframe_corpus.py fetch example-health-apis fails with "Repository not found" for https://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, and feature_inventory.py --all-burned --check for the six older fixtures (no stale fixture). Doc-refs fixes: gitgalaxy/tools/readiness/README.md (row for listings.py); audit_check clear.

pr_gates --fast: lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet pass. The affected step runs 159 files (3242 passed, 2 failed): test_assess_clean_install[example-health-apis] and test_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

  • An empty burned-corpus clone (only .git) makes tools silently report zero programs and fails burned-estate tests: check ls -A of the clone before reading a failure as yours.
  • affected_tests.py runs ~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.yml hashFiles now excludes readiness/listings.py (a scan never imports it; test_ground_truth_scan_key_workflow pins it). pr_gates --fast affected 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

…hem under excluded_listings (Part of #8411)

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 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8555 @ 4ec7b2c: 1 failed check(s)

== Small audits (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44032425654/job/133867271642
repro: no local equivalent; read the check page
errors:
doc-refs: FAIL, 1 new finding(s). Fix the doc (or the code), or narrow the check in this script:
##[error]Process completed with exit code 1.
log tail:
{
echo "## ⚠️ This PR modifies a golden-crucible fixture"
echo ""
echo "Files changed ($(echo "$CHANGED" | wc -l) golden-master part(s)):"
echo '' echo "$CHANGED" | head -n 100 echo ''
echo ""
echo "These files should only ever change via `tests/tools/update_golden_master.py`,"
echo "and the PR description should explain why GitGalaxy's output was expected to"
echo "change. Reviewers: confirm the description covers this before approving."
echo "For the semantic diff: `python tests/tools/bless_scope.py --from-head tests/golden_master_audit`."
} >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
BASE_REF: main
##[endgroup]
No golden master fixture changes in this PR.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/336023a3-18f2-4639-ba60-b61756c2de3a' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@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 (fd28ca9) 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 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.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 06:49
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 06:50
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Comment on lines +167 to +174
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,
)
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 17, 2026 07:05
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8555 @ fd28ca9: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44034126288/job/133874407038
repro: python -m pytest -q tests/core_engine/test_ground_truth_scan_key_workflow.py::test_network_readiness_and_supply_chain_dirs_are_hashed_exactly_when_the_scan_imports_them
failing tests: tests/core_engine/test_ground_truth_scan_key_workflow.py::test_network_readiness_and_supply_chain_dirs_are_hashed_exactly_when_the_scan_imports_them
errors:
fail-on-cache-miss: false
E AssertionError: gitgalaxy/tools/readiness/listings.py
tests/core_engine/test_ground_truth_scan_key_workflow.py:157: AssertionError
FAILED tests/core_engine/test_ground_truth_scan_key_workflow.py::test_network_readiness_and_supply_chain_dirs_are_hashed_exactly_when_the_scan_imports_them - AssertionError: gitgalaxy/tools/readiness/listings.py
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 1048970
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is ce6793325a24707adddd46a48b937412a842298573c90e550e08f3d5c7111589
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 14307416854
Artifact test-times-part-3 has been successfully uploaded! Final size is 1048970 bytes. Artifact ID is 14307416854
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44034126288/artifacts/14307416854
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/8ff41806-7924-46c8-a5f0-05bfdb83f9da' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@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 (840a8c4) 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 08:09
@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.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 08:43
@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
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 08:45
@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 981ac1d into main Nov 17, 2026
106 of 141 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8411-20261117T0555Z branch November 17, 2026 09:42
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.

2 participants