Repository navigation
test(ci): ci tests start no git on fake - #2894
Merged
Merged
Conversation
The CI, test runner and fail-to-pass tests start no git binary and reach git through the git fake or pure-Python state simulators. Duration across the eight test files improved from 28.99s (230 tests) down to 11.45s (228 tests). Obsolete devcontainer image change detection workflow tests in test_ci.py were deleted per Criterion 3. Closes #2179
dan-petty
marked this pull request as ready for review
October 31, 2026 18:07
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.
Closes #2179
Summary
Migrate all CI, test runner, and fail-to-pass tests to use the hermetic git fake or pure-Python state simulators instead of spawning git subprocesses.
Changes
tests/commands/test_uv.pyto route git operations throughgit_fakeand use a local hermetic nested worktree fixture.tests/commands/test_test_runner.pywith pure-Python project state simulation for file operations.tests/commands/test_ci_build_index.pyusinggit_fakeanswers for repository layout.tests/ci/test_ci_cache_fingerprint.pyandtests/ci/test_ci_cache.pywith pure-Python git status and hash object simulation.tests/ci/test_ci_mutate.pyusing module-level pure-Python fake handlers.tests/ci/test_fail_to_pass.pyusing pure-Python worktree and test simulation ongit_fake.tests/commands/test_ci.pyto use_make_ci_git_fakefor workspace fingerprinting and removed obsolete image change detection tests per Criterion 3.Verification
uv run devops ci.