test(e2e): add fixture-friendly clients#4966
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThis PR introduces a complete E2E test framework client library with shell command execution abstractions, specialized clients for CLI/gateway/sandbox/provider operations, endpoint validation, file state reading, and a comprehensive test suite validating all client behaviors. ChangesE2E Test Framework Clients
Sequence DiagramsequenceDiagram
participant Test as E2E Test
participant Host as HostCliClient
participant Runner as CommandRunner
participant Shell as Shell/nemoclaw
Test->>Host: nemoclaw(['gateway', 'status'])
Host->>Host: resolve binary path
Host->>Runner: run(trustedShellCommand)
Runner->>Shell: execute nemoclaw gateway status
Shell-->>Runner: ShellProbeResult
Runner-->>Host: ShellProbeResult
Host-->>Test: ShellProbeResult (artifact: gateway-status)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
E2E Scenario Advisor RecommendationRequired scenario E2E: Dispatch required scenario E2E:
Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 2 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Consider writing more tests for
Since last review detailsCurrent findings:
This is an automated advisory review. A human maintainer must make the final merge decision. |
# Conflicts: # test/e2e-scenario/framework-tests/e2e-live-project-config.test.ts # test/e2e-scenario/framework/live-project-gate.ts # vitest.config.ts
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
…04-clients # Conflicts: # test/e2e-scenario/framework/e2e-test.ts
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Summary
Adds fixture-friendly client helpers that let Vitest scenarios talk through named NemoClaw concepts instead of raw shell snippets. Draft stack PR 4/7. cc @jyaunches for review.
Related Issue
Refs #4941.
Changes
test/e2e-scenario/framework/clients/.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit