Skip to content

test(e2e): split cloud-experimental into checks/features and verify skill usage - #480

Closed
mercl-lau wants to merge 3 commits into
NVIDIA:mainfrom
mercl-lau:add-e2e-cloud-experimental-case
Closed

mercl-lau wants to merge 3 commits into
NVIDIA:mainfrom
mercl-lau:add-e2e-cloud-experimental-case

Conversation

@mercl-lau

@mercl-lau mercl-lau commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary
This PR expands and stabilizes the e2e-cloud-experimental flow by adding skill lifecycle validation (inject + agent-use verification) and reorganizing the suite into clearer sub-areas (env checks, features/skill, skip).
It also hardens the baseline onboard check with stronger CLI coverage to catch environment and runtime regressions earlier.

Changes
Reorganized test/e2e/e2e-cloud-experimental/:
moved stable checks into checks/
moved skill-related scripts/helpers/templates into features/skill/
kept opt-in/flaky checks in skip/
Updated test/e2e/test-e2e-cloud-experimental.sh to:
use checks/.sh as Phase 5 stable checks
keep Phase 5b chat verification
keep/add Phase 5c skill structure/layout validation
add/keep Phase 5d skill injection + agent token verification
keep fixed sandbox name behavior for this scenario
Added/updated skill feature scripts:
features/skill/add-sandbox-skill.sh
features/skill/verify-sandbox-skill-via-agent.sh
features/skill/fixtures/skill-smoke-template.SKILL.md
features/skill/lib/
validators
Expanded checks/01-onboard-completion.sh:
added more command-level assertions (nemoclaw, openshell, sandbox connect/get/list)
validates openclaw --help, openclaw agent --help, and openclaw skills list inside sandbox
improved scenario description/comments
Updated docs/readmes to match new structure and command paths.
Updated .github/workflows/nightly-e2e.yaml to include test-e2e-cloud-experimental.sh as an additional nightly job.
Type of Change

Code change for a new feature, bug fix, or refactor.

Code change with doc updates.

Doc only. Prose changes without code sample modifications.

Doc only. Includes code sample changes.
Testing

make check
passes.

npm test
passes.

make docs
builds without warnings. (for doc-only changes)

Manual E2E run:
test/e2e/test-e2e-cloud-experimental.sh
passed (including Phase 5d token verification).

Script syntax checks via
bash -n
for updated shell scripts.
Checklist
General

I have read and followed the
contributing guide
.

I have read and followed the
style guide
. (for doc-only changes)
Code Changes

make format
applied (TypeScript and Python).

Tests added or updated for new or changed behavior.

No secrets, API keys, or credentials committed.

Doc pages updated for any user-facing behavior changes (new commands, changed defaults, new features, bug fixes that contradict existing docs).
Doc Changes

Follows the
style guide
. Try running the
update-docs
agent skill to draft changes while complying with the style guide. For example, prompt your agent with "
/update-docs
catch up the docs for the new changes I made in this PR."

New pages include SPDX license header and frontmatter, if creating a new page.

Cross-references and links verified.

Summary by CodeRabbit

  • Tests

    • Added comprehensive end-to-end test suite for cloud-experimental mode, including onboarding validation, inference connectivity checks, security verification, and feature parity tests.
    • Added test infrastructure with helper scripts for sandbox skill injection and validation.
  • Documentation

    • Added test suite documentation and execution guides for cloud-experimental functionality.

…ntal flow

Extend e2e-cloud-experimental with Phase 5d to inject a managed skill into the sandbox and verify it is actually applied via an openclaw agent token check. Consolidate skill-related helpers under test/e2e/e2e-cloud-experimental and remove redundant root-level helper scripts.
… checks

Refactor e2e-cloud-experimental into checks/features/skip structure, wire the main flow and nightly workflow to include skill injection + agent token verification, and expand check 01 with stronger CLI coverage (including sandbox connect and openclaw skills list).
@coderabbitai

coderabbitai Bot commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

Added comprehensive end-to-end testing infrastructure for NemoClaw's cloud experimental sandbox. Includes a GitHub Actions workflow job, multi-phase test orchestration script, validation check scripts, helper utilities, Python skill validators, and documentation for testing sandbox onboarding, inference connectivity, security, model parity, network policies, and skill injection via OpenClaw agents.

Changes

Cohort / File(s) Summary
Workflow Integration
.github/workflows/nightly-e2e.yaml
Added new GitHub Actions job cloud-experimental-e2e that runs on ubuntu-latest with 45-minute timeout, executes E2E test script with custom policy mode/presets, and uploads install logs on failure.
Documentation
test/e2e/e2e-cloud-experimental/README.md, test/e2e/e2e-cloud-experimental/skip/README.md, test/e2e/e2e-cloud-experimental/features/skill/lib/README.md
Added README files documenting E2E suite structure, phase ordering, test execution contracts, skipped script location, and helper library responsibilities.
Check Scripts
test/e2e/e2e-cloud-experimental/checks/*
Added four validation scripts: 01-onboard-completion.sh (CLI availability and sandbox lifecycle), 02-inference-local-http.sh (HTTPS reachability from sandbox), 03-security-checks.sh (API key leakage detection), 04-nemoclaw-openshell-status-parity.sh (registry/CLI consistency).
Skill Helper Scripts
test/e2e/e2e-cloud-experimental/features/skill/*
Added add-sandbox-skill.sh (skill injection via SSH), verify-sandbox-skill-via-agent.sh (agent token verification), skill fixture template, and validation libraries for repository and sandbox skill structures.
Validation Utilities
test/e2e/e2e-cloud-experimental/features/skill/lib/validate_repo_skills.py, test/e2e/e2e-cloud-experimental/features/skill/lib/validate_sandbox_openclaw_skills.sh
Added Python script to validate skill YAML frontmatter and body content in repository, and Bash script to verify sandbox OpenClaw layout via SSH.
Network/Policy Tests
test/e2e/e2e-cloud-experimental/skip/05-network-policy.sh
Added network policy validation script that verifies host-side policy configuration, whitelist probes (GitHub/PyPI/npm registries), and blocks configured egress URLs.
Standalone Demo Scripts
test/e2e/e2e-cloud-experimental/test-inference-local-chat.sh, test/e2e/e2e-cloud-experimental/test-port8080-conflict.sh
Added chat completions demo script with SSH-based inference validation and port conflict preflight check script for nemoclaw onboard error handling.
Main E2E Orchestrator
test/e2e/test-e2e-cloud-experimental.sh
Added 459-line test runner script orchestrating six phases: cleanup, prerequisites validation, installation, checks suite execution, live inference/skill validation, and final cleanup with detailed logging and result aggregation.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~50 minutes

Poem

🐰 From warren deep, this tester crept,
With scripts and checks, a careful step,
Through clouds and skills and skills so new,
Verifying inference via SSH too!
Each phase confirmed, each token matched—
NemoClaw's sandbox neatly hatched! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 3.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: splitting the e2e cloud-experimental suite into checks/features directories and adding skill usage verification.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use your project's `biome` configuration to improve the quality of JS/TS/CSS/JSON code reviews.

Add a configuration file to your project to customize how CodeRabbit runs biome.

@mercl-lau mercl-lau closed this Mar 20, 2026
mafueee pushed a commit to mafueee/NemoClaw that referenced this pull request Mar 28, 2026
@wscurran wscurran added the chore Build, CI, dependency, or tooling maintenance label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants