You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found in passing while working on PR #2410 (unrelated to that PR's Python import-resolution scope).
Context: Running the resolution benchmark suite (tests/benchmarks/resolution/) builds the graph in-place against fixture directories under tests/benchmarks/resolution/fixtures/jelly-micro/*/, leaving .codegraph/ directories (e.g. changes.journal) behind. git status reports these as untracked after a local npm test run:
tests/benchmarks/resolution/fixtures/jelly-micro/accessors3/.codegraph/
tests/benchmarks/resolution/fixtures/jelly-micro/arguments/.codegraph/
... (23 fixture dirs total under jelly-micro/)
Root cause: the top-level .gitignore has:
.codegraph/*
!.codegraph/basics.md
Per git's gitignore semantics, a pattern with a slash in the middle (not just at the end) is anchored to the directory containing the .gitignore file — so .codegraph/* only matches /.codegraph/* at the repo root, not nested occurrences like tests/benchmarks/resolution/fixtures/jelly-micro/accessors3/.codegraph/. Only graph.db inside those directories is separately covered by the unanchored *.db pattern; other files (e.g. changes.journal) are not.
Fix: change the root .gitignore pattern to **/.codegraph/* (or add a scoped .gitignore under tests/benchmarks/resolution/fixtures/) so nested build artifacts are ignored everywhere, matching the intent of the existing rule. Double check the !.codegraph/basics.md negation still only re-includes the root-level basics.md (fixture dirs have no basics.md to accidentally re-include, but worth confirming intent).
Not fixed as part of #2410 since it's a test-infra/gitignore concern unrelated to that PR's Python import-resolution fix.
Activity
fix(gitignore): recurse .codegraph/* ignore into nested test-fixture …
fix(journal): incremental-build journal follows dbPath, not rootDir (#…