Repository navigation
change_classifier: .py scan and ground-truth scopes read git's file list, not the disk (Part of #6302) - #6311
Merged
Merged
Conversation
…om git, not the disk (Part of #6302) Sibling of #6306: the .py collection globbed the working tree, so an ignored or scratch file an earlier test left behind could change the committed docs_read_by_tests.txt the same way report.json did. One _repo_files/_py_files helper now serves _known_names, scan and ground_truth_scopes (git's tracked + new-not-ignored view, disk without git). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 01:27
Owner
Author
|
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.
What
The only real failure in main's Full Suite Gate run 40037955445 (
test_the_committed_list_is_fresh, ubuntu/macOS 3.11 part 2) was fixed by #6306 for_known_names. This PR sweeps the same-mechanism siblings:scan()andground_truth_scopes()globbed.pyfiles from the working tree. A shared_repo_files/_py_fileshelper now usesgit ls-files --cached --others --exclude-standard(disk fallback without git), so an ignored or scratch file can't change the committeddocs_read_by_tests.txtor the ground-truth plan.Tests
tests/tools -k "classifier or ground_truth_plan or critical_path": 115 passed;audit_check.py: all clear; committed list unchanged.Part of #6302 (not Closes): it closes when Full Suite Gate next succeeds on main; no run has happened since #6306 merged, so it needs a
workflow_dispatch.Lessons for agents
Any test/generator that renders a committed artifact from the tree must list files via git, not glob: earlier tests in the same job leave ignored files behind.
🤖 Generated with Claude Code