Repository navigation
Feature inventory: example-health-apis counts the 29 authored programs, lists .expanded copies as excluded (Closes #8411) - #8569
Merged
Conversation
… programs, lists the .expanded copies as excluded (Part 2 of #8411) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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.
Closes #8411
Slice 2 of 2 (slice 1 is #8555, merged). Regenerates
tests/fixtures/feature_inventory/example-health-apis.jsonand tightenstest_schema_over_fixtures.What changed
tests/tools/feature_inventory.py <clone> --out ...(not hand-edited):eras.programsis 29 (was 58, half were.expanded/compile-listing copies), no.expanded/path among programs, and a newexcluded_listingskey (count 29, each member with its path and reason) records the copies that are left out.tests/cobol_mainframe/test_feature_inventory.py: asserts the authored estate (29 programs, none under/.expanded/,excluded_listingscount equals members equals 29, every member under/.expanded/); the era-tag loop skipsexcluded_listingsas a non-program section. The six older fixtures are unchanged and still asserted to carry noexcluded_listings.Source of the scan
Upstream
ibm/example-health-apisis 404, somainframe_corpus.py fetchfails. I scanned a clone of the privatesquid-protocol/example-health-apis-archive(main; its commit message reads "Archive of ibm/example-health-apis at 9cfe321e2028"). I could not verify the tree against the pin: the pinned commit object is not in the archive clone (a fresh single commit) and no local checkout of the pinned corpus exists. The match rests on the archive's own commit message.corpora.jsonis unchanged; it may want a note that the URL is dead and the archive is the source.Class / Sibling gaps
Class: a committed feature-inventory fixture whose program count includes compile-listing copies (hidden-directory
.expanded/files, COPY already inlined) that the authored estate does not contain. Members: the seven burned-estate fixtures. example-health-apis is the only one with such a listing directory, so it is the only member affected and is handled here; the six older fixtures are asserted to have noexcluded_listingskey. Sibling gaps: none known. Residual: the pin-versus-archive tree identity is unverified (above), and the no-jsonschema fallbackvalidateinfeature_inventory.pyrejects the newexcluded_listingssection (I ran withjsonschemainstalled viapip --targetin scratch);--all-burnedin an env without jsonschema would hit the same ValueError if it ever listed this estate.Gates
audit_check.py(ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage): all clear.pytest tests/cobol_mainframe/test_feature_inventory.py: 23 passed, 1 skipped.ruff format --checkclean. No parser/engine code touched, so no golden bless.Lessons for agents
tests/tools/feature_inventory.pywithoutjsonschemainstalled falls back to avalidatethat raises a bareValueErroron a new top-level section such asexcluded_listings; installjsonschemawithpip --targetinto scratch and add it toPYTHONPATH.🤖 Generated with Claude Code