Skip to content

test(e2e): run the live suites with OpenClaw - #13704

Merged
cv merged 2 commits into
v1from
test/12734-openclaw-live
Oct 26, 2026
Merged

cv merged 2 commits into
v1from
test/12734-openclaw-live

Conversation

@gaveezy

@gaveezy gaveezy commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Failure

#12734 asks the live suites to validate OpenClaw agents managed through Fabric. They ran Pi instead, because OpenClaw couldn't start in an OpenShell sandbox with Fabric v0.5.0 (#13372). #13698 pinned Fabric main, where OpenClaw starts, but left the live suites on Pi.

Decision

live_images::agent() now returns the openclaw Bake target and the nvidia.fabric.openclaw harness. cargo ci live-images, live-docker and live-kind all take the agent from it, so no runner changes.

flowchart LR
  images["cargo ci live-images<br/>builds nc-live-images:openclaw"] --> docker["Live / Docker"]
  images --> kind["Live / Kind"]
  docker --> sandbox["OpenShell sandboxes<br/>nvidia.fabric.openclaw"]
  kind --> sandbox
Loading
  • Both Linux platforms switch. The agents Bake matrix builds openclaw for linux/arm64 and linux/amd64 (feat: build every agent harness for linux/amd64 #13519, refactor: build one agent harness list on every platform #13520), and no doc excludes OpenClaw on either.
  • The Kubernetes live tests add model extensions only for Pi, so their documents need no change.
  • Four ci_lifecycle tests, the Kind archive-load unit test, docs/contributing/testing.md and docs/contributing/live-tests.md named Pi as the live image; they now name OpenClaw.
  • The docs/limits.md row for the OpenClaw request walkthrough stays: the live suites request no inference, so they don't rehearse it.

Budgets: unchanged. The OpenClaw image is larger than Pi's (about 1 GB with the dummy), and loading it happens before the timed tests; OpenClaw adds about 8–10 s to each Kind test that starts an agent, which CI measured well inside the 270 s and 120 s budgets.

Validation

  • The updated expectations failed against Pi, then passed after the switch.
  • cargo ci passes after merging v1 9106480f4: unit, schema, bundle and 156 lifecycle tests.
  • Real live runs with OpenClaw on linux_arm64 (cargo ci live-images, then live-kind and live-docker --images): Kind 7/7 in 249.0 s (slowest 97.1 s), Docker 9/9 in 231.2 s. This host runs Kind about 1.5 times slower than a CI runner; Pi took 224.9 s here.
  • This PR's earlier CI (run 40215004408) passed Live / Kind and Live / Docker on both architectures: Kind took 186.3 s (arm64) and 198.0 s (amd64) of 270 s, the slowest test 82.6 s of 120 s, about 8–10 s more per agent test than Pi.

Part of #12734.

Part of #12734.

## Failure

#12734 asks the live suites to validate OpenClaw agents managed through
Fabric. They ran Pi instead, because OpenClaw couldn't start in an
OpenShell sandbox with Fabric v0.5.0 (#13372). #13698 pinned Fabric
`main`, where OpenClaw starts, but kept the live suites on Pi.

## Decision

- `live_images::agent()` returns the `openclaw` Bake target and the
  `nvidia.fabric.openclaw` harness. `cargo ci live-images`,
  `live-docker` and `live-kind` all take the agent from it, so the
  runners don't change.
- Both platforms switch. The `agents` matrix builds `openclaw` for
  `AGENT_PLATFORM` `linux/arm64` and `linux/amd64` (#13519, #13520), and
  no doc excludes OpenClaw on either.
- The Kubernetes live tests add Pi's model extensions only for Pi, so
  their documents need no change.
- Tests and docs that named Pi as the live image now name OpenClaw:
  four `ci_lifecycle` tests, the Kind archive-load unit test,
  `docs/contributing/testing.md` and `docs/contributing/live-tests.md`.
- `docs/limits.md` keeps the OpenClaw request walkthrough row: the live
  suites request no inference, so they don't rehearse getting started's
  request steps.

Risk: the OpenClaw image is larger than Pi's. The budgets in
`.config/test-budgets.yaml` stay as they are. Their AMD64 figures were
measured in #12964, when AMD64 ran OpenClaw; their ARM64 figures are
Pi's. Since then, Kind gained the registry test, which pushes the agent
image to an in-cluster registry and runs alone, and the OIDC test. The
`live-images` job also builds and uploads a larger archive, outside the
suites' budgets. This PR's Live / Docker and Live / Kind jobs measure
both platforms; a suite over budget needs a faster test, not a higher
budget.

## Validation

- The updated expectations failed against Pi first: four `ci_lifecycle`
  tests and `archived_agent_reaches_kind_without_loading_or_saving_host_images`.
  They pass after the switch.
- `cargo fmt --check` and `cargo ci clippy` pass.
- `cargo test -p nemoclaw-build --test integration`: 116 passed, 2
  ignored.
- `cargo nextest list --run-ignored only` selects 7 `live-kind` and 9
  `live-docker` tests, the counts #13698 ran.
- `cargo ci` passes: 1,673 unit tests and 156 lifecycle tests, with
  the bundle.

Not run here: `cargo ci live-images`, `live-docker` and `live-kind`,
because this host has no Docker or kind. This PR's CI runs them on Linux
ARM64 and AMD64. #13698 reported both suites passing on ARM64 with the
agent temporarily switched to OpenClaw, and didn't run them on AMD64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

This repository limits you to 5 open pull requests. Please close or merge an existing PR before opening another one.

@github-actions github-actions Bot closed this Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Bring in v1 at 9106480, which keys inferenceProviders and sandboxes by
name (#13703, #13705). No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gaveezy gaveezy reopened this Oct 26, 2026
@cv
cv enabled auto-merge (squash) October 26, 2026 08:34
@cv
cv merged commit f2d92ad into v1 Oct 26, 2026
56 of 57 checks passed
@cv
cv deleted the test/12734-openclaw-live branch October 26, 2026 08:44
gaveezy added a commit that referenced this pull request Oct 26, 2026
Two files conflicted with #13627 (69e0eab), which runs the gateway
live test on OpenShift; #13704 (f2d92ad) switched the live agent to
OpenClaw without conflicts. Keep both sides:

- kubernetes_live.rs: this branch's `random_hex` and `create` helpers
  and #13627's `runtime_provider`. The OpenShift-profile test starts with
  #13627's refusal of a cluster that serves `security.openshift.io`,
  then deploys this branch's three agents.
- live-tests.md: this branch's description of the shared flow, with
  #13627's sentence about that refusal after the UID-range sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gaveezy added a commit that referenced this pull request Oct 26, 2026
Bring in #13551's merge of v1 at 69e0eab (15ce41e): the live agent is
now OpenClaw (#13704), and the OpenShift-profile test refuses OpenShift
clusters (#13627). No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cv pushed a commit that referenced this pull request Oct 26, 2026
…ixed stub (#13551)

The kind suite's shared flow behind the OpenShift-profile and registry tests deployed one agent, applied once, exported and destroyed, and sent no request (#12734).

The OpenShift-profile test now deploys three agents on one gateway; the registry test keeps one. The flow applies, applies again unchanged, sends each agent a request, exports, applies the export, sends another round, and destroys. Sandbox IDs, agent bindings, Fabric runtime IDs and OpenTofu state must stay unchanged, and each agent must answer from the runtime the first apply recorded. A pinned nginx stub in its own namespace answers every chat completion with a value unique to the run: it establishes the request path, not inference. A failed apply or request prints pod states, logs and events.

The live agent is the one the live suites build, now OpenClaw (#13704); Pi routes also declare the model fields Pi needs. With OpenClaw on arm64, `cargo ci live-kind` passed 7 of 7, the three-agent test in 83 s of 120 s and the suite in 197 s of 270 s.

Part of #12734.
cv added a commit that referenced this pull request Oct 26, 2026
…en is refused (#13632)

Part of #12734. It builds on #13551, now merged.

## Failure

The Kind OIDC test used one token for apply, export and destroy, so no
live run showed that NemoClaw reads `token.env` again on each command,
the renewal docs/kubernetes.md documents ("When the token expires, get a
new one and rerun"). The refused plan was checked only for not echoing
the token: nothing showed that a refusal leaves state alone or that no
token reaches the state directory. The issuer's namespace was deleted
only after every check passed.

## Decision

```mermaid
flowchart LR
    K["issuer key<br/>nc-issuer-* namespace"] -->|first token| A["Deployment 1<br/>apply"]
    K -->|other audience| R["Deployment 2<br/>plan: refused"]
    K -->|rotated token, 1 s later| P["Deployment 3<br/>plan: no changes<br/>export = document<br/>destroy"]
    A --> R --> P --> S["no token in any<br/>state file"]
    R -.- U["intent.json, tfstate, kubernetes/<br/>byte-identical; no token in error"]
```

- Refusal: `intent.json`, `terraform.tfstate`, its backup and every file
under `kubernetes/` must be byte-identical before and after the
foreign-audience plan, with none added or removed, and the error text
must hold no token. The refusal surfaces as an OpenTofu execution error,
so its wording and class are not checked. Generated configuration, the
lock file, saved plans, `.terraform`, `.helm` and `diagnostics/` are
left out, because each command writes them.
- Rotation: the test signs a second token with the issuer's key one
second later, so `iat`, `nbf` and `exp` differ. Only a new Deployment
holds it, and it runs plan, export and destroy.
- Secrets: after export and after destroy, no regular file in the state
directory may contain any of the three tokens. The raw-byte search skips
OpenTofu's symbolic links to the bundle and cannot see inside saved
plans, which are zip archives.
- Cleanup: every assertion runs after destroy. If destroy with the
rotated token fails, a separate Deployment with the first token destroys
before the test fails. A drop guard deletes the issuer namespace when
the test passes or panics, bounded at 15 s; a nextest time-limit kill
skips it.
- No red test:
`a_refused_forward_token_is_an_authentication_failure_without_effects`
and `failed_and_partial_observations_retain_protocol_state` cover these
promises against fakes, and no defect is known. A token in state, or
state changed by a refusal, would be a defect to reproduce at the unit
or contract layer first.
- Out of scope: expiry enforcement, which #13422 left to OpenShell.
- docs/contributing/live-tests.md describes these checks and their
limits, and names the token field `token.env` instead of the rejected
`tokenEnv`.

## Validation

- After merging v1 `62f994bf8`, which holds #13551 and switches the live
agent to OpenClaw (#13704), `cargo ci` passed: 156 lifecycle tests.
- The real `cargo ci live-kind` with OpenClaw on linux_arm64 passed 7 of
7, including this OIDC test, at 102.6 s. This host runs Kind about 1.5
times slower than a CI runner.
- Earlier, on local k3s with Pi, it passed twice at 81.7–85.1 s, about 4
s more than before this change.
- Giving the rotated Deployment the other-audience token failed the
test, as intended: its operations failed with `observation
authentication failed`, which holds no token, and the fallback destroy
with the first token succeeded.
- Temporary offline tests, not committed, checked the state snapshot,
the token search and the guard. Against a server that accepts
connections and never answers, the guard returned after 15 s, and after
30 s without the bound.

---------

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Carlos Villela <cvillela@nvidia.com>
@wscurran wscurran added v1 NemoClaw v1 branch area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance integration: openclaw OpenClaw integration behavior labels Oct 27, 2026
@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: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance integration: openclaw OpenClaw integration behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants