refactor(onboard): extract provider selection failure reporting#5176
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>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
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 (3)
📝 WalkthroughWalkthroughThe PR extracts provider-selection failure reporting into a dedicated utility function with a typed input interface. The ChangesProvider Selection Failure Reporting
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
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 |
PR Review AdvisorFindings: 0 needs attention, 0 worth checking, 0 nice ideas Consider writing more tests for
This is an automated advisory review. A human maintainer must make the final merge decision. |
E2E Advisor RecommendationRequired E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
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
|
|
Validation update for this onboard slimming stack slice:
Leaving this as draft while the lower stack settles: #5165 ready, #5171 draft, #5173 draft, #5175 draft, #5176 draft. |
Selective E2E Results — ✅ All requested jobs passedRun: 27306608753
|
…nu-merge-update # Conflicts: # test/e2e/test-onboard-inference-smoke.sh
…' into codex/tmp-provider-host-state-merge-update
…e-flow' into codex/tmp-provider-selection-merge-update
…-flow' into codex/tmp-provider-prompt-merge-update
…ow' into codex/tmp-provider-failure-reporting-merge-update
# Conflicts: # src/lib/onboard.ts # src/lib/onboard/provider-host-state.test.ts # src/lib/onboard/provider-host-state.ts
Summary
Extract the non-interactive provider-selection failure reporting from
setupNiminto a focused helper. This keeps the selection exit point insetupNimwhile giving the existing failure messages and Windows-host rejection delegation direct tests.Related Issue
Part of #3802.
Changes
reportProviderSelectionFailurefor provider recovery/request failure messages.setupNimfailure switch with the new helper.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