test(onboard): cover rebuild resume snapshot handoff#5111
Conversation
|
Warning Review limit reached
More reviews will be available in 14 minutes and 20 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR Review AdvisorFindings: 0 needs attention, 0 worth checking, 0 nice ideas This is an automated advisory review. A human maintainer must make the final merge decision. |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
Summary
Adds targeted rebuild/resume boundary coverage for the reopened-complete snapshot shape that #4533 called out after #4472. The test drives
rebuildSandbox()through the recreate handoff with destructive work stubbed, then verifiesonboard --resumesees the reopened terminal session shape thatrepairResumeMachineSnapshot()repairs.Related Issue
Refs #3802
Changes
src/lib/actions/sandbox/rebuild-resume-snapshot.test.ts.status: in_progressandresumable: true, and that resume repair maps it back toprovider_selectionfrom the legacy completed step.Type of Change
Verification
Focused verification run locally:
npm run build:clinpx vitest run --project cli src/lib/actions/sandbox/rebuild-resume-snapshot.test.tsnpx vitest run --project cli src/lib/onboard/resume-machine-repair.test.ts src/lib/actions/sandbox/rebuild-resume-snapshot.test.ts src/lib/actions/sandbox/rebuild-gateway-drift.test.ts src/lib/actions/sandbox/rebuild-shields-finally.test.tsnpm run typecheck:clinpm run test-size:checknpm run source-shape:checkgit diff --checkFull
npx prek run --all-files/ hook path was attempted, but this local machine still fails in unrelatedtest/release-latest-tag.test.tsfixture commits because/home/cvillela/.ssh/git-signing-key.pubhas no available private key. This PR does not touch that test.npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com