Repository navigation
fix(e2e): name the vLLM live case after its test - #14022
Merged
Merged
Conversation
The live workflow mapped case docker-openclaw-vllm to the deployment file docker-openclaw-vllm-rtx-pro-6000.yaml. The integration runner in #13849 reads cases/<test name>.yaml, so every hcl_integration shard panics with "cases/docker-openclaw-vllm.yaml is missing". Rename the case to match its test and drop the workflow's separate deployment key. The hardware profile stays inside the YAML. Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — opening
|
This was referenced Oct 30, 2026
cv
added a commit
that referenced
this pull request
Oct 30, 2026
…ures (#13849) ## Outcome Stacked on #13723 (`poc/v1-hcl-e2e-openclaw-hosted`, merged at `ade79c6730`, which includes #14022 and runs the live scenarios as `hcl_live`). Merge #13723 first. Integration scenarios run under `tofu test` from the same scenario documents as #13723's live E2E suites. Each scenario compiles a NemoClaw document with the production SDK and runs the real OpenShell, Fabric, host, vLLM, and Ollama providers against fixtures. The Docker provider is mocked with `mock_provider`. A scenario needs only YAML and HCL; no Rust changes per scenario. ## Reason The live E2E suites check whether agents answer on real infrastructure. These scenarios check, on every PR and without infrastructure or credentials, what the graph and provider handoffs produce: - the SDK's Docker inputs; - gateway storage and readiness; - inference registrations and credentials; - sandbox bindings and policy; - the Fabric configuration each agent starts with; - retention during teardown. ## Design ``` crates/nemoclaw-e2e/hcl/ cases/<scenario>.yaml # shared scenario catalog (live E2E and integration) main.tf, tests/, verifier/ # live E2E root (#13723), unchanged integration/ # integration root main.tf harness/main.tf # copied beside each compiled scenario: fixture setup + observations modules/fixtures, modules/observed tests/<scenario>.tftest.hcl # same <scenario> name as cases/ ``` The runner, `tests/hcl_integration/mod.rs`, works as follows: 1. Start the fixtures once, on one fixed engine socket. 2. Compile each `cases/<scenario>.yaml` into `cases/<scenario>/` of a work copy of the integration root, beside the harness. 3. Run `tofu init` once. 4. For each scenario, reset the fixtures and run `tofu test -filter=tests/<scenario>.tftest.hcl`. 5. Check what OpenTofu's cleanup left: only storage NemoClaw retains, no gateway objects or Fabric runtimes, no deleted storage, no unknown engine request, and no leaked fixture credential. 6. On failure, keep redacted evidence. Other parts: - **Fixtures** (`tests/hcl_integration/fixtures.rs`): the existing OpenShell gRPC and streaming-exec fixture, plus the existing stateful fake engine, now shared through `crates/test-support/docker_engine.rs`. The fake engine adds declared images and containers, and an inference upstream that records requests. - **`fixture` provider** (`nemoclaw-fixture-control`): one data source, `fixture_state`. Its `declare` JSON input configures the fixtures, and its `observations` JSON output returns what they recorded. - **Test file shape:** `fixtures` (targeted plan), `deploy`, `verify` (a no-op apply with assertions), and `teardown` (sets `permit_destroy`). Assertions use real resource and data-source attributes and the recorded facts. `modules/observed` exposes `agents` keyed by sandbox, matching the live verifier's per-target view. ## Scenarios | Scenario | Checks | |---|---| | `docker-openclaw-nvidia` (live E2E document) | The `assistant` OpenClaw agent on NVIDIA hosted inference: gateway Docker inputs and storage, readiness through the mocked container ID, one registration with `env:NVIDIA_INFERENCE_API_KEY`, the sandbox's binding and policy, the agent started with its compiled configuration. Every sandbox the document declares is checked, so the live document can add or remove sandboxes | | `docker-openclaw-vllm` (live E2E document) | Unauthenticated amd64 vLLM (RTX PRO 6000 profile) with an isolated sandbox: data volume only, no credential storage, no key read, registration without credential, agent model and address. The fake engine reports each service image's declared architecture | | `docker-openclaw-vllm-bearer` | vLLM with bearer authentication: credential storage created on the engine and mounted, key read, registration holding the generated key (`file:CONTAINER:/credentials/inference-key`) | | `docker-openclaw-ollama` | Managed Ollama: Docker inputs from the runtime launch, runtime image on the engine, readiness from the status file, registration and policy at the service address | | `docker-hosted-ollama-two-agents` | OpenClaw on hosted inference and Hermes on Ollama: separate registrations, each sandbox bound to and reaching only its own provider | | `docker-vllm-shared-two-agents` | One authenticated vLLM shared by OpenClaw and Hermes: one registration per harness holding the generated key, isolated bindings | | `openshift-external-two-providers` | OpenShift with Anthropic Messages and NVIDIA providers: each registration's API, base URL, and credential; multi-route OpenClaw; single-route Hermes | | `kubernetes-gateway-driver-mismatch` | Gateway reports Docker for a Kubernetes document: the workspace precondition rejects the plan (`expect_failures`), and nothing reaches OpenShell, Fabric, or the upstream | External Kubernetes deployments are not repeated here, because the `kubernetes_agents` system test already covers them through the SDK. ## Verification On darwin_arm64 at `de3eeb5eb1`, with a bundle built by `cargo ci bundle` from this checkout (OpenTofu 1.12.9): - `cargo clippy -p nemoclaw-e2e --all-targets -- -D warnings` passed. #13723 removed `nemoclaw-backend` from `nemoclaw-e2e`'s dependencies; the runner now takes it as a dev-dependency. - `cargo ci --base origin/poc/v1-hcl-e2e-openclaw-hosted` passed every step: 1701 unit tests, including `every_scenario_test_names_a_case`, and 161 lifecycle tests. The four `hcl_integration` shards took 67.7 s together, the slowest 21.1 s. - `every_scenario_test_names_a_case` failed when `cases/docker-openclaw-vllm.yaml` or `cases/docker-openclaw-nvidia.yaml` was moved away, naming both roots' test files, and passed once each was restored. - Earlier negative checks (reverted) each failed only their own scenario: a wrong credential source, a removed `teardown` run, an expected key read in the unauthenticated vLLM scenario, and the correct driver in the mismatch scenario. - GitHub CI on `8d823cd504` passed all 40 checks. ## CI The scenarios run once per pull request, in CI / Bundle's `Lifecycle` jobs on Linux and macOS, from the bundle and test archive those jobs already use. Each job sets `NEMOCLAW_INTEGRATION_EVIDENCE`. The runner appends each scenario's result there, and the job summary lists the results. A failed job uploads the directory, with failed scenarios' redacted OpenTofu output and observations, as `hcl-integration-evidence-PLATFORM-SHARD-ATTEMPT`. The runner deals the scenarios across four tests (`scenarios_in_shard_1` to `scenarios_in_shard_4`), each about 20 s, so each stays within the lifecycle budget of 90 s per test. As one test, the scenarios took 66–88 s on CI runners. The shards share the fixed engine socket, so the `hcl-integration` nextest test group runs them one at a time on a runner. ## Limits - **Not run:** agents are not invoked and no inference is performed; the live E2E suites cover that. The vLLM and Ollama runtimes are declared containers and files, not running services. - **Not covered:** - the SDK's plan, apply, export, and destroy flow, and interrupted-operation recovery; - managed Kubernetes with Helm; - gateway TLS and bearer credentials, which the runner drops for the plaintext fixture gateway. - **Hard-coded names:** Docker test files name the generated Docker alias, which follows from the fixed engine socket, and the container resources the IDs are pinned on. Mocked images all report one ID. OpenTofu 1.14's shared mock files (`mock_provider { source = ... }`) can move the mock into one file once the pin moves. - **Shared documents:** live E2E edits to `cases/*.yaml` change these scenarios. `every_scenario_test_names_a_case` fails with the unit tests when a test file in `hcl/tests` or `hcl/integration/tests` has no matching case. - **Runtime budget:** four shard tests share the scenarios, about 20 s each on CI. With much larger scenario counts, `SHARDS` in the runner needs to grow to keep each shard within the 90 s per-test budget. --- Signed-off-by: San Dang <[email protected]> --------- Signed-off-by: San Dang <[email protected]> Signed-off-by: Carlos Villela <[email protected]> Co-authored-by: Carlos Villela <[email protected]> Co-authored-by: Rebecca Sliter <[email protected]> Co-authored-by: Rebecca Sliter <[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
#13849 reads
hcl/cases/<test name>.yamlfor each integration scenario. #13723's6a00abbrenamed the vLLM case todocker-openclaw-vllm-rtx-pro-6000.yaml, andhcl-e2e.ymlmapscase: docker-openclaw-vllmto it through a separatedeploymentkey. Everyhcl_integrationshard in #13849 panics withcases/docker-openclaw-vllm.yaml is missing(Lifecycle job).Decision
Name each case after its test file. This renames the YAML to
docker-openclaw-vllm.yamlwithout changing its content, removes the workflow'sdeploymentmatrix key andDEPLOYMENTvariable, and readscases/$CASE.yaml. The RTX PRO 6000 profile andamd64architecture stay in the YAML.This targets #13723's branch,
poc/v1-hcl-e2e-openclaw-hosted. After merge, #13723's description should namehcl/cases/docker-openclaw-vllm.yamlfor the GPU lane.Validation
On linux_arm64, with a bundle built by
cargo ci bundlefrom #13849's head46522fab0d, runningcargo test --locked -p nemoclaw-e2e --test integration hcl_integration:: -- --ignored --test-threads=1:cases/docker-openclaw-vllm.yaml is missing.docker-openclaw-vllmfailedImage compatibility check failedondata.host_image.runtime_image_present_inference_service_inference_qwen: test(e2e): run SDK-compiled cases under tofu test against shared fixtures #13849's fixture engine reports every image asarm64, while6a00abbset the case toarchitecture: amd64. That fix belongs in test(e2e): run SDK-compiled cases under tofu test against shared fixtures #13849.matrix.deployment, orDEPLOYMENTremains, and the workflow parses as YAML.actionlintwas not available locally.