Skip to content

Type the shared Sandbox startup fixture - #5780

Merged
freeqaz-openai merged 1 commit into
mainfrom
codex/deslop-sandbox_installation
Nov 13, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
codex/deslop-sandbox_installation

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

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

  • TypeScript passed.
  • All 106 tests in the four affected Sandbox integration files and two Compute conformance files passed with zero skips. These include a real IPv6 gRPC listener.
  • Both fixture import paths produced the original serialized Installation, including after mutating an earlier result. The endpoint override also matched the original.

@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 13, 2026 09:26
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: A wrapper copies the fixture and narrows its types before the test can change workspace mode.
  • After: The shared builder directly supplies a fresh, typed configuration with mutable workspace mode.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test-only simplification supported by source equivalence, retained loader coverage, and successful checks for the reviewed head.
Proof confidence 🐚 platinum hermit (4/6) This fixture and assertion refactor changes no user-visible behavior, so shipped-entry-point media is unnecessary.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored change reduces duplicated fixture construction, preserves supported configuration values, and keeps loader-ordering coverage at its existing boundary.

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
Reviewed head: 4d74dabdbbdd8e53d2496a75a3dd906af2180858

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 5ee1a6b adds tests/integration/sandbox-driver-installation-fixture.ts:12 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5ee1a6b2650e; files: tests/integration/sandbox-driver-installation-fixture.ts)

Preflight source

Source 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

Metric Value Why it matters
Change scope Production +0/-0; tests +41/-81 The net reduction removes fixture-copying machinery while retaining the validation scenario.

Labels

Label changes:

  • add P3: This is test maintenance with no change to shipped runtime behavior.
  • 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.

Label justifications:

  • P3: This is test maintenance with no change to shipped runtime behavior.
  • 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.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 4:39 AM ET / 09:39 UTC.

@freeqaz-openai
freeqaz-openai merged commit 252c6ef into main Nov 13, 2026
62 checks passed
@freeqaz-openai
freeqaz-openai deleted the codex/deslop-sandbox_installation branch November 13, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant