Repository navigation
Description
Model overview
This epic restructures E2E around two reusable building blocks:
- Setup scenarios — how a user reaches a completed NemoClaw environment.
- Expected state configs — what that completed environment should look like.
A setup scenario selects the platform, installation method, runtime prerequisites, and onboarding choices. It then applies one or more expected state configs. Those expected states drive which functional suites run.
flowchart TB
S[Setup scenario]
S --> P[Platform / execution target]
S --> I[Installation method]
S --> R[Runtime prerequisites]
S --> O[Onboarding choices]
S --> E[Expected state config]
E --> V[Verify expected state]
V --> Q[Select matching suites]
Q --> Run[Run ordered suites]
Run --> Report[Coverage report]
Core relationship:
setup scenario → expected state config → suite sequence
Example:
Setup scenario: ubuntu-repo-cloud-openclaw
Setup choices:
platform: Ubuntu local runner
install: repo checkout install
runtime: Docker running
onboarding:
path: cloud
agent: OpenClaw
provider: NVIDIA
mode: non-interactive
sandbox: recreate
policy: restricted
Applies expected state config:
cloud-openclaw-ready
Expected state:
CLI installed
gateway healthy
OpenClaw sandbox running
NVIDIA inference available through inference.local
credentials stored safely
policy/shields supported
Suite sequence:
smoke → inference → credentials → security-policy → diagnostics → lifecycle-basic
Multiple setup scenarios can apply the same expected state config when they should produce the same completed environment:
flowchart LR
U[ubuntu-repo-cloud-openclaw]
M[macos-repo-cloud-openclaw]
B[brev-launchable-cloud-openclaw]
C[cloud-openclaw-ready]
Q[smoke → inference → credentials]
U --> C
M --> C
B --> C
C --> Q
Why we are doing this
Our E2E tests have grown organically around individual bugs, workflows, providers, and runners. That has produced useful coverage, but the current structure makes it hard to answer the questions that matter most for user confidence:
- Which ways of completing setup are covered end-to-end?
- Which installation methods are covered on which platforms?
- Which onboarding choices are covered after install succeeds?
- Which final environment states are expected from each setup path?
- Which functional suites are run over those completed environments?
- Are we duplicating expensive setup/onboarding work across tests?
- Do NV QA/UAT bugs map to missing setup scenarios, missing final-state validation, or missing functional suites?
Recent NV QA/UAT failures show that bugs usually occur at the intersection of:
- Platform / execution target — Ubuntu, macOS, WSL, Brev remote, DGX Spark, GPU runner, Docker/Colima/Docker Desktop variants.
- Installation method — repo checkout install, public
curl | bash, launchable/Brev plugin, release install, upgrade from old version. - Runtime prerequisites — Docker running, Docker missing, Docker stopped, Docker 26+, NVIDIA runtime/CDI present or missing, Ollama present/running/unreachable.
- Onboarding path and choices — cloud/NVIDIA provider, local Ollama, Hermes, OpenClaw, non-interactive mode, policy tier, credentials source, gateway port/bind address, sandbox recreate/resume/repair.
- Expected final environment state — CLI installed, gateway healthy, sandbox running, provider configured, inference available, credentials stored safely, shields/policy available, lifecycle operations safe.
- Functional areas validated after setup — smoke, inference, credentials, security/policy, messaging, diagnostics, lifecycle, recovery.
Today our E2E layout does not make these intersections explicit. Many scripts combine platform setup, installation, onboarding, and functional validation in one file. That makes it difficult to reuse the same logical validation sequence across different setup paths, and it makes coverage gaps difficult to see.
This epic proposes restructuring E2E around a setup completion scenario matrix.
Core model
The new model should make setup paths first-class.
Scenario = the way setup is completed
Scenario dimensions:
platform / execution target
× installation method
× runtime prerequisites
× onboarding path
× onboarding choices
Scenario expected_state:
what should exist after setup + onboarding completes
Scenario suites:
ordered functional validations run over that final state
In other words:
Inputs:
Where are we running?
How did we install?
What host prerequisites exist?
What onboarding path and choices did we use?
Outputs:
What completed environment should exist?
Validation:
Which functional suites should run, in what order, over that environment?
This is intentionally a sparse matrix, not a full Cartesian product. We should define meaningful supported setup scenarios rather than run every possible combination.
Terminology
Scenario
A named setup completion path.
Examples:
ubuntu-repo-cloud-openclaw
macos-repo-cloud-openclaw
wsl-repo-cloud-openclaw
brev-launchable-cloud-openclaw
gpu-repo-local-ollama-openclaw
dgx-spark-local-ollama-openclaw
ubuntu-repo-cloud-hermes
ubuntu-no-docker-preflight-negative
Dimensions
The input axes that define how setup is completed.
dimensions:
platform:
install:
runtime:
onboarding:Expected state
The contract that should be true after platform setup, install, and onboarding complete.
expected_state:
cli:
container_runtime:
gateway:
sandbox:
inference:
credentials:
security:
messaging:
lifecycle:Suites
Reusable functional validations run after setup/onboarding has produced the expected environment.
Examples:
smoke
inference
local-ollama-inference
credentials
messaging
security-policy
diagnostics
lifecycle-basic
recovery
platform-macos
platform-wsl
platform-dgx-spark
Scenario schema proposal
Example scenario:
scenarios:
ubuntu-curl-cloud-openclaw-restricted:
bdd:
feature: Cloud onboarding
scenario: Ubuntu user installs via curl and onboards OpenClaw with NVIDIA cloud inference
given:
- a clean Ubuntu runner with Docker running
- a valid NVIDIA API key is available
when:
- NemoClaw is installed via the public curl installer
- onboarding is run non-interactively
- OpenClaw is selected with NVIDIA cloud inference
- restricted policy is selected
then:
- the CLI should be installed
- the gateway should be healthy
- an OpenClaw sandbox should be running
- inference.local should route to NVIDIA cloud
- restricted policy behavior should be active
dimensions:
platform:
os: ubuntu
runner: ubuntu-latest
arch: amd64
execution_target: local
install:
method: public-curl
ref: main
mode: non-interactive
accepts_third_party: true
runtime:
container:
expected: present
engine: docker
daemon: running
scope: local
gpu:
expected: absent
ollama:
expected: absent
onboarding:
path: cloud
agent: openclaw
provider: nvidia
mode: non-interactive
sandbox:
name: e2e-cloud-openclaw
recreate: true
credentials:
source: env
key: NVIDIA_API_KEY
policy:
tier: restricted
gateway:
port: 18789
bind_address: 127.0.0.1
expected_state:
cli:
installed: true
container_runtime:
expected: present
engine: docker
daemon: running
gateway:
expected: present
health: healthy
bind_address: 127.0.0.1
sandbox:
expected: present
status: running
agent: openclaw
registry: valid
inference:
expected: available
provider: nvidia
route: inference-local
mode: gateway-routed
credentials:
expected: present
storage: gateway-managed
leak_check: enabled
security:
policy_engine: enabled
shields: supported
suites:
- smoke
- inference
- credentials
- security-policy
- diagnosticsSetup/onboarding matrix dimensions
1. Platform / execution target
Where setup is completed.
Potential values:
ubuntu-latest
macos
wsl
brev-remote
dgx-spark
nvidia-gpu-runner
arm64
Important sub-dimensions:
platform:
os: ubuntu | macos | windows-wsl | dgx-spark
arch: amd64 | arm64
runner: github-hosted | self-hosted | brev
execution_target: local | remote2. Installation method
How NemoClaw is installed.
Potential values:
repo checkout install
public curl installer
launchable / Brev plugin install
release install
main branch install
upgrade from old version
local dev install
Important because many bugs are installation-path-specific:
curl | bashlicense gate behavior- launchable pinning / branch ref behavior
- non-TTY install behavior
- partial install state
- upgrade cleanup/migration behavior
3. Runtime prerequisites
What exists before onboarding begins.
Potential axes:
runtime:
container:
expected: present | absent | broken | misconfigured
engine: docker | colima | docker-desktop | wsl-docker
daemon: running | stopped | unreachable
version_family: docker-24 | docker-25 | docker-26
scope: local | remote
gpu:
expected: present | absent
runtime: nvidia-container-toolkit | cdi | missing-cdi | misconfigured
ollama:
expected: present | absent
daemon: running | stopped | unreachable-from-containerThis allows positive and negative setup scenarios, e.g. Docker missing, Docker stopped, missing CDI spec, Ollama unreachable from container.
4. Onboarding path
The high-level route the user takes through onboarding.
Potential values:
cloud OpenClaw with NVIDIA provider
local Ollama OpenClaw
launchable cloud OpenClaw
cloud Hermes
OpenAI-compatible endpoint
vLLM/local provider path
5. Onboarding choices
Specific flags/env/choices made during onboarding.
Potential axes:
| Axis | Example values |
|---|---|
| Interaction mode | interactive, non-interactive |
| Agent | OpenClaw, Hermes |
| Provider | NVIDIA cloud, Model Router, Ollama, OpenAI-compatible, vLLM |
| Credential source | env var, prompt, stored credential, migrated legacy file, fake token |
| Sandbox behavior | fresh, recreate, resume, repair, double-onboard |
| Policy | open, restricted, custom, presets |
| Gateway | default port, custom port, auto port, bind loopback, bind 0.0.0.0 |
| Local model | model name, model size, pull timeout, memory constraint |
| Messaging | none, Telegram, Discord, Slack, fake tokens |
| Security posture | shields up, shields down, timer, config mutable/immutable |
Profiles to avoid duplication
We should be able to compose scenarios from reusable profiles.
Example:
profiles:
platforms:
ubuntu-local:
os: ubuntu
runner: ubuntu-latest
execution_target: local
macos-local:
os: macos
runner: macos-26
execution_target: local
brev-remote:
os: ubuntu
runner: ubuntu-latest
execution_target: remote
remote_provider: brev
installs:
repo-current:
method: repo-install
ref: current-checkout
mode: non-interactive
public-curl-main:
method: public-curl
ref: main
mode: non-interactive
accepts_third_party: true
launchable-main:
method: launchable
ref: main
mode: non-interactive
runtimes:
docker-running:
container:
expected: present
engine: docker
daemon: running
docker-missing:
container:
expected: absent
gpu-docker-cdi:
container:
expected: present
engine: docker
daemon: running
gpu:
expected: present
runtime: cdi
onboarding:
cloud-openclaw:
path: cloud
agent: openclaw
provider: nvidia
credentials:
source: env
key: NVIDIA_API_KEY
local-ollama-openclaw:
path: local-ollama
agent: openclaw
provider: ollama
cloud-hermes:
path: cloud
agent: hermes
provider: nvidiaThen scenarios can compose profiles:
scenarios:
ubuntu-repo-cloud-openclaw:
uses:
platform: ubuntu-local
install: repo-current
runtime: docker-running
onboarding: cloud-openclaw
suites:
- smoke
- inference
- credentials
macos-repo-cloud-openclaw:
uses:
platform: macos-local
install: repo-current
runtime: docker-running
onboarding: cloud-openclaw
suites:
- smoke
- inference
- platform-macos
brev-launchable-cloud-openclaw:
uses:
platform: brev-remote
install: launchable-main
runtime: docker-running
onboarding: cloud-openclaw
overrides:
onboarding:
gateway:
bind_address: 0.0.0.0
suites:
- smoke
- inference
- remote-access
gpu-local-ollama-openclaw:
uses:
platform: ubuntu-local
install: repo-current
runtime: gpu-docker-cdi
onboarding: local-ollama-openclaw
suites:
- smoke
- local-ollama-inference
- ollama-proxyFunctional suite model
Suites should be reusable ordered validations that run after setup/onboarding.
Example suite definition:
suites:
inference:
title: Cloud/provider inference validation
requires_state:
gateway.health: healthy
sandbox.status: running
inference.expected: available
steps:
- id: models-health
script: suites/inference/00-models-health.sh
- id: chat-completion
script: suites/inference/01-chat-completion.sh
- id: sandbox-inference-local
script: suites/inference/02-inference-local-from-sandbox.shThe runner should validate a suite against expected_state before running it. If incompatible, fail fast or skip with an explicit reason depending on mode.
Example:
Skipping suite local-ollama-inference:
requires inference.provider=ollama
scenario has inference.provider=nvidia
Suite serialization
Within a scenario, suites should run in a logical order:
0. preflight-baseline
1. smoke
2. provider / inference
3. credentials / config
4. messaging / integrations
5. security / policy / shields
6. diagnostics / observability
7. lifecycle / recovery / destructive tests
8. teardown
Rationale:
smokeruns first so later failures are not noisy if the environment is fundamentally broken.inferenceruns early because it is the core end-to-end proof.credentials/configrun after base provider wiring is known-good.messagingdepends on gateway/provider wiring.security-policycan mutate policy/shields state and should generally run after base functionality.diagnosticsare more useful after the scenario has runtime state.- lifecycle/recovery/destructive checks should run late because they may restart, rebuild, destroy, or intentionally perturb the environment.
Normalized runtime context
After setup and onboarding complete, each scenario should emit a context consumed by suites.
Example:
.e2e/context.envExample contents:
E2E_SCENARIO=ubuntu-repo-cloud-openclaw
E2E_PLATFORM_OS=ubuntu
E2E_EXECUTION_TARGET=local
E2E_INSTALL_METHOD=repo-install
E2E_ONBOARDING_PATH=cloud
E2E_AGENT=openclaw
E2E_PROVIDER=nvidia
E2E_SANDBOX_NAME=e2e-cloud-openclaw
E2E_GATEWAY_URL=http://127.0.0.1:18789
E2E_GATEWAY_BIND_ADDRESS=127.0.0.1
E2E_CONTAINER_ENGINE=docker
E2E_CONTAINER_DAEMON=running
E2E_INFERENCE_ROUTE=inference-localFunctional suites should consume this context instead of rediscovering scenario state in ad hoc ways.
Proposed directory structure
Target shape:
test/e2e/
scenarios.yaml
suites.yaml
run-scenario.sh
run-suites.sh
lib/
context.sh
env.sh
assertions.sh
artifacts.sh
cleanup.sh
docker.sh
gateway.sh
sandbox.sh
setup/
ubuntu.sh
macos.sh
wsl.sh
brev-launchable.sh
gpu-runner.sh
dgx-spark.sh
install/
repo-current.sh
public-curl.sh
launchable.sh
release.sh
upgrade-from-version.sh
onboard/
cloud-openclaw.sh
cloud-hermes.sh
local-ollama-openclaw.sh
openai-compatible-openclaw.sh
suites/
smoke/
inference/
local-ollama-inference/
credentials/
messaging/
security-policy/
diagnostics/
lifecycle-basic/
recovery/
platform-macos/
platform-wsl/
platform-dgx-spark/
Workflow shape
The workflow should run scenarios, not hand-coded monolithic jobs.
Example:
jobs:
e2e:
strategy:
fail-fast: false
matrix:
include:
- id: ubuntu-repo-cloud-openclaw
runs_on: ubuntu-latest
- id: gpu-repo-local-ollama-openclaw
runs_on: linux-amd64-gpu-rtxpro6000-latest-1
runs-on: ${{ matrix.runs_on }}
steps:
- uses: actions/checkout@v6
- name: Run E2E scenario
env:
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
run: bash test/e2e/run-scenario.sh ${{ matrix.id }}
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-${{ matrix.id }}-artifacts
path: |
.e2e/
/tmp/nemoclaw-*.logThe scenario runner resolves profiles, prints the BDD/execution plan, performs setup/install/onboard, emits context, and runs suites in order.
Initial scenario set
Start with a small but representative sparse matrix:
ubuntu-repo-cloud-openclaw:
dimensions:
platform: ubuntu-local
install: repo-current
runtime: docker-running
onboarding: cloud-openclaw
suites:
- smoke
- inference
- credentials
- security-policy
- diagnostics
- lifecycle-basic
ubuntu-repo-cloud-hermes:
dimensions:
platform: ubuntu-local
install: repo-current
runtime: docker-running
onboarding: cloud-hermes
suites:
- smoke
- inference
- hermes-specific
- lifecycle-hermes
brev-launchable-cloud-openclaw:
dimensions:
platform: brev-remote
install: launchable-main
runtime: docker-running
onboarding: cloud-openclaw
suites:
- smoke
- inference
- remote-access
- credentials
macos-repo-cloud-openclaw:
dimensions:
platform: macos-local
install: repo-current
runtime: docker-running
onboarding: cloud-openclaw
suites:
- smoke
- inference
- platform-macos
wsl-repo-cloud-openclaw:
dimensions:
platform: wsl-local
install: repo-current
runtime: docker-running
onboarding: cloud-openclaw
suites:
- smoke
- inference
- platform-wsl
gpu-repo-local-ollama-openclaw:
dimensions:
platform: gpu-runner
install: repo-current
runtime: gpu-docker-cdi
onboarding: local-ollama-openclaw
suites:
- smoke
- local-ollama-inference
- ollama-proxy
- double-onboard
ubuntu-no-docker-preflight-negative:
dimensions:
platform: ubuntu-local
install: repo-current
runtime: docker-missing
onboarding: cloud-openclaw
expected_state:
container_runtime:
expected: absent
gateway:
expected: absent
sandbox:
expected: absent
suites:
- preflight-no-dockerLater candidate:
dgx-spark-local-ollama-openclaw:
dimensions:
platform: dgx-spark
install: public-curl-main
runtime: gpu-docker-cdi
onboarding: local-ollama-openclaw
suites:
- smoke
- preflight-gpu
- local-ollama-inference
- platform-dgx-sparkCoverage reporting
Generate a report from scenarios.yaml showing setup coverage and suite coverage.
Example setup matrix:
| Scenario | Platform | Install | Runtime | Onboarding | Provider | Agent | Suites |
|---|---|---|---|---|---|---|---|
| ubuntu-repo-cloud-openclaw | Ubuntu | repo current | Docker running | cloud | NVIDIA | OpenClaw | smoke, inference, credentials |
| macos-repo-cloud-openclaw | macOS | repo current | Docker/Colima | cloud | NVIDIA | OpenClaw | smoke, inference |
| brev-launchable-cloud-openclaw | Brev remote | launchable main | remote Docker | cloud | NVIDIA | OpenClaw | smoke, inference, remote-access |
| gpu-repo-local-ollama-openclaw | GPU runner | repo current | Docker + CDI | local Ollama | Ollama | OpenClaw | smoke, local inference, proxy |
| ubuntu-repo-cloud-hermes | Ubuntu | repo current | Docker running | cloud | NVIDIA | Hermes | smoke, inference, hermes-specific |
Questions this should answer:
- Do we test
public-curlon Ubuntu? - Do we test
launchablewith cloud inference? - Do we test
local-ollamaon DGX Spark? - Do we test
cloud + Hermeswith lifecycle? - Do we test
Docker missingas a negative preflight scenario? - Do we test
gateway bind 0.0.0.0for remote hosts? - Which NV QA/UAT bug classes lack scenario coverage?
Refactor plan
Phase 1: Add scenario metadata and runner without moving all tests
Add:
test/e2e/scenarios.yaml
test/e2e/suites.yaml
test/e2e/run-scenario.sh
test/e2e/run-suites.sh
test/e2e/lib/context.sh
test/e2e/lib/assertions.sh
Existing scripts can remain in place initially. Initial suites can wrap existing scripts or extracted sub-steps.
Acceptance criteria:
- At least one scenario runs through dimensions → setup/install/onboard → expected context → suite sequence.
- The scenario emits
.e2e/context.env. - The runner prints the resolved scenario and execution plan.
- Existing nightly jobs continue to work.
Phase 2: Extract setup, install, and onboarding helpers
Extract duplication from scripts such as:
test/e2e/test-full-e2e.shtest/e2e/test-cloud-onboard-e2e.shtest/e2e/test-cloud-inference-e2e.shtest/e2e/test-hermes-e2e.shtest/e2e/test-gpu-e2e.shtest/e2e/test-launchable-smoke.sh
Acceptance criteria:
- Platform setup, installation method, onboarding path, gateway health, artifact collection, and cleanup are separated.
- Scenario-specific scripts become thinner and more declarative.
Phase 3: Introduce sparse matrix workflow
Add or refactor a workflow such as:
.github/workflows/e2e-scenarios.yaml
Acceptance criteria:
- Workflow can run one named scenario or all enabled scenarios.
- Matrix entries map clearly to scenario IDs.
- Artifacts are named by scenario.
Phase 4: Convert existing E2E jobs into reusable suites
Gradually split current monolithic scripts into suites.
Acceptance criteria:
- Core suites exist for smoke, inference, credentials, security-policy, diagnostics, lifecycle, recovery, local-Ollama, and platform-specific validation.
- Existing coverage is preserved or improved.
- Suite ordering is explicit.
Phase 5: Coverage reporting and gap analysis
Generate scenario/suite coverage summaries from metadata.
Acceptance criteria:
- We can see which setup paths are covered.
- We can see which functional areas run over each completed setup.
- Missing coverage for NV QA/UAT bug clusters is visible.
Open questions
- Should
scenarios.yamlbe the source of truth for workflow generation, or should workflows remain hand-authored initially? - Which scenarios should be required nightly vs manual-only vs PR-gated?
- Which suites are safe for PR-gating and which require secrets/live services?
- How should remote execution, e.g. Brev, return
.e2e/context.envand artifacts? - Should destructive lifecycle tests always run last, or should they run as separate scenario variants?
- How much of the existing
nightly-e2e.yamlshould be preserved during migration versus replaced by the scenario runner? - How strict should suite requirement validation be: fail fast vs skip incompatible suites?
Definition of done
- E2E scenarios are organized around explicit setup completion paths.
- Scenario dimensions cover platform/execution target, installation method, runtime prerequisites, onboarding path, and onboarding choices.
- Each scenario declares expected final environment state.
- Setup/onboarding are performed once per scenario before functional suites run.
- Functional suites are reusable across scenarios where expected state matches requirements.
- Suite execution order is explicit and logical.
- Scenario setup choices, expected state, and suite sequence are visible in metadata and CI logs.
- Scenario metadata makes setup coverage and gaps visible.
- Existing important coverage from current nightly E2E is preserved.
- Adding a new platform/install/onboarding path no longer requires copying an entire monolithic E2E script.
Activity
feat(e2e): model expected-failure scenarios explicitly (#3608) (#3661)
jyaunches commentedon Jul 10, 2026
Closing as superseded cleanup: this early E2E scenario-model epic was overtaken by the later Vitest E2E migration and cutover work, including #5098 and its terminal cutover tracker. The current E2E system no longer uses this draft as the active planning source.