Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
ec6bb13
fix(e2e): run scenarios instead of plan-only
jyaunches May 14, 2026
d78d614
fix(e2e): use supported onboard flags
jyaunches May 14, 2026
2a4111d
fix(e2e): accept third-party software in scenarios
jyaunches May 14, 2026
c286572
fix(e2e): use openshell sandbox exec in suites
jyaunches May 14, 2026
83fb583
fix(e2e): run inference checks inside sandbox
jyaunches May 14, 2026
e4a8522
fix(e2e): set hermes gateway context port
jyaunches May 14, 2026
3a62a1c
fix(e2e): assert no-docker preflight scenario
jyaunches May 14, 2026
f3cb5f1
fix(e2e): gate macos scenario without docker
jyaunches May 14, 2026
e07cc09
fix(e2e): detect macos scenario platform
jyaunches May 14, 2026
70bab96
fix(e2e): gate wsl scenario outside wsl
jyaunches May 14, 2026
78ae07d
fix(e2e): gate gpu scenario without gpu runner
jyaunches May 14, 2026
ef81ecc
fix(e2e): dispatch brev launchable install
jyaunches May 14, 2026
a4edf42
fix(e2e): gate brev launchable without token
jyaunches May 14, 2026
a494a5f
fix(e2e): align scenarios with legacy runners
jyaunches May 14, 2026
66ad54c
fix(e2e): run wsl scenarios inside ubuntu
jyaunches May 14, 2026
b474923
fix(e2e): simplify wsl workspace copy
jyaunches May 14, 2026
b52d396
fix(e2e): avoid shell-specific build script
jyaunches May 14, 2026
f136b90
fix(e2e): surface scenario build diagnostics
jyaunches May 14, 2026
c2cddfb
fix(e2e): preserve build exit status
jyaunches May 14, 2026
0a306a1
fix(e2e): capture install shim diagnostics
jyaunches May 14, 2026
26faeee
fix(e2e): capture scenario onboard diagnostics
jyaunches May 14, 2026
7b1bfcf
fix(e2e): recreate wsl scenario sandbox
jyaunches May 14, 2026
55d1369
fix(e2e): verify scenario cli path
jyaunches May 14, 2026
9835616
fix(e2e): capture scenario install diagnostics
jyaunches May 14, 2026
72ce5eb
fix(e2e): preserve scenario failure status
jyaunches May 14, 2026
0c1e002
fix(e2e): preserve repo install directory
jyaunches May 14, 2026
db98ae9
fix(e2e): link repo scenario cli directly
jyaunches May 14, 2026
91eae19
fix(e2e): keep errexit enabled in repo install
jyaunches May 14, 2026
4516080
fix(e2e): handle repo build under errexit
jyaunches May 14, 2026
2f8c07b
fix(e2e): force local bin after scenario install
jyaunches May 14, 2026
87186a1
fix(e2e): trace repo scenario install
jyaunches May 14, 2026
3ca30d5
fix(e2e): make path refresh status neutral
jyaunches May 14, 2026
11d38a9
fix(e2e): avoid profile reload in repo install
jyaunches May 14, 2026
2532e4a
fix(e2e): avoid sourcing profile during path refresh
jyaunches May 14, 2026
dc7fbf8
fix(e2e): start docker for wsl scenarios
jyaunches May 14, 2026
d93a908
fix(e2e): align wsl docker handling with legacy
jyaunches May 14, 2026
35d7d6a
fix(e2e): do not require docker in wsl setup
jyaunches May 14, 2026
ef8c6ce
fix(e2e): restore docker for live wsl scenario
jyaunches May 14, 2026
6239901
fix(e2e): preserve proc gpu proof capability
jyaunches May 14, 2026
b0247e5
fix(e2e): preserve seccomp for gpu proc proof
jyaunches May 14, 2026
a1852b5
fix(e2e): use policy-owned proc comm path
jyaunches May 14, 2026
70e0512
fix(e2e): preserve docker proc path security opts
jyaunches May 15, 2026
5d7f78f
fix(e2e): avoid unsupported docker security opts
jyaunches May 15, 2026
2bc2056
fix(e2e): use self proc comm gpu proof
jyaunches May 15, 2026
bb6ff24
fix(e2e): keep proc gpu proof non-blocking
jyaunches May 15, 2026
c485d08
fix(e2e): keep cuda init proof non-blocking
jyaunches May 15, 2026
9117607
fix(e2e): probe gpu gateway inside sandbox
jyaunches May 15, 2026
61ee5b0
fix(e2e): scale back macos scenario target
jyaunches May 15, 2026
83586e6
fix(e2e): avoid mapfile on macos scenario
jyaunches May 15, 2026
f7f6d6f
fix(e2e): defer gpu gateway probe to suites
jyaunches May 15, 2026
dafa218
fix(e2e): align gpu ollama suites with legacy path
jyaunches May 15, 2026
f5dc9bf
fix(e2e): skip host gateway probe for gpu runtime
jyaunches May 15, 2026
0402d2b
fix(e2e): use pulled ollama model in gpu suite
jyaunches May 15, 2026
44179f0
fix(e2e): accept auth proxy rejection as reachable
jyaunches May 15, 2026
d248b07
fix(e2e): keep optional gpu probes budget-neutral
jyaunches May 15, 2026
5e2ee70
fix(e2e): keep onboard entrypoint net neutral
jyaunches May 15, 2026
330e610
fix(e2e): reduce gpu remediation loop
jyaunches May 15, 2026
0dd1e77
merge main into e2e scenario live execution
jyaunches May 15, 2026
1512513
test(e2e): type gpu proof metadata
jyaunches May 15, 2026
91a0db1
test(e2e): expect gpu recreate ptrace cap
jyaunches May 15, 2026
09df800
style(e2e): format ollama proxy status case
jyaunches May 15, 2026
fe2affa
fix(e2e): skip cli path check in dry run
jyaunches May 15, 2026
5e278e0
Merge branch 'main' into fix/e2e-scenarios-live-execution
cv May 15, 2026
6dd8cd8
fix(e2e): address scenario review feedback
jyaunches May 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions .github/workflows/e2e-scenarios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#
# Scenario-based E2E. Runs a single setup scenario by id against the
# matching runner; can also validate resolution / coverage via --plan-only.
# matching runner and uploads runtime artifacts for debugging.
#
# Manual-only (workflow_dispatch) while scenario-based coverage migrates.
# Existing nightly-e2e / macos-e2e / wsl-e2e workflows remain unchanged.
Expand All @@ -16,14 +16,6 @@ on:
description: "Scenario id (e.g. ubuntu-repo-cloud-openclaw)"
required: true
type: string
plan_only:
description: "Resolve and print plan only (no install/onboard/suites)"
required: false
default: "false"
type: choice
options:
- "true"
- "false"
suite_filter:
description: "Comma-separated suite ids to run (optional; defaults to the scenario's full suite list)"
required: false
Expand Down Expand Up @@ -88,12 +80,7 @@ jobs:
echo '## E2E scenario coverage' >> "$GITHUB_STEP_SUMMARY"
cat .e2e/coverage.md >> "$GITHUB_STEP_SUMMARY"

