Repository navigation
test: consolidate Parallels smoke fixtures - #118087
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 1:45 PM ET / 17:45 UTC. ClawSweeper reviewWhat this changesThis PR consolidates repeated fake Parallels CLI, process-lifecycle, source-read, and temporary-directory setup into reusable fixtures in the Parallels smoke-model test. Merge readinessNo actionable correctness or security regression was found in this test-only refactor. The branch consolidates repeated Parallels smoke fixtures without changing the production scripts it exercises; it should remain open for the protected maintainer review path and completion of the exact-head checks. Priority: P3 Review scores
Verification
How this fits togetherThe Parallels smoke-model test imports the host and guest smoke tooling, then simulates CLI and process scenarios to verify lifecycle, cleanup, timeout, and command behavior. This change refactors only that test harness; the tested production scripts remain separate inputs to the assertions. flowchart TD
A[Parallels smoke scripts] --> B[Smoke-model test]
B --> C[Test-local fixtures]
C --> D[Fake CLI and process runners]
D --> E[Lifecycle and source assertions]
E --> F[Parallels tooling confidence]
Decision needed
Why: The patch appears coherent and does not require a product decision, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests -488. Total -488 across 1 file. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the fixture abstractions test-local and merge after a maintainer confirms the consolidation remains readable and the exact-head required checks finish successfully. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors an existing test harness rather than reporting a user-facing defect. The supplied PR evidence reports after-fix focused and full Parallels test runs. Is this the best way to solve the issue? Yes. Keeping reusable fake-command and process-lifecycle setup in the test file is the narrowest maintainable solution; it avoids changing the production Parallels scripts solely to support test setup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1704ea591820. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
The Parallels smoke-model test had grown to 2,611 lines by repeating the same cross-platform fake
prlctlsetup, background-command state machines, process-tree scripts, temporary-directory cleanup, and stable source reads. That made lifecycle-sensitive coverage harder to audit and extend.Why This Change Was Made
This moves the repeated machinery behind test-local fixtures while keeping the production POSIX and Windows implementations separate. The canonical fixtures now own fake command creation, background result state, process-tree runners, host-server failures, source caching, and temporary-directory cleanup.
Removed duplicate paths include the dual fake scripts, repeated command-state machines, repeated process-tree runners, scattered source reads, and manual temp cleanup. No production, config, schema, protocol, or compatibility surface changes.
Architectural owner: the test-local Parallels harness. Production ownership remains in
scripts/e2e/parallels/guest-transports.ts,scripts/e2e/parallels/host-command.ts, andscripts/e2e/parallels/host-server.ts.User Impact
No user-visible behavior change. The same Parallels smoke matrix is easier to review and maintain, with 488 fewer test lines and zero production LOC change.
Evidence
56601cec8db9747bd36a18f76b36ad7c7a7307a0tbx_01kz1r3cjgnysn3kg9f1aqj20h(run).tbx_01kz1rdykj12tqnkm0sz551qn0(run).git diff --check: clean.test/scripts/parallels-smoke-model.test.tsthrough the final pre-publication census.The Codex dependency contract was checked directly in:
../codex/codex-cli/bin/codex.js:16and:79../codex/codex-cli/scripts/build_npm_package.py:21and:294../codex/sdk/typescript/src/exec.ts:43and:380../codex/codex-rs/protocol/src/auth.rs:6../codex/codex-rs/login/src/auth/manager.rs:418../codex/codex-rs/model-provider/src/auth.rs:166../codex/codex-rs/model-provider/src/provider.rs:223No changelog entry: test-only refactor.