Device failover support - #49
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughAdds ChangesDevice failover correctness
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/config/case.go`:
- Line 1251: Update the ClusterConfig.Action contract documentation to include
device_failover, describing its behavior and prerequisites alongside
agentless_failover, while preserving the existing known-action handling in the
case list.
In `@internal/runner/runner.go`:
- Around line 3520-3525: Update the branch contract comment near the generalized
placement-device failover to state that the baseline already sets owner and
receiver delivery is soft, with passed determined by baselineOK and actionOK
rather than delivery; remove the claim that delivery is asserted HARD or that
the branch uses a reliable direct path versus agentless storage.
- Around line 3009-3021: Update waitDeviceCollecting and its baseline/post-stop
callers to bind collection proof to the failed-over placement device. Resolve
the current owner for that specific device, then inspect only that owner’s
container logs and require the device-specific post-disruption collection
marker; do not accept a generic “Starting event collection of” message from
another device. Preserve the existing timeout and cancellation behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6fd61dff-88e4-417c-9bf5-2f95f1d2f15f
📒 Files selected for processing (2)
internal/config/case.gointernal/runner/runner.go
Deploying pipebench with
|
| Latest commit: |
2b76b3b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8cee576f.pipebench.pages.dev |
| Branch Preview URL: | https://dev-failover-support.pipebench.pages.dev |
Summary by CodeRabbit
cluster.action: device_failoveras a supported value.