test(e2e): migrate full e2e journey to Vitest#5493
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
📝 WalkthroughWalkthroughAdds a new live Vitest E2E test file ( ChangesFull E2E Vitest test and CI wiring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Suggested labels
🚥 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 |
PR Review AdvisorFindings: 2 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. |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
Vitest E2E Scenario RecommendationRequired Vitest E2E scenarios: Dispatch required Vitest E2E scenarios:
Full Vitest E2E advisor summaryVitest E2E Scenario AdvisorBase: Required Vitest E2E scenarios
Optional Vitest E2E scenarios
Relevant changed files
|
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in the branch is 96%. Coverage data for the branch is not yet available. Show a code coverage summary of the most covered files.
TypeScript / code-coverage/cliThe overall coverage in the branch is 46%. Coverage data for the branch is not yet available. Show a code coverage summary of the most covered files.
Updated |
Vitest E2E Scenario Results — ❌ Some jobs failedRun: 27629698074
|
Vitest E2E Scenario Results — ❌ Some jobs failedRun: 27630400974
|
Vitest E2E Scenario Results — ❌ Some jobs failedRun: 27630771256
|
Vitest E2E Scenario Results — ✅ All jobs passedRun: 27631598887
|
Vitest E2E Scenario Results — ✅ All jobs passedRun: 27632892525
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/e2e-vitest-scenarios.yaml:
- Around line 1792-1840: The `timeout-minutes: 60` value for the full-e2e-vitest
job is insufficient because the test itself requires up to 50 minutes, and the
job also includes additional setup steps (checkout, dependency installation, CLI
build, and OpenShell installation) that consume additional time. This leaves
inadequate headroom and causes workflow preemption. Increase the
`timeout-minutes` value from 60 to a higher value (such as 90 or 120 minutes) to
provide sufficient buffer for all steps including the test execution.
In `@test/e2e-scenario/live/full-e2e.test.ts`:
- Around line 209-217: The test for the nemoclaw logs command currently only
validates that the combined output (stdout and stderr) is non-empty, but this
allows the test to pass even if the command failed and only stderr contains
error messages. Add an explicit assertion to check that the repoNemoclaw call
succeeded (verify the exit code is 0 or the success status is true) before the
existing expect statement that validates the output length. This ensures the
logs command actually executed successfully, not just that something was written
to stderr.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: fd663c40-eccd-4dd6-8d6d-46f06c46c012
📒 Files selected for processing (2)
.github/workflows/e2e-vitest-scenarios.yamltest/e2e-scenario/live/full-e2e.test.ts
Vitest E2E Scenario Results — ✅ All jobs passedRun: 27636902315
|
…-e2e # Conflicts: # .github/workflows/e2e-vitest-scenarios.yaml
Vitest E2E Scenario Results — ✅ All jobs passedRun: 27638939083
|
Summary
Migrate
test-full-e2e.shinto the live Vitest E2E system. Addstest/e2e-scenario/live/full-e2e.test.tsandfull-e2e-vitestworkflow wiring. The Vitest test runsinstall.sh --non-interactive, verifies installed CLI/OpenShell, list/status, inference configuration, policy, direct hosted inference, sandboxinference.local, logs, and cleanup.Related Issue
Refs #5098
Changes
full-e2e.full-e2e-vitestin.github/workflows/e2e-vitest-scenarios.yaml.test-full-e2e.shwhile leaving legacy shell retirement to Epic: Migrate legacy bash E2E into the Vitest E2E system #5098 Phase 11.Type of Change
Verification
npx prek run --from-ref main --to-ref HEADpassesnpm testpasses (broad runtime changes only)npm run docsbuilds without warnings (doc changes only)Targeted local checks run while preparing these branches:
npx vitest run --project e2e-vitest-support test/e2e-scenario/support-tests/e2e-scenarios-workflow.test.ts --silent=false --reporter=defaultnpm run typecheck:clifor branches adding new TypeScript testsgit diff --checkSelective same-runner dispatch: https://github.com/NVIDIA/NemoClaw/actions/runs/27638939083 — passed after merge-from-main refresh
Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
full-e2e-vitestjob and wired it into pull request result aggregation, including uploadingfull-e2eartifacts for review.