Repository navigation
Type the shared Sandbox startup fixture - #5780
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR types the shared Sandbox Installation fixture, removes its copying wrapper, and moves factory-validation assertions into their owning test. Example: A startup test changes gateway.workspaceMode from operator to managed.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a useful, focused test refactor, and review found no actionable defect or unresolved merge blocker. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSandbox startup and Compute conformance tests share Installation configuration inputs; the startup tests pass those inputs through the real Installation file loader and inspect validation or Driver composition outcomes. flowchart LR
A[Shared Installation builder] --> B[Sandbox startup tests]
A --> C[Compute conformance fixtures]
B --> D[Installation file loader]
D --> E[Configuration validation]
E --> F[Driver factory]
Technical reviewBest possible solution: Land the focused fixture consolidation with its existing validation coverage. Do we have a high-confidence way to reproduce the issue? No product bug is claimed; source comparison confirms a behavior-preserving test refactor. Is this the best way to solve the issue? Typing the existing shared builder removes redundant copying at its source, and placing the factory assertions directly in their sole test reduces indirection without losing coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 05a04198a8d8. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 4:39 AM ET / 09:39 UTC. |
Changes
The Sandbox startup tests now import the same typed Installation builder as the Compute harness tests. Each call builds a fresh configuration and keeps the gateway workspace mode mutable for tests that switch between operator and managed workspaces.
The startup validation test now owns its injected factory. It checks that the loader rejects the unknown field before invoking the factory, then verifies that a valid Installation reaches the factory and propagates its error.
Verification