Repository navigation
test(roadmap): roadmap tests start no git on fake - #2886
Merged
Merged
Conversation
## Description This pull request migrates the roadmap refine, run, and intake tests to use the `git_fake` process runner seam, ensuring no test starts a real git subprocess. - Migrated `tests/roadmap/test_roadmap_refine.py` away from real git repository initialization to direct file fixtures and scripted git answers. - Migrated `tests/roadmap/test_roadmap_run.py` to `SimulatedGit` backed by `git_fake`, answering clone, branch, tag, remote, rev-parse, and config operations in memory. - Audited `tests/roadmap/test_roadmap_intake.py` to confirm zero git subprocesses start. - Extended `ProcessFake` and `GitFake` to support dynamic callable answers. - Archived OpenSpec change `2178-roadmap-tests-reach-git-fake`. ## Verification - Execution duration across all 367 tests decreased from 28.98s to 19.45s (~33% faster). - Verified zero real git processes start with hermetic git tripwire refusal. - Verified all contract and invariant tests pass. - Verified `uv run devops ci run` passes all 21 quality gates. Closes #2178
dan-petty
marked this pull request as ready for review
October 31, 2026 16:32
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 the roadmap refine, run, and intake tests to use the
git_fakeprocess runner seam, ensuring no test starts a real git subprocess.tests/roadmap/test_roadmap_refine.pyaway from real git repository initialization to direct file fixtures and scripted git answers.tests/roadmap/test_roadmap_run.pytoSimulatedGitbacked bygit_fake, answering clone, branch, tag, remote, rev-parse, and config operations in memory.tests/roadmap/test_roadmap_intake.pyto confirm zero git subprocesses start.ProcessFakeandGitFaketo support dynamic callable answers.2178-roadmap-tests-reach-git-fake.Verification
uv run devops ci runpasses all 21 quality gates.Closes #2178