Repository navigation
test(e2e): run the live suites with OpenClaw - #13704
Merged
Merged
Conversation
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>
Contributor
|
This repository limits you to 5 open pull requests. Please close or merge an existing PR before opening another one. |
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-13704.docs.buildwithfern.com/nemoclaw |
cv
enabled auto-merge (squash)
October 26, 2026 08:34
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
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>
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
#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 theopenclawBake target and thenvidia.fabric.openclawharness.cargo ci live-images,live-dockerandlive-kindall take the agent from it, so no runner changes.agentsBake matrix buildsopenclawforlinux/arm64andlinux/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.ci_lifecycletests, the Kind archive-load unit test,docs/contributing/testing.mdanddocs/contributing/live-tests.mdnamed Pi as the live image; they now name OpenClaw.docs/limits.mdrow 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
cargo cipasses after merging v19106480f4: unit, schema, bundle and 156 lifecycle tests.cargo ci live-images, thenlive-kindandlive-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.Part of #12734.