test(e2e): close out onboard resume Vitest migration#5497
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
📝 WalkthroughWalkthroughAdds the Changesonboard-resume CI job and hosted inference test integration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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: 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
|
PR Review AdvisorFindings: 0 needs attention, 4 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. |
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: 27629707720
|
Vitest E2E Scenario Results — ❌ Some jobs failedRun: 27630036900
|
Vitest E2E Scenario Results — ❌ Some jobs failedRun: 27630403237
|
Vitest E2E Scenario Results — ❌ Some jobs failedRun: 27631163389
|
Vitest E2E Scenario Results — ✅ All jobs passedRun: 27631674436
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 1823-1825: The NVIDIA_INFERENCE_API_KEY environment variable is
currently mapped from secrets.NVIDIA_API_KEY, but it should be mapped from the
matching inference-specific secret instead. In the env section where
NVIDIA_INFERENCE_API_KEY is set, change the secret reference from
secrets.NVIDIA_API_KEY to the appropriate inference secret (likely
secrets.NVIDIA_INFERENCE_API_KEY or similar) to ensure the test contract
receives the correct secret and prevent false skips or failures when only the
inference secret is configured.
🪄 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: 71119709-c566-41c6-90af-c7f3314a2d3e
📒 Files selected for processing (2)
.github/workflows/e2e-vitest-scenarios.yamltest/e2e-scenario/live/onboard-resume.test.ts
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/e2e-scenario/live/onboard-resume.test.ts (1)
50-60: ⚡ Quick winAlign
SessionStateCompletestep status type with resumed-path behavior.The interface still hard-codes step status to
"complete", but this test now explicitly accepts"skipped"on resume. Widening the type avoids misleading assumptions in future edits.Suggested patch
interface SessionStateComplete { status: "complete"; provider: string; steps: Record< | "preflight" | "gateway" | "sandbox" | "provider_selection" | "inference" | "openclaw" | "policies" | "agent_setup", - { status: "complete" } + { status: "complete" | "skipped" } >; }🤖 Prompt for 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. In `@test/e2e-scenario/live/onboard-resume.test.ts` around lines 50 - 60, The steps Record in the SessionStateComplete interface hard-codes the status property to only accept "complete", but the test now requires accepting "skipped" status values for resumed paths. Widen the status property type in the steps Record from { status: "complete" } to allow both "complete" and "skipped" status values. This removes the misleading assumption that steps can only be complete and aligns the type definition with the actual resumed-path behavior.
🤖 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.
Nitpick comments:
In `@test/e2e-scenario/live/onboard-resume.test.ts`:
- Around line 50-60: The steps Record in the SessionStateComplete interface
hard-codes the status property to only accept "complete", but the test now
requires accepting "skipped" status values for resumed paths. Widen the status
property type in the steps Record from { status: "complete" } to allow both
"complete" and "skipped" status values. This removes the misleading assumption
that steps can only be complete and aligns the type definition with the actual
resumed-path behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: df247762-0944-4280-8de4-435130d0da03
📒 Files selected for processing (2)
.github/workflows/e2e-vitest-scenarios.yamltest/e2e-scenario/live/onboard-resume.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/e2e-vitest-scenarios.yaml
Vitest E2E Scenario Results — ✅ All jobs passedRun: 27635626736
|
Vitest E2E Scenario Results — ✅ All jobs passedRun: 27636907033
|
Summary
Migrate
test-onboard-resume.shinto the live Vitest E2E system. Wires the existingtest/e2e-scenario/live/onboard-resume.test.tsreplacement intoe2e-vitest-scenarios.yamlasonboard-resume-vitest, closing out the partial migration from PR #5147 with a dispatchable same-runner Vitest path.Related Issue
Refs #5098
Changes
onboard-resume.onboard-resume-vitestin.github/workflows/e2e-vitest-scenarios.yaml.test-onboard-resume.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/27636907033 — passed after hosted-compatible env fix
Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit