Skip to content

test(e2e): drop the live cache_provider test - #14128

Merged
cv merged 2 commits into
v1from
test/14061-cache-provider
Nov 3, 2026
Merged

cv merged 2 commits into
v1from
test/14061-cache-provider

Conversation

@sandl99

@sandl99 sandl99 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Failure

cache_provider (standalone_hcl_recovers_cache_and_guards_credentials_without_sdk_orchestration) ran hand-written HCL that composed the Docker provider's docker_volume and docker_container with vllm_credential_storage against the local engine on every Live / Docker run. Most of its steps check Docker and the Docker provider. Its NemoClaw-owned checks are covered by the contract suite (#14064), SDK and runtime unit tests, and the docker-openclaw-hermes-vllm HCL E2E scenario, except one: nothing outside this live test showed that an applied vllm_credential_storage plans no changes. The tofu test reapply run shows no second volume is created, not that the plan was empty.

Decision

Add that check to the contract suite, then delete the live test (#14061).

  • failures/service_storage.rs: missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state now plans with -detailed-exitcode after its first apply, before the faults.
  • Delete tests/e2e/rust/cache_provider.rs, fixtures/cache_provider.tf, its main.rs module and live-docker selector, and the NEMOCLAW_TEST_CACHE_ENGINE / NEMOCLAW_TEST_CACHE_IMAGE inputs (and the now-unused ENGINE constant) in live_docker.rs. The agent image stays: NEMOCLAW_TEST_GATEWAY_SANDBOX_IMAGE and the gateway documents use it.
  • Delete fixtures/gateway_readiness.tf: nothing has referenced it since test(e2e): migrate live happy paths to HCL E2E scenarios #14082, which left the fixtures/ directory with only these two files.
  • Docs: remove the live-tests section and its mention in the Docker Live Suite paragraph; describe the new check in integration-tests.md. testing.md doesn't name this test or its inputs, so it is unchanged.
# cache_provider step Owner after deletion
1 Apply creates the credential volume with its authored owner and generation nemoclaw-provider contract hcl/storage/tests/storage.tftest.hcl runs create and reapply (retained_storage_keeps_its_identity)
2 No-op plan after apply Was uncovered; added. failures/service_storage.rs missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state (plan -detailed-exitcode). On a real volume: tests/e2e/hcl/tests/docker-openclaw-hermes-vllm.tftest.hcl run unchanged_plan (output.changes == {}; the SDK's check_plan lists every non-no-op resource and fails if a required one is missing). That scenario runs only on Live / HCL dispatch.
3 Container replaced (revision=replaced), same key Container replacement: Docker provider, dropped. Storage not recreated when compute changes: nemoclaw-sdk deployment::tests::disposable_docker_compute_reconciles_while_durable_storage_does_not_recreate. Key bytes kept and never regenerated for an initialized volume: nemoclaw-runtime vllm::runtime::authentication::tests::credential_survives_restart_and_missing_initialized_key_is_rejected. The live test's key was written by the fixture's Python, not by NemoClaw, so it never exercised that code.
4 Rejected fail_start, recovery with the same key Docker provider (must_run start failure) and Docker volume persistence, dropped
5 Teardown: container removed, auth volume kept Container removal: Docker provider, dropped. The fixture kept the volume by leaving it declared, not through NemoClaw teardown. NemoClaw's retention: nemoclaw-sdk services::installers::tests::inference_removal_retains_cache_and_requires_authenticated_storage; on a real volume, docker-openclaw-hermes-vllm run destroy (retains vllm_credential_storage.inference_qwen_auth)
6 Re-apply after teardown, same key Volume observed, not recreated: storage.tftest.hcl run reapply (creates == 3). Key: the runtime test in row 3
7 Lost cache container and data volume rebuilt (reconstructed) docker_volume and docker_container recreation: Docker provider, dropped
8 Missing auth volume: compute replacement refused, state unchanged, no container missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state, fault missing: plan and apply fail with bound persistent storage is absent; recreation forbidden, state is byte-identical, and no volume is created. Apply fails while refreshing, before it applies anything. The SDK graph also orders the container after the storage: nemoclaw-sdk/tests/multiple_providers.rs managed_services_have_independent_storage_credentials_and_dependencies asserts the vLLM container's depends_on contains vllm_credential_storage.inference_<name>_auth. That edge matters because the /credentials mount source is the literal <name>-auth, not a reference.
9 Same-named, same-labelled replacement auth volume refused, state unchanged, no container Same test, fault substituted (same labels, new creation time); foreign covers a different owner label

Net: 9 files, +8 / −460 (−452).

Validation

  • Local, darwin_arm64: cargo ci fmt, cargo ci clippy, cargo ci test (which includes the ci_lifecycle::live_docker_* fakes), cargo ci bundle, and cargo ci lifecycle pass. The lifecycle JUnit report shows the four failures::service_storage::* tests passing. The first cargo ci test run failed once on release_assessment::scanner::tests::subprocess_failures_hide_stderr_and_timeouts_reap_the_owned_process, which passed 5 of 5 focused reruns with and without this change, and a second run hit a transient ENOSPC while linking. The third run passed.

  • The new plan check passes against the current provider; I did not make it fail first, because it guards behavior that already exists.

  • CI, Live / Docker (run 41592361767): both linux_amd64 and linux_arm64 pass without cache_provider. ### live-docker wall time against the 360 s limit:

    Platform v1 f1e436c (run 41572811552) This PR Change
    linux_amd64 9 tests, 270.7 s (cache_provider 16.1 s) 8 tests, 249.1 s −21.6 s
    linux_arm64 9 tests, 229.0 s (cache_provider 13.3 s) 8 tests, 206.8 s −22.2 s

The live cache_provider test was the only check that an applied
vllm_credential_storage plans no changes. Its replacement is the
contract suite, whose tofu test reapply shows the volume is not
created again but not that the plan was empty.

Plan with -detailed-exitcode after the first apply in
missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state,
before each fault stops that plan.

Validation: cargo ci fmt, clippy, test, bundle, and lifecycle on
darwin_arm64; the contract test passes.
cache_provider ran hand-written HCL that composed docker_volume and
docker_container with vllm_credential_storage against the local engine.
Its NemoClaw-owned checks have other owners: storage identity, refusal
of missing or substituted volumes with state unchanged, and the
unchanged plan are in the provider contract suite; the container's
dependency on the credential storage is in nemoclaw-sdk; the retained
key is in nemoclaw-runtime. The rest checked Docker and the Docker
provider: container replacement, failed start, removal, and rebuilding
a lost cache volume. The key it compared was written by the fixture's
Python, not NemoClaw.

Remove the test, its fixture, its nextest selector, and the
NEMOCLAW_TEST_CACHE_* inputs that cargo ci live-docker passed only to
it. The agent image stays: other live-docker tests use it. Also remove
fixtures/gateway_readiness.tf, which nothing has referenced since #14082.

Refs #14061.

Validation: cargo ci fmt, clippy, test (including ci_lifecycle
live_docker fakes), bundle, and lifecycle on darwin_arm64.
@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@sandl99

sandl99 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi 1.2.0 (session format v3), TUI mode Session header and the recorded system prompt's install path
Skills recorded nemoclaw-contributor-create-pr (complete read) Tool results to the cutoff; other listed skills were not read
Instruction files recorded AGENTS.md (injected at startup; v1 copy complete read); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) System prompt injection and tool results to the cutoff
Tool calls partial typescript: 63 (1 failed type check) Wrapper calls to the cutoff, including failed and interrupted calls; the wrapper hides the nested shell, git, gh, and file calls
Session window recorded 2026-11-03T05:01Z to 2026-11-03T06:49Z; 1 h 48 min First event to the cutoff (PR creation), including idle time and one resumed turn
Compactions recorded 0 Complete record to the cutoff; two tool results were elided, which is not a compaction
Models recorded nvidia-internal/azure/anthropic/claude-opus-5-5 Model change event; no later changes
Reasoning levels recorded medium; high Startup level, changed to high before the first request; every turn ran at high

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@sandl99
sandl99 marked this pull request as ready for review November 3, 2026 07:08
@sandl99
sandl99 requested a review from cv November 3, 2026 07:08
@sandl99 sandl99 added v1 NemoClaw v1 branch area: e2e End-to-end tests, nightly failures, or validation infrastructure labels Nov 3, 2026
@cv
cv merged commit dc0641a into v1 Nov 3, 2026
67 of 68 checks passed
@cv
cv deleted the test/14061-cache-provider branch November 3, 2026 09:04
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: docs Documentation, examples, guides, or docs build area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images provider: vllm vLLM local or hosted provider behavior labels Nov 3, 2026
cv pushed a commit that referenced this pull request Nov 4, 2026
…ests (#14171)

## Failure

`docker_provider_proxy.rs` was the last live test for the managed Ollama
proxy. #14060 lists two of its checks as leaving the live suites: a
failed agent start after the proxy exists keeps the proxy's bindings,
and a rewritten credential key is refused. Its other checks repeat
lower-layer tests or test the Docker provider. The live Docker step
built a proxy image only for it.

## Decision

Each check now has an owner below the live suite, and the test and its
image are deleted.

| Check in `docker_provider_proxy.rs` | Owner now |
|---|---|
| A failed agent start after the proxy exists; the retry starts the
agent in a new sandbox and the proxy keeps its container and bindings |
The rule:
`multi_agent::one_failed_agent_is_reported_alone_and_its_retry_replaces_only_it`.
The proxy's independence from the agent: SDK
`ollama_proxy::proxy_readiness_is_fresh_and_orders_only_its_selected_consumer`
and the `docker-ollama-proxy` scenario |
| An unchanged apply changes nothing | New `unchanged` run in
`docker-ollama-proxy` |
| Export returns the document | New SDK unit test
`an_ollama_proxy_document_exports_unchanged`; no example declares a
proxy |
| The proxy key never reaches OpenTofu state | New assertion in
`docker-ollama-proxy`: neither the readiness check, the runtime, the key
storage, the container, the registration, nor the agent holds the
fixture's key |
| A rewritten key (mode 0644), a stopped container, a replaced
container, or a changed model is refused | `nemoclaw-provider` contract
`standalone_proxy_readiness_rechecks_identity_and_credentials_without_sdk_or_gateway`
|
| A replaced container keeps the key volume and key |
`docker-ollama-proxy`; `nemoclaw-provider`
`proxy_compute_changes_preserve_bound_credential_storage`; SDK
`proxy_compute_changes_do_not_replace_credential_storage` |
| Destroy keeps the key volume | `docker-ollama-proxy`: the runner fails
a scenario that deletes engine storage |
| A missing, foreign, or substituted key volume is refused |
`nemoclaw-provider` contract
`missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state`;
the proxy's key storage shares that code |
| Docker recreating a removed proxy container, and restarting a stopped
one | Dropped: Docker provider behavior, as #14128 dropped for
`cache_provider` |

Removed with the test: its `live-docker` selector, the `proxy-a` image
the live steps built or derived, `NEMOCLAW_TEST_OLLAMA_PROXY_IMAGE`,
`ollama-proxy` from the images live steps pull, and the related
`ci_lifecycle` assertions and docs.

Part of #14060 and #14061. `managed_gateway.rs` and its
re-apply-after-destroy check stay.

## Validation

- `cargo ci` on darwin_arm64: fmt, clippy, build, test, schema, bundle,
and lifecycle (95 tests, including all HCL integration scenarios).
- The new key assertion failed when pointed at a string the proxy's
resources do contain (`ollama-auth`), and passed with the fixture's key.
- `nemoclaw-build` `live_` tests (30) pass after removing the proxy
image.
- The deleted live test ran only in `Live / Docker` on Linux; that job
runs in CI on this PR without it.

Signed-off-by: San Dang <[email protected]>
@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: ci CI workflows, checks, release automation, or GitHub Actions area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants