Repository navigation
Full-scan census warns about untracked files (Part of #138) - #6394
Conversation
… of #4479) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #6394 @ eee9bbe: 1 failed check(s) == full-suite part 3/3 (failure) -- real |
|
No description provided. |
|
Waiting on an owner decision (asked privately, 2026-10-25). Nothing is needed from contributors; work resumes once it is answered. |
|
No description provided. |
What changed
gitgalaxy/galaxyscope.py: new_untracked_files(root)/_untracked_warning()helpers._build_file_census(git path, non-single-file) now runsgit ls-files --others --exclude-standardafter the census and logs oneUNTRACKED_FILESwarning (count, first 5 names,git addhint); the list is kept onscope.untracked_files. The delta-scan site (Delta scan (--incremental) silently drops files: 1,193 vs 1,295 for the same commit (102 missing, e.g. gitgalaxy/standards, workflows) #4483) that had its own inline copy of the same query now uses the helpers.tests/core_engine/test_untracked_warning_138.py(7 tests, real temp git repos): untracked warns and is not in the census; modified-unstaged is scanned and does not warn; clean repo; gitignored untracked; non-git dir; git missing; list truncation.Root cause
With git present the census is
git ls-files, which lists only tracked paths, so untracked files are dropped silently. Modified-unstaged tracked files are listed and read from disk, so they are scanned and need no warning..gitgalaxy/(the engine's own cache dir, created on every run) is excluded from the report, otherwise every clean repo would warn (found by the clean-repo test).Self-scan queries used
3 sqlite3 queries on the regenerated DB (aperture.py function list; name search for git/census functions; galaxyscope
_build_file_census/_get_git_auditlocations) to find that the git census lives ingalaxyscope._build_file_census, not aperture.Tests
New file 7 passed;
test_galaxyscope.py -k "census or delta or incremental"3 passed;ruff format/ruff checkclean (S101 ignored for the test file, as pytest-style asserts). No golden bless, crucible_check, pr_gates or full suite run (cost cap).Class / Sibling gaps
chronometer._scan_git_historyalso usesgit ls-filesand silently omits untracked files from history math; not warned there (the census warning covers the scan).--single-filetargets are not checked.Part of #4479
🤖 Generated with Claude Code