Update the method from system_reset to libvirt_reset for reboot#6823
Update the method from system_reset to libvirt_reset for reboot#6823YongxueHong wants to merge 1 commit intoautotest:masterfrom
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)
WalkthroughTwo test files were updated to change the reboot method used from "system_reset" to "libvirt_reset". In multi_nics_reboot.py the pre-reset sleep condition now checks for Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can use your project's `ruff` configuration to improve the quality of Python code reviews.Add a Ruff configuration file to your project to customize how CodeRabbit runs |
b7fbc14 to
1bee77c
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@libvirt/tests/src/virtual_network/qemu/multi_nics_reboot.py`:
- Around line 44-45: Update the module/class/function docstring that currently
mentions the deprecated "system_reset" monitor command to reflect the new
implementation: state that the reboot is triggered when params["reboot_method"]
== "libvirt_reset", document the "libvirt_reset" option and the
"sleep_before_reset" numeric parameter used before calling
time.sleep(params.get_numeric("sleep_before_reset", 10)), and remove or mark
"system_reset" as deprecated so the docstring matches the actual behavior in the
multi_nics_reboot logic.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0b9deaf2-7c6f-42a1-b0df-9c3e886ccc1d
📒 Files selected for processing (2)
libvirt/tests/src/virtual_network/qemu/multi_nics_reboot.pylibvirt/tests/src/virtual_network/qemu/performance/netperf.py
As it supported the method libvirt_reset for the reboot in the framework, this commit aims to update the related test cases with the libivrt_reset support. Signed-off-by: Yongxue Hong <yhong@redhat.com>
1bee77c to
2b7dfda
Compare
|
Hi @yanglei-rh @dzhengfy @quanwenli |
As it supported the method libvirt_reset for the reboot in the framework, this commit aims to update the related test cases with the libvirt_reset support.
Reference PR: avocado-framework/avocado-vt#4312
ID: LIBVIRTAT-22302
Summary by CodeRabbit