Repository navigation
refactor(cli): source modules keep no accommodation for tests - #4053
Merged
dan-petty merged 6 commits intoNov 7, 2026
Merged
Conversation
The async runner goes through the active process runner and no longer starts the sync path when a test replaces subprocess.run. The child environment passes no PYTEST_CURRENT_TEST. The settings cache key holds no config path, so no test rebinds CONFIG_PATH. reset_repo_caches is the public reset of the origin cache, and install_own_source_dir replaces the patch of a private name.
reset_repo_caches clears the caches only. reset_own_source_dir removes the directory that install_own_source_dir named, and the floor calls it. The async start test no longer patches subprocess.run, and the invariant also flags a direct attribute read of subprocess.run.
Owner
Author
|
Test and check results at the push:
Independent review: all six findings were minor. Fixed: the async runner test no longer patches Left for follow-up items (not in this PR):
|
dan-petty
marked this pull request as ready for review
November 7, 2026 19:35
Owner
Author
|
Result of the full local
|
dan-petty
deleted the
refactor/1333-source-keeps-no-accommodation-for-tests
branch
November 7, 2026 20:18
dan-petty
pushed a commit
that referenced
this pull request
Nov 7, 2026
🤖 I have created a release *beep* *boop* --- ## [0.84.0](v0.83.2...v0.84.0) (2026-11-07) ### Features * **k8s:** alert when Crawl4AI fetches fail ([#4037](#4037)) ([49f0f14](49f0f14)) * **k8s:** run SearXNG in the devops namespace ([#4033](#4033)) ([9d223f4](9d223f4)), closes [#3924](#3924) * **research:** add GitHub advisories and KEV to research advisories ([#4032](#4032)) ([61e6936](61e6936)), closes [#3987](#3987) * **research:** add research sweep that files intake candidates ([#4055](#4055)) ([11ddee9](11ddee9)) * **roadmap:** add a test-first manifest kind to the stage plan ([#3981](#3981)) ([8476163](8476163)) * **roadmap:** check a plan number against its constant ([#4073](#4073)) ([324a3a5](324a3a5)) * **roadmap:** name every caller of a changed function ([#4047](#4047)) ([24e9138](24e9138)) * **roadmap:** the stage probe routes prompt changes to prompt rule tests ([#3989](#3989)) ([4aebde2](4aebde2)) ### Code Refactoring * **cli:** source modules keep no accommodation for tests ([#4053](#4053)) ([33b57a9](33b57a9)) * **roadmap:** remove the dead plan and review step classes ([#4074](#4074)) ([526834f](526834f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This was referenced Nov 7, 2026
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.
Source modules no longer change their behavior for a test. The async process start goes through the active process runner and tells a replaced
subprocess.runfrom the stdlib one no more. The settings cache key holds no config path. Repository state gets public seams:install_own_source_dir,reset_own_source_dirandreset_repo_caches. The floor installs and resets them. Tests use these seams in place of patches of private names.Two invariant tests keep it so: no read of an attribute of
subprocess.runinsrc/, and a ceiling of 2 on reads ofPYTEST_CURRENT_TEST. Both remaining reads are incommands/ci.pyand go with the tests of the ci command.Closes #4021
Change:
openspec/changes/archive/2026-11-07-4021-source-keeps-no-accommodation-for-tests/