fix(tests): isolate Flash model clients and MCP spawn watchdogs - #42
Open
wellorbetter wants to merge 3 commits into
Open
wellorbetter wants to merge 3 commits into
wellorbetter wants to merge 3 commits into
Conversation
|
the mods are lazy or whatever they are not accepting pr |
This was referenced Sep 14, 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.
Summary
Several deterministic tests depend on real model clients or local runtime state despite the credential-free test contract in
CONTRIBUTING.md. This fixes test isolation in four Flash modules and one MCP module, without changing production behavior.Fixes #41 and #43.
validate_profiles=Falsebuilder option in the configuration-only test.The turn-index snapshot file addressed by #32/#35 is unchanged; this covers additional test modules.
Reproduction and before/after evidence
Environment: Windows, Python 3.12.14, committed lockfile, no Google/Gemini/OpenAI API keys. Baseline:
0860788. Latest PR head:cfcfc8d.The temporary watchdog guard intercepted thread starts without executing them, avoiding real notifications or process termination during reproduction. The Flash modules also passed with shuffled execution order (seed 42) and a guard forbidding real provider-client construction.
#41 and #43 contain the root-cause analysis and representative failure excerpts. Commands above use the portable
uv runform; local execution used the locked virtual environment's Python executable in isolated worktrees.Contribution checks and limitations
Executed the Windows equivalents of the contribution checks:
make test: results above. The remaining 18 baseline failures include other credential/mock-configuration tests, readiness-cache timing, and the ADB manifest contract. This PR does not claim to resolve them.make lint: repository formatting, changed-file Ruff, and quality ratchet pass. Repository-wide Ruff retains 11 pre-existing playground errors tracked by ruff check fails on main in playground/backend_manager #29/fix(playground): resolve ruff pyupgrade lint errors in backend_manager #30.make typecheck: protected-core Pyright reports 0 errors and 0 warnings.git diff --check: passes.No tests are skipped or removed by this change. During extended testing, an unchanged device FIFO reservation test failed intermittently and could leave pytest running; the same behavior was reproduced on clean upstream. It did not fail in the latest full run and remains an unresolved validation limitation.
Private screenshots, UI XML, and raw device traces are not included. Public evidence consists of sanitized text excerpts.