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

vmtests: deduplicating code using LVH library for arm64 support #2333

Merged
merged 2 commits into from
May 31, 2024

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Apr 12, 2024

Deduplicate some codes shared between vmtests and LVH:

  • inject LVH runner.RunConf into vmtests RunConf and reuse existing LVH configuration fields.
  • use LVH runner.BuildQemuArgs along with custom vmtests logic.
  • removes the support for HVF, we would need to put it in LVH to get this again but I don't think this is used nowadays.

This is mainly so that we benefit from the arm64 support as LVH was recently updated to support it.

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 36c8c7d
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/661e2e8c53f71e000936639f
😎 Deploy Preview https://deploy-preview-2333--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mtardy mtardy added the release-note/ci This PR makes changes to the CI. label Apr 15, 2024
@mtardy mtardy force-pushed the pr/mtardy/vmtests-lvh branch 2 times, most recently from f32029d to b42b9b2 Compare April 15, 2024 13:38
@mtardy mtardy changed the title do not merge: deduplicating code, vmtests using LVH library draft: deduplicating code, vmtests using LVH library Apr 15, 2024
@mtardy mtardy force-pushed the pr/mtardy/vmtests-lvh branch 2 times, most recently from 90eb6d0 to 36c8c7d Compare April 16, 2024 07:53
@mtardy mtardy added the arch/arm64 arm64 issues label Apr 16, 2024
@mtardy mtardy force-pushed the pr/mtardy/vmtests-lvh branch 7 times, most recently from a261658 to 4bf7274 Compare April 16, 2024 12:09
@mtardy mtardy changed the title draft: deduplicating code, vmtests using LVH library vmtests: deduplicating code using LVH library for arm64 support Apr 18, 2024
@mtardy mtardy marked this pull request as ready for review April 18, 2024 11:39
@mtardy mtardy requested a review from a team as a code owner April 18, 2024 11:39
@mtardy mtardy requested review from olsajiri and kkourt April 18, 2024 11:39
@mtardy mtardy added the area/ci Related to CI label Apr 18, 2024
@kkourt kkourt added the needs-rebase This PR needs to be rebased because it has merge conflicts. label Apr 25, 2024
@mtardy
Copy link
Member Author

mtardy commented May 16, 2024

I wouldn't mind a review @kkourt so that I can rebase afterward and make sure I don't rebase twice :)

Copy link
Contributor

@kkourt kkourt 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 :)

Deduplicate some codes shared between vmtests and LVH:
- inject LVH runner.RunConf into vmtests RunConf and reuse existing
  LVH configuration fields.
- use LVH runner.BuildQemuArgs along with custom vmtests logic.
- removes the support for HVF, we would need to put it in LVH to get
  this again but I don't think this is used nowadays.

This is mainly so that we benefit from the arm64 support as LVH was
recently updated to support it.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Previously the fetch-data was defaulting to root-images:latest that is
more than a year old now (!) but most importantly, not multi-arch as
this new tag.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy removed the needs-rebase This PR needs to be rebased because it has merge conflicts. label May 30, 2024
@mtardy mtardy merged commit 2174b76 into main May 31, 2024
40 checks passed
@mtardy mtardy deleted the pr/mtardy/vmtests-lvh branch May 31, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch/arm64 arm64 issues area/ci Related to CI release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants