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

qemu_guest_agent: adjust change for the version name of mingw-qga #3931

Conversation

6-dehan
Copy link
Contributor

@6-dehan 6-dehan commented Jan 3, 2024

the name of qemu-ga-win has been changed to mingw-qemu-ga-win, so the logic of getting specific version of package should be adjusted as well.

ID: 1229
Signed-off-by: Dehan Meng demeng@redhat.com

@6-dehan 6-dehan marked this pull request as draft January 4, 2024 01:23
@6-dehan 6-dehan force-pushed the for-KVMAUTOMA-1229-getspecific-mingw-qga-win branch from 0d042ac to f9e2420 Compare January 4, 2024 02:03
@6-dehan
Copy link
Contributor Author

6-dehan commented Jan 4, 2024

@leidwang could you please help to review it?
(1/1) Host_RHEL.m9.u4.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.qemu_guest_agent.virtio_serial.check_freeze_frozen.q35: PASS (275.32 s)

@6-dehan 6-dehan marked this pull request as ready for review January 4, 2024 03:48
@6-dehan 6-dehan force-pushed the for-KVMAUTOMA-1229-getspecific-mingw-qga-win branch 2 times, most recently from 0f1442f to 734cc23 Compare February 20, 2024 02:27
@6-dehan 6-dehan force-pushed the for-KVMAUTOMA-1229-getspecific-mingw-qga-win branch 2 times, most recently from 6871c4e to b348585 Compare February 21, 2024 06:38
@6-dehan 6-dehan force-pushed the for-KVMAUTOMA-1229-getspecific-mingw-qga-win branch from b348585 to 5b70d73 Compare February 21, 2024 07:25
Copy link
Contributor

@leidwang leidwang left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @6-dehan

@6-dehan
Copy link
Contributor Author

6-dehan commented Feb 22, 2024

@vivianQizhu Could you please help to review and merge?

@6-dehan 6-dehan force-pushed the for-KVMAUTOMA-1229-getspecific-mingw-qga-win branch from 5b70d73 to ac2fe14 Compare February 22, 2024 07:03
@@ -3933,13 +3933,18 @@ def get_qga_pkg_path(self, qemu_ga_pkg, test, session, params, vm):
if self.gagent_src_type == "url":
gagent_host_path = params["gagent_host_path"]
gagent_download_url = params["gagent_download_url"]
mqgaw_ver = re.search(r'(?:\d+\.){2}\d+', gagent_download_url)
mqgaw_ver_list = list(map(int, mqgaw_ver.group(0).split('.')))
mqgaw_name = "mingw-qemu-ga-win" if mqgaw_ver_list >= [105, 0, 1] else "qemu-ga-win"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please limit each line within 79 characters.
Also I would suggest to define a variants for "mingw-qemu-ga-win" and "qemu-ga-win" in cfg file like qga_bin or qga_bin_legacy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(2/2) Host_RHEL.m9.u4.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2019.x86_64.io-github-autotest-qemu.qemu_guest_agent.virtio_serial.check_freeze_frozen.q35: PASS (183.73 s)

the name of qemu-ga-win has been changed to mingw-qemu-ga-win,
so the logic of getting specific version of package should be
adjusted as well.

Signed-off-by: Dehan Meng <demeng@redhat.com>
@6-dehan 6-dehan force-pushed the for-KVMAUTOMA-1229-getspecific-mingw-qga-win branch from ac2fe14 to 0655fa4 Compare February 26, 2024 01:37
@vivianQizhu vivianQizhu merged commit 17c83fa into autotest:master Feb 27, 2024
6 checks passed
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.

3 participants