tp-qemu icon indicating copy to clipboard operation
tp-qemu copied to clipboard

thp_fragment: updates tool to v2 and extracts it to a new location

Open mcasquer opened this issue 11 months ago • 12 comments

thp_fragment: updates tool to v2 and extracts it to a new location

Updates the thp_fragment to the new version where the tool works better in environments with a great amount of memory. Also extracts this tool to the 'root deps' directory as it is going to be used by a new provider script and the tarball will no longer needed, this way the file can be reviewed easily by the maintainers where new changes arrive and the extraction step can be saved.

Signed-off-by: mcasquer [email protected] ID: 2067

mcasquer avatar Mar 15 '24 08:03 mcasquer

@luckyh @yanan-fu @YongxueHong please, could you review this PR? Thanks !

mcasquer avatar Mar 18 '24 10:03 mcasquer

Hi @mcasquer I got your purpose, there is just one concern that it may affect the related test case which is calling the previous path, for example, https://github.com/autotest/tp-qemu/blob/539f0cb578680f344610b18487ba511e2ecd6897/generic/tests/trans_hugepage_defrag.py#L67C8-L67C73

Would you like to run a regression with the new path? Thanks.

YongxueHong avatar Mar 22 '24 07:03 YongxueHong

Hi @mcasquer I got your purpose, there is just one concern that it may affect the related test case which is calling the previous path, for example, https://github.com/autotest/tp-qemu/blob/539f0cb578680f344610b18487ba511e2ecd6897/generic/tests/trans_hugepage_defrag.py#L67C8-L67C73

Would you like to run a regression with the new path? Thanks.

@YongxueHong yeah sorry, I forgot to put on 'ready for review' the rest of the PRs, but this is already handled applying the other patches :grinning:

 (1/2) Host_RHEL.m9.u5.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.x86_64.io-github-autotest-qemu.trans_hugepage.defrag.q35: STARTED
 (1/2) Host_RHEL.m9.u5.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.x86_64.io-github-autotest-qemu.trans_hugepage.defrag.q35: PASS (55.72 s)
 (2/2) Host_RHEL.m9.u5.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.x86_64.io-github-autotest-qemu.trans_hugepage.relocated.q35: STARTED
 (2/2) Host_RHEL.m9.u5.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.x86_64.io-github-autotest-qemu.trans_hugepage.relocated.q35: PASS (725.84 s)
RESULTS    : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

Ps: https://github.com/autotest/tp-qemu/pull/3988, https://github.com/autotest/tp-qemu/pull/3989, https://github.com/autotest/tp-qemu/pull/3979

mcasquer avatar Mar 22 '24 07:03 mcasquer

The provider script be removed with the latest update ?

yanan-fu avatar Mar 22 '24 07:03 yanan-fu

The provider script be removed with the latest update ?

It is being moved to the root deps directory in order to be used by the #3988 script

mcasquer avatar Mar 22 '24 08:03 mcasquer

@YongxueHong could you review again this PR? Thanks!

mcasquer avatar Apr 01 '24 05:04 mcasquer

According to the @PaulYuuu comment in https://github.com/autotest/tp-qemu/pull/3988#discussion_r1546236850 I agree that it's feasible to store directly the C script file

mcasquer avatar Apr 01 '24 14:04 mcasquer

@PaulYuuu @yanan-fu @YongxueHong could you review this PR again? Thanks!

mcasquer avatar Apr 01 '24 15:04 mcasquer

@PaulYuuu @yanan-fu @YongxueHong could you review this PR again? Thanks!

Keep in mind that difference with the last change has been only the file extraction, the C code is the same

mcasquer avatar Apr 01 '24 15:04 mcasquer

It seems when doing the extraction I missed the v2 tool, updating again...

mcasquer avatar Apr 09 '24 09:04 mcasquer

Could this patch be merged? Thanks !

mcasquer avatar Apr 09 '24 10:04 mcasquer

Could this patch be merged? Thanks !

Hi @mcasquer Let's wait for other related patches to be approved since it will result in a regression error if we merge one, not merge them simultaneously. Thanks for understanding.

YongxueHong avatar Apr 10 '24 01:04 YongxueHong