Skip to content

follow-up: nested tests/benchmarks/resolution/fixtures/*/.codegraph/ build artifacts aren't gitignored #2415

Closed

Description

@carlos-alm

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

  1. added
    follow-upDeferred work from PR reviews that needs tracking
    on Aug 10, 2026
  2. added a commit that references this issue on Aug 10, 2026
    12ec6a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-upDeferred work from PR reviews that needs tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions