-
Couldn't load subscription status.
- Fork 179
virsh_domfsfreeze: relax error message match #6612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Depending on the libvirt version some substrings might be present in the error message or not, such as 'internal error'. Instead of adding another possible pattern, reduce the regex to match to two with that contain the essential message: the command name and the reason. Signed-off-by: Sebastian Mitterle <[email protected]>
|
WalkthroughThe test file virsh_domfsfreeze_domfsthaw.py updates run_agent_command_when_frozen by reducing the set of failure-matching patterns for guest agent command errors, narrowing them to messages beginning with “unable to execute QEMU agent command …”. No other logic or public interfaces were changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant T as Test (run_agent_command_when_frozen)
participant GA as Guest Agent
participant QEMU as QEMU/Monitor
T->>GA: Execute agent command while FS frozen
GA-->>QEMU: Request execution
QEMU-->>GA: Response (success/error)
GA-->>T: Return message
rect rgba(230,240,255,0.5)
note over T: Updated failure matching
T->>T: Check message against\n"unable to execute QEMU agent command ..." patterns
alt Matches pattern
T->>T: Treat as failure
else Does not match
T->>T: Not classified as failure here
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (1)
Comment |
Depending on the libvirt version some substrings might be present in the error message or not, such as 'internal error'.
Instead of adding another possible pattern, reduce the regex to match to two with that contain the essential message: the command name and the reason.
Summary by CodeRabbit