Skip to content

test: consolidate Parallels smoke fixtures - #118087

Merged
steipete merged 1 commit into
mainfrom
codex/goal100k-root-test-harness-wave14-2d45
Aug 2, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/goal100k-root-test-harness-wave14-2d45

Conversation

@steipete

@steipete steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Parallels smoke-model test had grown to 2,611 lines by repeating the same cross-platform fake prlctl setup, 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, and scripts/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

  • Final head: 56601cec8db9747bd36a18f76b36ad7c7a7307a0
  • LOC: +572/-1,060 in one test file, net -488; production delta 0.
  • Exact equivalence: all 96 expanded test titles and all 480 matcher/expected-argument outcomes remain identical and in the same order.
  • Final-base focused proof: 96/96 passed.
  • Full Parallels tooling project: 142/142 passed on Blacksmith Testbox tbx_01kz1r3cjgnysn3kg9f1aqj20h (run).
  • Changed gate: passed on Blacksmith Testbox tbx_01kz1rdykj12tqnkm0sz551qn0 (run).
  • git diff --check: clean.
  • Two independent xhigh reviews: CLEAN; both confirmed lifecycle semantics, coverage parity, cleanup ordering, and best-fix ownership.
  • Collision audit: no open PR changes test/scripts/parallels-smoke-model.test.ts through the final pre-publication census.

The Codex dependency contract was checked directly in:

  • ../codex/codex-cli/bin/codex.js:16 and :79
  • ../codex/codex-cli/scripts/build_npm_package.py:21 and :294
  • ../codex/sdk/typescript/src/exec.ts:43 and :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:223

No changelog entry: test-only refactor.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Aug 2, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 1:45 PM ET / 17:45 UTC.

ClawSweeper review

What this changes

This PR consolidates repeated fake Parallels CLI, process-lifecycle, source-read, and temporary-directory setup into reusable fixtures in the Parallels smoke-model test.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No 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
Reviewed head: 56601cec8db9747bd36a18f76b36ad7c7a7307a0
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-reducing test-harness refactor with credible after-fix suite evidence and no concrete review finding.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR body provides after-fix Testbox results for the focused and full Parallels tooling suites, and the supplied exact-head check state marks Real behavior proof successful.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body provides after-fix Testbox results for the focused and full Parallels tooling suites, and the supplied exact-head check state marks Real behavior proof successful.
Evidence reviewed 6 items Test-only fixture boundary: The PR changes only the smoke-model test and adds local helpers for fake prlctl setup, process runners, background command state, and cleanup; production Parallels modules are only imported and exercised by the test.
Refactor preserves the tested owner boundary: The test continues to import the existing Parallels common, guest transport, host-command, host-server, phase-runner, and smoke-script modules; the new helpers only reduce repeated test setup.
Current-main overlap check: The test file is unchanged on current main since the PR parent, so the reported behind-main state does not reflect a competing rewrite of this PR's sole touched path.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should this maintainer-labeled, test-only fixture consolidation be approved once the remaining exact-head checks complete? Approve after final checks: Accept the test-local fixture consolidation after the remaining checks pass on the reviewed head.

Why: The patch appears coherent and does not require a product decision, but the protected maintainer label requires explicit human handling rather than automated cleanup or merge.

Before merge

  • Resolve merge risk (P1) - The provided check state still has several exact-head checks in progress; merge should wait for those required checks and the protected maintainer review to complete.
  • Complete next step (P2) - No concrete repair is indicated; the remaining action is protected maintainer review and normal exact-head check completion.
Agent review details

Security

None.

PR surface

Tests -488. Total -488 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 572 1060 -488
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 572 1060 -488

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: test/scripts/parallels-smoke-model.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the fixture abstractions test-local and merge after a maintainer confirms the consolidation remains readable and the exact-head required checks finish successfully.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a test-only maintainability refactor with no indicated production, configuration, protocol, or user-facing behavior change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix Testbox results for the focused and full Parallels tooling suites, and the supplied exact-head check state marks Real behavior proof successful.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides after-fix Testbox results for the focused and full Parallels tooling suites, and the supplied exact-head check state marks Real behavior proof successful.

Label justifications:

  • P3: This is a test-only maintainability refactor with no indicated production, configuration, protocol, or user-facing behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides after-fix Testbox results for the focused and full Parallels tooling suites, and the supplied exact-head check state marks Real behavior proof successful.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix Testbox results for the focused and full Parallels tooling suites, and the supplied exact-head check state marks Real behavior proof successful.

Evidence

What I checked:

  • Test-only fixture boundary: The PR changes only the smoke-model test and adds local helpers for fake prlctl setup, process runners, background command state, and cleanup; production Parallels modules are only imported and exercised by the test. (test/scripts/parallels-smoke-model.test.ts:154, 56601cec8db9)
  • Refactor preserves the tested owner boundary: The test continues to import the existing Parallels common, guest transport, host-command, host-server, phase-runner, and smoke-script modules; the new helpers only reduce repeated test setup. (test/scripts/parallels-smoke-model.test.ts:25, 1704ea591820)
  • Current-main overlap check: The test file is unchanged on current main since the PR parent, so the reported behind-main state does not reflect a competing rewrite of this PR's sole touched path. (test/scripts/parallels-smoke-model.test.ts:1, 1704ea591820)
  • Patch hygiene and scope: The branch diff is one test file with 572 additions and 1,060 deletions; whitespace validation produced no errors. (test/scripts/parallels-smoke-model.test.ts:102, 56601cec8db9)
  • Feature provenance: The reviewed branch head was authored as the focused fixture-consolidation change; its parent is the mainline base used for the local comparison. (test/scripts/parallels-smoke-model.test.ts:154, 56601cec8db9)
  • After-fix behavior evidence: The PR body reports focused 96/96 and complete Parallels tooling 142/142 Testbox passes, while the supplied exact-head check state records the Real behavior proof check as successful. (56601cec8db9)

Likely related people:

  • steipete: Authored the focused fixture-consolidation commit and has substantial prior history in the smoke-model test according to local file history. (role: recent test-harness contributor; confidence: medium; commits: 56601cec8db9; files: test/scripts/parallels-smoke-model.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the remaining exact-head checks and protected maintainer review before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit ac5cddd into main Aug 2, 2026
99 of 107 checks passed
@steipete
steipete deleted the codex/goal100k-root-test-harness-wave14-2d45 branch August 2, 2026 18:11
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant