Repository navigation
change_classifier: known doc names from tracked files (Part of #6302) - #6306
Merged
Merged
Conversation
…an earlier test left on disk (Part of #6302) test_the_committed_list_is_fresh failed in the Full Suite Gate because the git-ignored evidence report's report.json, materialised by an earlier test in the job, became a known basename and added a ref to the render. 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 00:32
squid-protocol
enabled auto-merge (squash)
October 24, 2026 00:34
Owner
Author
|
No description provided. |
squid-protocol
added a commit
that referenced
this pull request
Oct 24, 2026
…om git, not the disk (Part of #6302) (#6311) 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]>
This was referenced Oct 24, 2026
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.
Part of #6302 (main red: Full Suite Gate,
test_the_committed_list_is_fresh, ubuntu + macOS, run 40037955445 on af15bc7).Cause:
change_classifier._known_namesglobbeddocs/and.claude/on disk. An earlier test in the CI job materialises the git-ignoreddocs/language_status/evidence_report/*/report.json, soreport.jsonbecame a known basename and the render gained anest/report.jsonref the committed list lacks. A hermeticity bug, not a flake.Fix:
_known_namesreadsgit ls-files(tracked only), falling back to the disk glob without git. The committeddocs_read_by_tests.txtneeded no change. New test builds a temp git repo with an ignored and a tracked doc.Class / Sibling gaps
Class: a generated-list scanner (or its freshness test) whose output depends on untracked or git-ignored files present on disk, so the result differs between a clean checkout and a CI job that already ran other tests.
change_classifier._known_names(tests/tools/change_classifier.py)docs_read_by_tests.txttests/toolsgenerated-list builders that globdocs/or.claude/on diskgrep rglob tests/tools/*.pyfor docs/_ROOTS hits only_known_namesscan()walkstests/,gitgalaxy/and root*.pyon disk.pysources are tracked; a stray file there would be a different bug, not this mechanismSibling gaps: none; every member found is handled.
Facts checked: list fresh at HEAD; freshness test passes with an ignored
est/report.jsonpresent;audit_check.pyall clear.Cross-repo: none.
Lessons for agents
A generated-list freshness test must not depend on ignored or materialised files on disk: scan tracked files (
git ls-files).🤖 Generated with Claude Code