refactor(onboard): derive session step mapping from FSM metadata - #4363
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>
|
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 (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe PR refactors the onboarding session step-to-machine-state mapping from hardcoded values to being derived from ChangesSession step-to-state mapping refactor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 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: Auto-dispatched E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
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, 0 worth checking, 0 nice ideas This is an automated advisory review. A human maintainer must make the final merge decision. |
…p-mapping # Conflicts: # src/lib/onboard/machine/definition.test.ts # src/lib/onboard/machine/definition.ts
Selective E2E Results — ✅ All requested jobs passedRun: 26657441957
|
Selective E2E Results — ✅ All requested jobs passedRun: 26662414810
|
Summary
Derive the onboard session-step-to-machine-state mapping from the canonical FSM metadata. This removes another hand-maintained copy of the state vocabulary while keeping the exported mapping and runtime behavior unchanged.
Changes
src/lib/onboard/machine/events.tsto buildONBOARD_SESSION_STEP_TO_MACHINE_STATEfrom state definitions.OnboardSessionStepNametype from the derived mapping.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
Tests
Refactor