fix(api): support Scout firmware upgrades for assigned hosts - #5569
Conversation
Codex Review SummaryThis 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. |
|
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 (4)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. Summary by CodeRabbit
WalkthroughAssigned hosts with nested host-reprovisioning state now receive Scout firmware upgrade actions. Scout status handling updates the nested state while preserving the assigned-host wrapper. Integration tests cover both flows. ChangesAssigned Host Reprovisioning
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to The change enables Scout firmware upgrades for assigned hosts while preserving the existing state wrapper and adds regression coverage; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
…5569) Fix Scout firmware upgrades for machines in Assigned/HostReprovision/WaitingForScoutUpgrade. I missed the fact that `WaitingForScoutUpgrade` can be nested inside the `Assigned` state so scout won't know about this work currently. This PR fixes it. - [ ] **Add** - New feature or capability - [ ] **Change** - Changes in existing functionality - [x] **Fix** - Bug fixes - [ ] **Remove** - Removed features or deprecated functionality - [ ] **Internal** - Internal changes (refactoring, tests, docs, etc.) - [x] Unit tests added/updated - [ ] Integration tests added/updated - [ ] Manual testing performed - [ ] No testing required (docs, internal refactor, etc.) The API now: - Dispatches firmware upgrade tasks for assigned hosts. - Accepts Scout completion reports while preserving the Assigned state wrapper. - Adds regression tests for both paths. ci-rebuild-base-containers (cherry picked from commit 288755f) Signed-off-by: Jakhongir Rakhmonov <jrakhmonov@nvidia.com>
Fix Scout firmware upgrades for machines in Assigned/HostReprovision/WaitingForScoutUpgrade. I missed the fact that
WaitingForScoutUpgradecan be nested inside theAssignedstate so scout won't know about this work currently. This PR fixes it.Type of Change
Testing
Additional Notes
The API now: