Repository navigation
test(e2e): drop the live cache_provider test - #14128
Merged
Merged
Conversation
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.
|
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. |
Collaborator
Author
Authoring session — opening
|
8 tasks
Contributor
sandl99
marked this pull request as ready for review
November 3, 2026 07:08
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failure
cache_provider(standalone_hcl_recovers_cache_and_guards_credentials_without_sdk_orchestration) ran hand-written HCL that composed the Docker provider'sdocker_volumeanddocker_containerwithvllm_credential_storageagainst 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 thedocker-openclaw-hermes-vllmHCL E2E scenario, except one: nothing outside this live test showed that an appliedvllm_credential_storageplans no changes. Thetofu testreapplyrun 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_statenow plans with-detailed-exitcodeafter its first apply, before the faults.tests/e2e/rust/cache_provider.rs,fixtures/cache_provider.tf, itsmain.rsmodule andlive-dockerselector, and theNEMOCLAW_TEST_CACHE_ENGINE/NEMOCLAW_TEST_CACHE_IMAGEinputs (and the now-unusedENGINEconstant) inlive_docker.rs. The agent image stays:NEMOCLAW_TEST_GATEWAY_SANDBOX_IMAGEand the gateway documents use it.fixtures/gateway_readiness.tf: nothing has referenced it since test(e2e): migrate live happy paths to HCL E2E scenarios #14082, which left thefixtures/directory with only these two files.integration-tests.md.testing.mddoesn't name this test or its inputs, so it is unchanged.cache_providerstepnemoclaw-providercontracthcl/storage/tests/storage.tftest.hclrunscreateandreapply(retained_storage_keeps_its_identity)failures/service_storage.rsmissing_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.hclrununchanged_plan(output.changes == {}; the SDK'scheck_planlists every non-no-op resource and fails if a required one is missing). That scenario runs only on Live / HCL dispatch.revision=replaced), same keynemoclaw-sdkdeployment::tests::disposable_docker_compute_reconciles_while_durable_storage_does_not_recreate. Key bytes kept and never regenerated for an initialized volume:nemoclaw-runtimevllm::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.fail_start, recovery with the same keymust_runstart failure) and Docker volume persistence, droppednemoclaw-sdkservices::installers::tests::inference_removal_retains_cache_and_requires_authenticated_storage; on a real volume,docker-openclaw-hermes-vllmrundestroy(retainsvllm_credential_storage.inference_qwen_auth)storage.tftest.hclrunreapply(creates == 3). Key: the runtime test in row 3reconstructed)docker_volumeanddocker_containerrecreation: Docker provider, droppedmissing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state, faultmissing: plan and apply fail withbound 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.rsmanaged_services_have_independent_storage_credentials_and_dependenciesasserts the vLLM container'sdepends_oncontainsvllm_credential_storage.inference_<name>_auth. That edge matters because the/credentialsmount source is the literal<name>-auth, not a reference.substituted(same labels, new creation time);foreigncovers a different owner labelNet: 9 files, +8 / −460 (−452).
Validation
Local, darwin_arm64:
cargo ci fmt,cargo ci clippy,cargo ci test(which includes theci_lifecycle::live_docker_*fakes),cargo ci bundle, andcargo ci lifecyclepass. The lifecycle JUnit report shows the fourfailures::service_storage::*tests passing. The firstcargo ci testrun failed once onrelease_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 transientENOSPCwhile 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-dockerwall time against the 360 s limit:v1f1e436c (run 41572811552)cache_provider16.1 s)cache_provider13.3 s)