Conversation
Move all status-related code from vm.go to new vm_status.go file for better code organization and maintainability. This is a pure code extraction with no functional changes. Extracted components: - Volume status helper functions and update methods - Guest info, access credentials, and agent condition updates - Migration condition calculation (live and storage) - Paused condition handling - Phase calculation and status update orchestration - Memory, backup, and SELinux status updates - Supporting helper functions and types Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Vladik Romanovsky <vromanso@redhat.com>
Introduce evaluateCommonMigrationConstraints() helper to centralize non-volume migration checks that are common to both live migration and live storage migration. This ensures the constraints stay in sync. Changes: - Add NonMigratableReason struct to hold reason/message pairs - Extract common migration checks into evaluateCommonMigrationConstraints() - Update calculateLiveMigrationCondition() to use the helper - Update calculateLiveStorageMigrationCondition() to use the helper - Simplify multipleNonMigratableCondition to use NonMigratableReason This refactoring improves maintainability by eliminating code duplication between live migration and storage migration condition evaluation. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Vladik Romanovsky <vromanso@redhat.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
|
/analyze-commits |
Commit message analysis requestCRITICAL: You MUST post a comment analyzing the commit messages in this PR. InstructionsPlease analyze all commit messages in this PR for:
Expected Output FormatIMPORTANT: Wrap your entire response in a collapsible section using: Please post a regular PR comment (not an inline review comment) with ONLY the following sections:
Important Notes
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 102283
Commit Message AnalysisFormat IssuesAll commits follow the component prefix pattern ( Alignment IssuesAll commits have excellent alignment between message and code changes:
|
test