Repository navigation
fix(onboarding): show the native boot pool failure reason (U8-2360) - #2158
Eli Bosley (elibosley) wants to merge 4 commits into
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe change maps recognized native storage command results to specific errors, parses those errors from HTTP 500 response headers, and returns them directly from the onboarding internal boot service. Tests cover the parsing and onboarding error paths. ChangesStorage error reporting
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant emcmd
participant StorageCommandError
participant OnboardingInternalBootService
emcmd->>StorageCommandError: Parse commands and response headers
StorageCommandError-->>emcmd: Return mapped error or undefined
emcmd-->>OnboardingInternalBootService: Throw mapped storage error
OnboardingInternalBootService->>OnboardingInternalBootService: Return failure with error message
Suggested reviewers: Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a2649cb99
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| ): StorageCommandError | undefined { | ||
| const pool = commands.poolName; | ||
| const target = | ||
| typeof pool === 'string' && /^[a-z][a-z0-9_-]{0,39}$/.test(pool) |
There was a problem hiding this comment.
Accept every valid pool-name character
When onboarding uses a valid name containing . or ~ (for example, fast.pool), this allowlist rejects it even though CreateInternalBootPoolInput explicitly permits those characters at onboarding.model.ts:295 and the UI does likewise. Consequently every recognized native failure replaces the actual reviewed pool name with the generic “selected pool”; align this validation with the onboarding pool-name rules while retaining the length bound.
Useful? React with 👍 / 👎.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2158 +/- ##
==========================================
- Coverage 54.32% 54.31% -0.01%
==========================================
Files 1046 1047 +1
Lines 73611 73686 +75
Branches 8883 8907 +24
==========================================
+ Hits 39987 40025 +38
- Misses 33498 33535 +37
Partials 126 126 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This plugin has been deployed to Cloudflare R2 and is available for testing. |
The onboarding wizard already creates its internal boot pool with the native Create Pool and Make Bootable commands. When a checked daemon reply identifies the failure, the existing GraphQL result now gives an action for the reviewed pool. The response for partial boot setup tells the user to check the drives and pending transfer. A typed failure omits the accumulated command transcript from this user message.
Older daemons retain the existing HTTP failure wording. An unknown result or a result associated with a different command also uses that fallback. Nineteen focused client and onboarding tests passed. The Vue onboarding consumer renders the result through its existing error message. Installed browser qualification remains pending.
Refs U8-2360.
Summary by CodeRabbit