Repository navigation
test(e2e): plan every remaining NemoClaw type from authored HCL - #12868
Merged
Merged
Conversation
#12782 requires each type to be exercised through pinned OpenTofu by an authored configuration. The Kubernetes authentication and gateway resources, the external Ollama model, and the runtime image check had none, and kubernetes_hcl was missing from the lifecycle profile, so CI never ran it.
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-12868.docs.buildwithfern.com/nemoclaw |
The fixture's Docker engine listens on a Unix socket, which the Windows clippy step cannot build.
This was referenced Oct 9, 2026
6 tasks done
cv
added a commit
that referenced
this pull request
Oct 10, 2026
…ontract tests (#12939) Part of #12879 and #12876. ## Failure The `nemoclaw` provider's OpenTofu tests sat in `nemoclaw-e2e` beside the system scenarios, and the lifecycle profile selected them by name pattern. Nothing checked that every type had one, and #12868 added several by hand. ## Decision - **Contract binary:** `nemoclaw-provider` gets a `contract` test binary, like the `openshell` and `fabric` ones. `service_storage`, `kubernetes_hcl`, `runtime_image`, `vllm_runtime`, `gateway_readiness`, and `discovery` move into it unchanged. - **Coverage test:** `every_type_has_a_contract_test` lists each resource and data source the provider serves, and fails for any type without a contract test. - **Exceptions list:** `ELSEWHERE` records the types still tested only elsewhere, each with its reason. The test also fails when one of them gains a contract test. | Type | Tested in | Why not in the contract binary yet | |---|---|---| | `managed_gateway` | `nemoclaw-e2e` `provider_protocol` | Needs that crate's fixture provider (#12878) | | `service_capacity`, `service_readiness` | `nemoclaw-e2e` | Needs that crate's SSH fixture (#12878) | | `gateway_storage` | `nemoclaw-e2e` `managed` and the live Docker gateway test | Needs Docker | | `inference_capabilities` | `nemoclaw-e2e` `inference_discovery` | Read only through SDK deployments | - **Lifecycle profile:** it now selects all three providers' contract binaries. It lists only the system modules that remain in `nemoclaw-e2e`. - **Docs:** `docs/contributing/integration-tests.md` describes the binary and the exceptions. ## Still to do for #12879 - **Kubernetes:** `kubernetes_hcl` checks the Kubernetes resources only through `plan`. Testing apply and refresh needs a fake Kubernetes API. - **Exceptions:** the five types above need contract tests. Three of them depend on fixture binaries that would first move into a shared crate (#12878). ## Validation - **Local run:** through the lifecycle profile, the contract binary (16 tests) and the three tests left in `nemoclaw-e2e` pass in 13 s. The coverage test failed at first for two reasons. The runtime data sources are named indirectly in `vllm_runtime`, so the test now also matches type names. The rest are the types listed in `ELSEWHERE`. - **Checks:** workspace clippy at `-D warnings` and fmt are clean.
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.
Part of #12782.
Failure
#12782 is done only when every type is exercised by an authored configuration through pinned OpenTofu. Four
nemoclawtypes had no such configuration:nemoclaw_kubernetes_authnemoclaw_kubernetes_gatewaynemoclaw_ollama_external_modelnemoclaw_runtime_imagekubernetes_hcl, added in #12855, was also missing from the lifecycle profile, so CI never ran it.Decision
kubernetes_hclplans storage, authentication and the gateway together without a cluster. The authentication and gateway resources take the storage's generatedowner, as the provider guide requires. An invalid namespace is rejected at the attribute on every resource. In that check each resource names its own owner, because OpenTofu skips resources whose dependencies fail validation.service_storageapplies proxy storage with generated identity and an external model that shares it, against Docker and Ollama fixtures. Changing the upstream digest then stops planning and namesservices.local.upstream.runtime_imagereads an image's labels through a read-only Docker fixture and reportsavailable. An image without a required label fails the check.kubernetes_hclandruntime_imagejoin the lifecycle profile.fabric_sandbox_readinessstays with the remaining #12788 work, which changes its inputs.Validation
The lifecycle profile ran these three groups locally through pinned OpenTofu: 7 tests, all passing. Clippy at
-D warningsand fmt are clean. This PR adds tests only; production code is unchanged.