Skip to content

xen: Add test-ring0 tests #304

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

Merged
merged 1 commit into from
Jun 20, 2025
Merged

xen: Add test-ring0 tests #304

merged 1 commit into from
Jun 20, 2025

Conversation

dinhngtu
Copy link
Member

@dinhngtu dinhngtu commented May 7, 2025

Run the test-ring0 tests that are straightforward to run.
The ones that are not (e.g. legacy tests, tests that crash the host or leak resources infinitely) are skipped, but included for completeness.

test_xst_memory_leak requires a custom kernel with CONFIG_DEBUG_KMEMLEAK set.

@dinhngtu dinhngtu force-pushed the dnt-test-ring0 branch 3 times, most recently from 8fcffa8 to b4ce123 Compare May 7, 2025 11:13
@dinhngtu dinhngtu requested a review from ydirson May 7, 2025 11:16
@dinhngtu dinhngtu requested a review from stormi May 7, 2025 11:24
@stormi
Copy link
Member

stormi commented May 14, 2025

LGTM. As this adds a reboot to the xen test, we need to test it in CI conditions to see how it behaves, before merging.

CC @gduperrey

@gduperrey
Copy link
Member

8.2 xen ✅
8.3 xen ✅

Copy link
Contributor

@ydirson ydirson left a comment

Choose a reason for hiding this comment

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

A few cosmetic remarks, otherwise lgtm

@gduperrey
Copy link
Member

2025-06-19:

  • 8.2 xen ✅
  • 8.3 xen ✅

@dinhngtu dinhngtu requested a review from ydirson June 19, 2025 07:51
Comment on lines 19 to 20
def host_with_ring0_tests(host_with_saved_yum_state: Host) \
-> Generator[Host, None, None]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Trailing backslashes are discouraged when possible in PEP8: https://peps.python.org/pep-0008/#maximum-line-length
Adding the newline before the closing parenthesis seems to be quite usual.

Copy link
Member Author

Choose a reason for hiding this comment

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

On the contrary, this style is used just about everywhere in our tests.

Copy link
Contributor

@ydirson ydirson Jun 20, 2025

Choose a reason for hiding this comment

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

Well, we're only at the start of using type hints, and I see just a few occurrences of that pattern. I don't see a reason to select a style that does not conform to pep8 here, and would rather prefer that we adjust those few ones :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Applied formatter.

Copy link
Contributor

Choose a reason for hiding this comment

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

well, the additional newline may not be necessary, but I can live with it :)

@dinhngtu dinhngtu merged commit d12d05f into master Jun 20, 2025
7 checks passed
@dinhngtu dinhngtu deleted the dnt-test-ring0 branch June 20, 2025 08:36
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