-
Notifications
You must be signed in to change notification settings - Fork 180
Cancel the testcase as maximum mode is not supported for ppc! #6670
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
WalkthroughThis pull request modifies the vcpu_misc.py test file to add a guard condition in the update_cpu_xml function. The modification cancels tests when running on PPC hardware with cpu_mode configured as "maximum", since this configuration is not supported on Power architectures. The guard introduces an early test cancellation path that executes before CPU XML creation logic proceeds. Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes
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)
🚧 Files skipped from review as they are similar to previous changes (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)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
libvirt/tests/src/cpu/vcpu_misc.py(1 hunks)
🧰 Additional context used
🪛 Ruff (0.14.5)
libvirt/tests/src/cpu/vcpu_misc.py
96-96: Undefined name platform
(F821)
⏰ 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)
- GitHub Check: Python 3.8
- GitHub Check: Python 3.12
- GitHub Check: Python 3.11
- GitHub Check: Python 3.9
Added a condition to cancel a testcase if machine is ppc64 or ppc64le and cpu_mode is maximum as this mode is not supported for power architecture. Signed-off-by: Anushree-Mathur <[email protected]>
28cf924 to
019bd74
Compare
|
Before applying the patch: After applying the patch: |
|
Here is the command and the output to showcase that this mode is not supported for ppc! |
Added a condition to cancel a testcase if machine is ppc64 or ppc64le and cpu_mode is maximum as this mode is not supported for power architecture.
Signed-off-by: Anushree-Mathur [email protected]
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.