- name: Show resolved plan
run: |
bash test/e2e/runtime/run-scenario.sh "${{ github.event.inputs.scenario }}" --plan-only

- name: Run scenario
if: github.event.inputs.plan_only != 'true'
env:
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
E2E_SUITE_FILTER: ${{ github.event.inputs.suite_filter }}
Expand All @@ -110,3 +97,4 @@ jobs:
test/e2e/logs/
if-no-files-found: warn
retention-days: 14
include-hidden-files: true
5 changes: 3 additions & 2 deletions test/e2e/nemoclaw_scenarios/install/repo-current.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ e2e_install_repo() {
repo_root="$(cd "${_E2E_INST_REPO_DIR}/../../../.." && pwd)"
(
cd "${repo_root}" || exit
npm install
npm link
npm ci --ignore-scripts
npm run build:cli
bash scripts/npm-link-or-shim.sh
)
nemoclaw_refresh_install_env
}
2 changes: 1 addition & 1 deletion test/e2e/nemoclaw_scenarios/onboard/cloud-hermes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ e2e_onboard_cloud_hermes() {
local sandbox_name
sandbox_name="$(e2e_context_get E2E_SANDBOX_NAME)"
: "${sandbox_name:=e2e-cloud-hermes}"
nemoclaw onboard --agent hermes --provider nvidia --sandbox "${sandbox_name}" --yes
NEMOCLAW_SANDBOX_NAME="${sandbox_name}" NEMOCLAW_AGENT=hermes NEMOCLAW_PROVIDER=cloud nemoclaw onboard --non-interactive --yes
}
2 changes: 1 addition & 1 deletion test/e2e/nemoclaw_scenarios/onboard/cloud-openclaw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ e2e_onboard_cloud_openclaw() {
local sandbox_name
sandbox_name="$(e2e_context_get E2E_SANDBOX_NAME)"
: "${sandbox_name:=e2e-cloud-openclaw}"
nemoclaw onboard --agent openclaw --provider nvidia --sandbox "${sandbox_name}" --yes
NEMOCLAW_SANDBOX_NAME="${sandbox_name}" NEMOCLAW_AGENT=openclaw NEMOCLAW_PROVIDER=cloud nemoclaw onboard --non-interactive --yes
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ e2e_onboard_local_ollama_openclaw() {
local sandbox_name
sandbox_name="$(e2e_context_get E2E_SANDBOX_NAME)"
: "${sandbox_name:=e2e-local-ollama-openclaw}"
nemoclaw onboard --agent openclaw --provider ollama --sandbox "${sandbox_name}" --yes
NEMOCLAW_SANDBOX_NAME="${sandbox_name}" NEMOCLAW_AGENT=openclaw NEMOCLAW_PROVIDER=ollama nemoclaw onboard --non-interactive --yes
}
1 change: 1 addition & 0 deletions test/e2e/runtime/lib/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ e2e_env_apply_noninteractive() {
export NEMOCLAW_NON_INTERACTIVE=1
export DEBIAN_FRONTEND=noninteractive
export NEMOCLAW_ACCEPT_THIRD_PARTY_TERMS=1
export NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE=1
export NEMOCLAW_ACCEPT_LICENSES=1
export NEMOCLAW_DISABLE_UPDATE_CHECK=1
# CI is usually already set, but ensure downstream tools see it.
Expand Down
28 changes: 17 additions & 11 deletions test/e2e/runtime/run-scenario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ e2e_sandbox_assert_running

# Expected state validation. The validator reads E2E_PROBE_OVERRIDE_* env
# variables to simulate real probe outputs in dry-run/test contexts.
# In non-dry-run mode the validator currently also relies on those
# overrides; wiring real probes through the validator happens as
# scenarios migrate.
if [[ "${E2E_VALIDATE_EXPECTED_STATE:-0}" == "1" || "${DRY_RUN}" -ne 1 ]]; then
# Live probe wiring lands scenario-by-scenario; by default, live runs move
# straight from setup checks to suites so migrated suite assertions can be
# debugged against the real environment.
if [[ "${E2E_VALIDATE_EXPECTED_STATE:-0}" == "1" || "${DRY_RUN}" -eq 1 ]]; then
validate_args=("${SCENARIO_ID}" --context-dir "${E2E_CONTEXT_DIR}")
if [[ "${DRY_RUN}" -eq 1 ]]; then
# CodeRabbit review item #9: explicitly opt in to seeding probes from
Expand All @@ -209,10 +209,16 @@ if [[ "${DRY_RUN}" -eq 1 ]]; then
exit 0
fi

# CodeRabbit review item #11: do not exit 0 when no suites were executed.
# Full suite execution against a live environment lands in subsequent
# scenarios; calling run-scenario.sh in non-dry-run mode must not masquerade
# as success until that wiring exists for the requested scenario.
echo "run-scenario: full suite execution is not implemented yet for this scenario." >&2
echo "run-scenario: pass --dry-run to exercise the plan+context path, or run the suite runner directly with a live environment." >&2
exit 4
mapfile -t SUITE_IDS < <(node -e "
const p = JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'));
const filter = process.env.E2E_SUITE_FILTER || '';
const selected = filter ? filter.split(',').map((s) => s.trim()).filter(Boolean) : p.suites.map((s) => s.id);
for (const id of selected) console.log(id);
" "${E2E_CONTEXT_DIR}/plan.json")

if [[ "${#SUITE_IDS[@]}" -eq 0 ]]; then
echo "run-scenario: no suites selected for ${SCENARIO_ID}" >&2
exit 4
fi

bash "${SCRIPT_DIR}/run-suites.sh" "${SUITE_IDS[@]}"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
14 changes: 6 additions & 8 deletions test/e2e/scenario-framework-tests/e2e-lib-helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,17 @@ describe("Phase 1.B sandbox-exec helper", () => {

it("sandbox_exec_stdin_should_quote_args_safely_when_piped", () => {
// Verify that $TOKEN is NOT expanded on the host side before being
// delivered to the sandbox. We stub nemoclaw to echo back stdin.
// delivered to the sandbox. We stub openshell to echo back stdin.
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "e2e-sbex-stdin-"));
try {
const bin = path.join(tmp, "bin");
fs.mkdirSync(bin);
// Fake nemoclaw: when called as `nemoclaw shell sb1 -- cat` read
// stdin and print it verbatim so the test can see what the sandbox
// Fake openshell: when called as `openshell sandbox exec --name sb1 -- cat`
// read stdin and print it verbatim so the test can see what the sandbox
// would have received.
fs.writeFileSync(
path.join(bin, "nemoclaw"),
'#!/usr/bin/env bash\ncat\n',
{ mode: 0o755 },
);
fs.writeFileSync(path.join(bin, "openshell"), '#!/usr/bin/env bash\ncat\n', {
mode: 0o755,
});
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
const r = runBash(
`
set -euo pipefail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,24 @@ describe("e2e-scenarios workflow", () => {
const inputs = dispatch?.inputs as AnyRecord | undefined;
expect(inputs).toBeTruthy();
expect(inputs).toHaveProperty("scenario");
expect(inputs).toHaveProperty("plan_only");
expect(inputs).not.toHaveProperty("plan_only");
expect(inputs).toHaveProperty("suite_filter");
});

it("e2e_scenarios_workflow_should_call_run_scenario", () => {
it("e2e_scenarios_workflow_should_call_run_scenario_without_plan_only", () => {
const raw = fs.readFileSync(WORKFLOW_PATH, "utf8");
expect(raw).toMatch(/test\/e2e\/runtime\/run-scenario\.sh/);
expect(raw).not.toMatch(/--plan-only|plan_only/);
});

it("e2e_scenarios_workflow_should_upload_artifacts", () => {
const raw = fs.readFileSync(WORKFLOW_PATH, "utf8");
expect(raw).toMatch(/actions\/upload-artifact/);
// Artifact name should be scenario-scoped.
expect(raw).toMatch(/e2e-scenario-.*\$\{\{\s*(?:inputs|github\.event\.inputs)\.scenario\s*\}\}/);
// Uploads .e2e/ artifacts.
// Uploads .e2e/ artifacts, including hidden artifact paths.
expect(raw).toMatch(/\.e2e\//);
expect(raw).toMatch(/include-hidden-files:\s*true/);
});

it("e2e_scenarios_workflow_should_be_manual_only", () => {
Expand Down
16 changes: 8 additions & 8 deletions test/e2e/validation_suites/sandbox-exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Canonical `nemoclaw shell <sandbox> -- <cmd>` wrapper.
# Canonical `openshell sandbox exec --name <sandbox> -- <cmd>` wrapper.
#
# Absorbs reuse category #10 from the migration spec: 15 legacy scripts
# each reimplement sandbox-scoped exec with subtle drift (quoting, exit-
Expand All @@ -11,7 +11,7 @@
#
# Functions:
# e2e_sandbox_exec <sandbox> -- <cmd> [args...]
# Run <cmd> inside <sandbox> via `nemoclaw shell`. No stdin passed.
# Run <cmd> inside <sandbox> via `openshell sandbox exec`. No stdin passed.
# Exit code propagates from <cmd>. Honors E2E_DRY_RUN.
#
# e2e_sandbox_exec_stdin <sandbox> -- <cmd> [args...]
Expand Down Expand Up @@ -56,11 +56,11 @@ e2e_sandbox_exec() {
echo "[dry-run] sandbox_exec ${_E2E_SBEX_SB_NAME} -- ${_E2E_SBEX_CMD[*]} (skipped)"
return 0
fi
if ! command -v nemoclaw >/dev/null 2>&1; then
echo "e2e_sandbox_exec: nemoclaw CLI not on PATH" >&2
if ! command -v openshell >/dev/null 2>&1; then
echo "e2e_sandbox_exec: openshell CLI not on PATH" >&2
return 127
fi
nemoclaw shell "${_E2E_SBEX_SB_NAME}" -- "${_E2E_SBEX_CMD[@]}"
openshell sandbox exec --name "${_E2E_SBEX_SB_NAME}" -- "${_E2E_SBEX_CMD[@]}"
}

# e2e_sandbox_exec_stdin <sandbox> -- <cmd> [args...]
Expand All @@ -76,9 +76,9 @@ e2e_sandbox_exec_stdin() {
echo "[dry-run] sandbox_exec_stdin ${_E2E_SBEX_SB_NAME} -- ${_E2E_SBEX_CMD[*]} (skipped)"
return 0
fi
if ! command -v nemoclaw >/dev/null 2>&1; then
echo "e2e_sandbox_exec_stdin: nemoclaw CLI not on PATH" >&2
if ! command -v openshell >/dev/null 2>&1; then
echo "e2e_sandbox_exec_stdin: openshell CLI not on PATH" >&2
return 127
fi
nemoclaw shell "${_E2E_SBEX_SB_NAME}" -- "${_E2E_SBEX_CMD[@]}"
openshell sandbox exec --name "${_E2E_SBEX_SB_NAME}" -- "${_E2E_SBEX_CMD[@]}"
}
8 changes: 4 additions & 4 deletions test/e2e/validation_suites/smoke/03-sandbox-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# SPDX-License-Identifier: Apache-2.0
#
# smoke step: sandbox-shell
# Verifies that `nemoclaw shell` can execute a trivial command inside the
# sandbox. Honors E2E_DRY_RUN.
# Verifies that OpenShell can execute a trivial command inside the sandbox.
# Honors E2E_DRY_RUN.

set -euo pipefail

Expand All @@ -19,12 +19,12 @@ echo "smoke:sandbox-shell"
e2e_context_require E2E_SANDBOX_NAME

if e2e_env_is_dry_run; then
echo "[dry-run] would run: nemoclaw shell <sandbox> -- echo ok"
echo "[dry-run] would run: openshell sandbox exec --name <sandbox> -- echo ok"
exit 0
fi

name="$(e2e_context_get E2E_SANDBOX_NAME)"
output="$(nemoclaw shell "${name}" -- echo ok 2>&1)"
output="$(openshell sandbox exec --name "${name}" -- echo ok 2>&1)"
echo "${output}"
if ! echo "${output}" | grep -q '^ok$'; then
echo "smoke:sandbox-shell: did not receive expected 'ok' from sandbox" >&2
Expand Down
Loading