Repository navigation
fix(#935): unit conftest stub cleanup for cross-file sys.modules pollution - #938
Merged
Merged
Conversation
…ution Adds the four module names called out in #935 to the existing baseline- restore / pop-prefix machinery so stubs installed by one unit test file stop leaking into the next. - tests/conftest.py _SYS_MODULES_INVARIANT_KEYS: + services.docker_service - tests/unit/conftest.py _POP_PREFIXES: + services.task_execution_service, services.cleanup_service, dependencies Repro on origin/dev (deterministic order): pytest tests/unit/test_auto_retry_reader_race.py \ tests/unit/test_file_upload.py \ tests/unit/test_session_persistence_flag.py \ tests/unit/test_fleet_status_resilience.py \ tests/unit/test_startup_recovery_race.py \ tests/test_github_pat_propagation_unit.py -p no:randomly Before: 22 failed, 58 passed — stub for services.docker_service (missing get_agent_container) leaked into adapters.message_router and services.cleanup_service imports collected by later files. After: 80 passed (also clean with default pytest-randomly ordering).
vybe
approved these changes
May 25, 2026
vybe
left a comment
Contributor
There was a problem hiding this comment.
Approved per /validate-pr — two-line conftest fix, only test infrastructure, clean security scan, repro and before/after documented in PR body.
vybe
added a commit
that referenced
this pull request
Nov 2, 2026
…rprise#936, #938, #940) - Judge tab: a refused save clears the earlier "Saved." marker, so a dismissed error never reads as saved (the one CRITICAL). - A person the agent is merely shared with is not an operator: the judge's words and a Tier-1 score are withheld from them as the comment already is, with the token findings in place; the ent#781 contract test says so. - A caller that ended `skipped` has ended: one CALLER_ENDED_STATUSES for the pair evaluator and its re-pick query, so a callee's provisional row no longer waits forever. - The refusal read is one 200-row page; a full page is unreadable, never a pass on evidence that was not read. - 0115 / tier1_one_per_run: NULL updated_at ranks the same on both backends. - Operations: Health and Evaluations render slots read the one TAB_GATES map; ExecutionChecks encodes its path segments; the rating control hides only on 403/404 and reports any other failure; the tracker-list error dismisses instead of re-fetching. Co-Authored-By: Claude Fable 5.1 <[email protected]>
vybe
added a commit
that referenced
this pull request
Nov 2, 2026
…rprise#936, #938, #940) - Judge tab: a refused save clears the earlier "Saved." marker, so a dismissed error never reads as saved (the one CRITICAL). - A person the agent is merely shared with is not an operator: the judge's words and a Tier-1 score are withheld from them as the comment already is, with the token findings in place; the ent#781 contract test says so. - A caller that ended `skipped` has ended: one CALLER_ENDED_STATUSES for the pair evaluator and its re-pick query, so a callee's provisional row no longer waits forever. - The refusal read is one 200-row page; a full page is unreadable, never a pass on evidence that was not read. - 0115 / tier1_one_per_run: NULL updated_at ranks the same on both backends. - Operations: Health and Evaluations render slots read the one TAB_GATES map; ExecutionChecks encodes its path segments; the rating control hides only on 403/404 and reports any other failure; the tracker-list error dismisses instead of re-fetching. Co-Authored-By: Claude Fable 5.1 <[email protected]>
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
Closes #935.
Adds the four module names called out in the issue to the existing
baseline-restore / pop-prefix machinery so stubs installed by one unit
test file stop leaking into the next:
tests/conftest.py_SYS_MODULES_INVARIANT_KEYS: +services.docker_servicetests/unit/conftest.py_POP_PREFIXES: +services.task_execution_service,services.cleanup_service,dependenciesTwo-line surface, no production code touched.
Repro / verification
Deterministic order (per the issue's repro command):
Before:
22 failed, 58 passed— a stub forservices.docker_service(missing
get_agent_container) leaked intoadapters.message_routerandservices.cleanup_serviceimports collected by later test files.After:
80 passed. Also clean with defaultpytest-randomlyordering.
Test plan
origin/devpytest-randomlyordering