test(session): remove platform and AsyncMock flakes - #6974
Conversation
Opus 4.8 Review — ✅ no blocking findingsReviewed Verdict parsed from the review's SHA-scoped output markers for commit False positive or not applicable? A repository writer can comment: |
GPT 5.6 Review — ✅ no blocking findingsGPT 5.6 completed its review of This comment is updated in place on each push. Review detailsNo findings. False positive or not applicable? A repository writer can comment: |
Design Review (Fable 5) — ✅ PASSDesign-level review of This is a 17-line test-only flake fix. I've verified the claims: Design-Verdict: PASS Root-cause flake fixes using the repo's existing capability-probe and mock-contract patterns; no design-level concerns. [DESIGN-REVIEWED] b028366 |
a17fa45 to
b028366
Compare
chenmingwei23
left a comment
There was a problem hiding this comment.
Tier 1 auto-approve: test (1 file): remove platform and AsyncMock flakes in session tests. Criteria: no conflict, no requested changes, security path denylist clean, design-doc gate clean, SAST (Semgrep + CodeQL) annotations/alerts clean, security checklist all-NO, AI reviewers green.
iamwhatever
left a comment
There was a problem hiding this comment.
Tier 1 auto-approve: test (1 file). Criteria: no conflict, no requested changes, security path denylist clean, design-doc gate clean, SAST annotations clean, security checklist all-NO, AI reviewers green. Category: test-only flake removal in test/test_session.py -- adds missing mock provider attributes (context_window_tokens, runtime_info, stream_command), an is_process_alive stub, close_all() teardown, and a requires_symlinks marker; no production file touched.
Problem / Motivation
The session test file had three independent sources of platform or teardown noise:
These are test-contract defects, not reasons to retry or weaken CI.
What changed
The diff is test-only: one file, 17 added lines, one commit.
Determinism
No sleeps, retries, reruns, enlarged timeouts, catch-all skips, or warning filters were added. The symlink skip is capability-based and limited to the one test whose subject requires a symlink.
Validation
The only emitted warning is pytest-xdist's own deprecation notice for the repository's looponfail option; this change does not filter it.
Open-PR overlap
All 238 open PRs were scanned. Six also touch test/test_session.py (#6853, #6600, #6595, #5395, #4550, and #3753), but their patches do not modify these marker, mock-contract, or teardown lines. Pairwise merge checks keep this test file conflict-free; their existing conflicts are in README or production session.py.
Checklist