Repository navigation
test(git): core tests start no git on fake - #2890
Merged
Merged
Conversation
Migrate four core and AI test suites to reach git through the `git_fake` process runner seam instead of starting real git subprocesses. - Replace real git repositories in `tests/core/test_data_dir_worktrees.py` with in-memory filesystem structures and scripted `GitFake` responses. - Replace git initialization and `git check-ignore` subprocess calls in `tests/core/test_gitignore_evaluation.py` with path evaluations. - Migrate `tests/ai/test_run_store.py` to directory creation and scripted git answers. - Add git fake fixture to `tests/ai/test_run_comparison.py` to answer source commit rev-parse queries. - Reduce test duration from 13.86s to 11.48s across all 162 tests. - Archive OpenSpec change `2174-core-tests-reach-git-fake`. Closes #2174
dan-petty
force-pushed
the
test/2174-core-tests-reach-git-fake
branch
from
October 31, 2026 17:04
55ae200 to
8432c13
Compare
dan-petty
marked this pull request as ready for review
October 31, 2026 17:10
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.
Description
This pull request migrates four test files to reach git through the
git_fakeprocess runner seam, ensuring no test starts a real git subprocess.tests/core/test_data_dir_worktrees.pyaway from real git subprocess calls to in-memory filesystem layouts and scriptedgit_fakeresponses.tests/core/test_gitignore_evaluation.pyto evaluate ignore patterns directly withoutgit initorgit check-ignore.tests/ai/test_run_store.pyto directory creation and scripted git answers._setup_git_fakeintests/ai/test_run_comparison.pyfor source commit inspection queries.2174-core-tests-reach-git-fake.Verification
uv run devops ci run.Closes #2174