Skip to content

fix(openshell-provider): allow sandboxes without providers - #13306

Merged
cv merged 1 commit into
v1from
fix/sandbox-without-providers
Oct 16, 2026
Merged

cv merged 1 commit into
v1from
fix/sandbox-without-providers

Conversation

@cv

@cv cv commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Part of #13131.

Failure

openshell_sandbox marks providers as optional, but a sandbox with none failed during apply with observation query failed, before any request reached the gateway. provider_names treated an omitted or empty list as invalid, and so did the inference environment built from it. Found while adding driver_config in #13304.

Decision

  • No providers is valid: an omitted providers, or providers = [], attaches no providers.
  • Recorded as written: NemoClaw records the attachment list in the sandbox environment (NEMOCLAW_PROVIDER_NAMES) only to read it back, and nothing in the images reads it. It's now recorded exactly as written and omitted when providers is omitted, so both forms read back unchanged.
  • Other checks unchanged: duplicate and invalid names, and lists over 128, are still rejected. The check that a cluster-source inference profile's provider is attached to the sandbox correctly fails when nothing is attached.

Validation

  • A new unit test failed before the fix: an omitted list and [] both attach nothing, and only an explicit list is recorded in the environment.
  • A new contract test applies one sandbox without providers and one with providers = [] against pinned OpenTofu and the fake gateway, then expects a no-op plan.
  • cargo ci passes locally: 1535 unit tests and 146 lifecycle tests.

openshell_sandbox marks providers optional, but an omitted or empty list
failed while building the create request. Both now attach no providers,
and the attachment list is recorded in the sandbox environment only as
written, so either form reads back unchanged.
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit ef3115d into v1 Oct 16, 2026
@cv
cv deleted the fix/sandbox-without-providers branch October 16, 2026 04:51
cv pushed a commit that referenced this pull request Oct 16, 2026
CI failed #13306 on Linux and Windows, then passed an unchanged rerun.
Several build tests exceeded the 8-second budget, and some Windows cases
reached the 24-second timeout.

Limit the build integration binary to two concurrent tests. The three
path matrices also reuse one private repository per test, reducing 24
repository setups to three. Each case resets to the original commit and
checks that only its own path changed, so an earlier triggering edit
cannot make a later case pass. Existing selection and no-fallback
assertions remain.

Three hosted ordinary-test measurements on the unchanged commit:

| Slowest build-integration test | [Run
1](https://github.com/NVIDIA/NemoClaw/actions/runs/38861987558/attempts/1)
| [Run
2](https://github.com/NVIDIA/NemoClaw/actions/runs/38861987558/attempts/2)
| [Run
3](https://github.com/NVIDIA/NemoClaw/actions/runs/38861987558/attempts/3)
|
| --- | ---: | ---: | ---: |
| Linux AMD64 | 3.89 s | 4.49 s | 2.90 s |
| Linux ARM64 | 2.50 s | 3.05 s | 3.02 s |
| Windows AMD64 | 13.27 s | 13.13 s | 12.78 s |

All six Linux measurements passed the unchanged 8-second per-test and
45-second suite budgets. Windows passed without timeouts, but the same
two Bake tests still exceeded its reported-only 8-second budget. This
does not eliminate every reported overrun, so #13310 stays open.

Locally, the same 114-test workload improved from 33.1 to 28.1 seconds,
with its slowest test falling from 16.0 to 5.5 seconds. `cargo ci
--full` passed formatting, Clippy, 1,483 ordinary tests, doctests,
schema checks, a fresh bundle and 146 lifecycle tests. Its macOS timing
overruns remain reported-only. Budgets, timeouts, retries and case
coverage are unchanged.

Related to #13310.
@wscurran wscurran added area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch labels Oct 26, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants