Repository navigation
Fix GuideStar IGNORED_DIRECTORIES pointing at wrong config dict - #319
Merged
Merged
Conversation
Fixes #311. GUIDESTAR_CONFIG never defined IGNORED_DIRECTORIES, so _calculate_documentation_coverage's dirs[:] pruning always fell back to an empty set and silently scanned node_modules, .git, vendor, build, etc. on every run. Reference APERTURE_CONFIG's set directly so there's one source of truth instead of a second copy that can drift. Co-Authored-By: Claude Sonnet 5 <[email protected]>
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.
Summary
GuideStarLens._gs_configis bound toGUIDESTAR_CONFIG, which only definedMANIFEST_MAP,INTENT_BIASED_SECTORS, andEXEC_PREFIX_MAP— noIGNORED_DIRECTORIESkey._calculate_documentation_coverage'sdirs[:]pruning (guidestar_lens.py:472) readsself._gs_config.get("IGNORED_DIRECTORIES", set()), which therefore always fell back to an empty set, so the fix from Documentation-coverage scan doesn't prune os.walk, walks every file in node_modules/.git/etc. anyway #256 was silently a no-op and every scan walkednode_modules,.git,vendor,build, etc."IGNORED_DIRECTORIES": APERTURE_CONFIG["IGNORED_DIRECTORIES"]toGUIDESTAR_CONFIG's definition ingitgalaxy_config.py, giving a single source of truth instead of a second set that can drift.Fixes #311
Test plan
python -m pytest tests/core_engine/test_guidestar_lens.py -q— 5 passedpython -m pytest tests/ -q— 778 passed, 1 xfailed