Skip to content

fix(e2e): name the vLLM live case after its test - #14022

Merged
cv merged 1 commit into
poc/v1-hcl-e2e-openclaw-hostedfrom
fix/hcl-e2e-vllm-case-name
Oct 30, 2026
Merged

cv merged 1 commit into
poc/v1-hcl-e2e-openclaw-hostedfrom
fix/hcl-e2e-vllm-case-name

Conversation

@cv

@cv cv commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Failure

#13849 reads hcl/cases/<test name>.yaml for each integration scenario. #13723's 6a00abb renamed the vLLM case to docker-openclaw-vllm-rtx-pro-6000.yaml, and hcl-e2e.yml maps case: docker-openclaw-vllm to it through a separate deployment key. Every hcl_integration shard in #13849 panics with cases/docker-openclaw-vllm.yaml is missing (Lifecycle job).

Decision

Name each case after its test file. This renames the YAML to docker-openclaw-vllm.yaml without changing its content, removes the workflow's deployment matrix key and DEPLOYMENT variable, and reads cases/$CASE.yaml. The RTX PRO 6000 profile and amd64 architecture stay in the YAML.

This targets #13723's branch, poc/v1-hcl-e2e-openclaw-hosted. After merge, #13723's description should name hcl/cases/docker-openclaw-vllm.yaml for the GPU lane.

Validation

On linux_arm64, with a bundle built by cargo ci bundle from #13849's head 46522fab0d, running cargo test --locked -p nemoclaw-e2e --test integration hcl_integration:: -- --ignored --test-threads=1:

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]>
@cv

cv commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi coding agent Session metadata; harness version not recorded
Skills recorded nemoclaw-contributor-create-pr (complete read) Skill reads in the session record to cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); PULL_REQUEST_TEMPLATE.md (complete read); SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and reads to cutoff
Tool calls partial typescript: 38 Wrapper calls to cutoff, including failures; nested shell, git, and gh calls inside them are not counted
Session window recorded 2026-10-30T11:39Z to 2026-10-30T11:56Z; about 17 min First event to cutoff, including idle time; the session also reviewed #13723 and #13849 before this change
Compactions recorded 0 Complete record to cutoff
Models recorded claude-opus-5-5 Model change events; no change after start
Reasoning levels recorded high Thinking-level events; no change after start

@cv
cv merged commit e71ee1f into poc/v1-hcl-e2e-openclaw-hosted Oct 30, 2026
28 of 29 checks passed
@cv
cv deleted the fix/hcl-e2e-vllm-case-name branch October 30, 2026 12:00
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]>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance labels Oct 30, 2026
@cv cv added the v1 NemoClaw v1 branch label Nov 17, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 19, 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: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants