Skip to content
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

vioser: Supplement the correct function #4212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

6-dehan
Copy link
Contributor

@6-dehan 6-dehan commented Nov 21, 2024

Avoid case calling case, so add corresponding functions

ID: 2995
Signed-off-by: Dehan Meng [email protected]

@6-dehan 6-dehan force-pushed the KVMAUTOMA-2995-vioser-nonetype branch from f2a458c to 6802507 Compare November 21, 2024 08:52
Avoid case calling case, so add corresponding functions

Signed-off-by: Dehan Meng <[email protected]>
@6-dehan 6-dehan force-pushed the KVMAUTOMA-2995-vioser-nonetype branch from 6802507 to f7c6c69 Compare November 21, 2024 09:04
@6-dehan
Copy link
Contributor Author

6-dehan commented Nov 21, 2024

@leidwang Could you please help to review?
(01/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads.q35: STARTED
(01/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads.q35: PASS (2229.46 s)
(02/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.vioser_in_use.with_stop_continue.guest_to_host.q35: STARTED
(02/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.vioser_in_use.with_stop_continue.guest_to_host.q35: PASS (369.61 s)
(03/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.vioser_in_use.with_stop_continue.host_to_guest.q35: STARTED
(03/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.vioser_in_use.with_stop_continue.host_to_guest.q35: PASS (224.86 s)
(04/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.q35: STARTED
(04/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.q35: PASS (199.18 s)
(05/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_reboot.q35: STARTED
(05/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_reboot.q35: PASS (416.58 s)
(06/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_system_reset.q35: STARTED
(06/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_system_reset.q35: PASS (332.19 s)
(07/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_shutdown_after_unplug.q35: STARTED
(07/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_shutdown_after_unplug.q35: PASS (162.31 s)
(08/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_shutdown_after_plug.q35: STARTED
(08/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_shutdown_after_plug.q35: PASS (160.43 s)
(09/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_live_migration_after_unplug.q35: STARTED
(09/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_live_migration_after_unplug.q35: PASS (261.47 s)
(10/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.repeat_pci_in_loop.q35: STARTED
(10/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.repeat_pci_in_loop.q35: PASS (1999.89 s)
(11/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.without_chardev.q35: STARTED
(11/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.without_chardev.q35: PASS (151.02 s)
(12/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_console_negative.q35: STARTED
(12/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_console_negative.q35: PASS (150.33 s)
(13/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.max_chardevs.q35: STARTED
(13/13) Host_RHEL.m9.u6.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2025.x86_64.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.max_chardevs.q35: PASS (614.43 s)

qemu/tests/vioser_in_use.py Show resolved Hide resolved
@6-dehan
Copy link
Contributor Author

6-dehan commented Nov 28, 2024

@vivianQizhu please help to review and merge this patch. thanks

Copy link
Contributor

@fbq815 fbq815 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM:
RHEL.9.6.0.s390x.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_live_migration_after_unplug.s390-virtio: PASS (85.23 s)
RHEL.10.0.s390x.io-github-autotest-qemu.virtio_port_hotplug.hotplug_port_pci.with_live_migration_after_unplug.s390-virtio: PASS (63.77 s)

BTW, please involve me for reviewing in the future, thanks

@6-dehan
Copy link
Contributor Author

6-dehan commented Dec 5, 2024

BTW, please involve me for reviewing in the future, thanks

which feature are you responsible for now? leave me a list so that I could know when I should involve u.

qemu_migration.set_speed(vm, params.get("mig_speed", "1G"))
vm.migrate()


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't see the point why we need to implement them again here. Why not from vioser_in_use import live_migration_guest?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what message I got from the maintainer is better to avoid calling case by case.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@6-dehan This is not calling case, just importing independent functions from other module, calling case means you call the run() function in another module. Please help at the maintainer here, we could discuss on it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

globals().get(interrupt_test)(test, params, vm, session) Here is the "calling case by case", if you want to avoid it, this is what you should re-work on. Currently modification of moving those independent functions does not resolve anything.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though, all the functions are steps, e.g. vm.migrate(), vm.reboot(), those are steps instead of a 'case', the test scenario requires this combined steps, I don't see how we can implement it another way.

@leidwang
Copy link
Contributor

leidwang commented Jan 2, 2025

Hi @6-dehan @vivianQizhu Not sure if you are discussing this issue offline, please update the MR status when you have time, as it already pending 2 weeks.Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants