Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Add Windows test#201

Merged
scholzp merged 7 commits into
cyberus-technology:mainfrom
scholzp:windows_test
Apr 20, 2026
Merged

Add Windows test#201
scholzp merged 7 commits into
cyberus-technology:mainfrom
scholzp:windows_test

Conversation

@scholzp
Copy link
Copy Markdown
Contributor

@scholzp scholzp commented Apr 14, 2026

About

We need some regression test to not accidentally break Windows support. This commit series prepares for and implement the first Windows tests. These are tests that check that Windows Server 2025 can be booted as a CHV guest with and without CPU profiles.

Pipeline: https://gitlab.cyberus-technology.de/cyberus/cloud/libvirt/-/pipelines/212759

Copy link
Copy Markdown
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

very nice PR!

Boy, our libvirt-tests suite is really getting compelx 😁

Left a few remarks.

I think it would make sense if you also open a draft PR in libvirt that runs this in CI - and link that pipeline in your PR description so that reviewers can check what the outcome is

Comment thread test_helper/test_helper/test_helper.py Outdated
Comment thread tests/windows-domain-xml.nix Outdated
Comment thread tests/windows-domain-xml.nix
Comment thread test_helper/test_helper/test_helper.py Outdated
Comment thread tests/libvirt-test.nix
Comment thread tests/default.nix Outdated
Comment thread tests/default.nix Outdated
Comment thread test_helper/test_helper/test_helper.py Outdated
Comment thread tests/testsuite_windows_cpu_profiles.py Outdated
Comment thread README.md Outdated
Comment thread docs/windows_image.md Outdated
Comment thread tests/default.nix
Comment thread tests/libvirt-test.nix
Copy link
Copy Markdown
Member

@phip1611 phip1611 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 for addressing my remarks. Please address the remarks of the others as wel

Copy link
Copy Markdown
Contributor

@amphi amphi left a comment

Choose a reason for hiding this comment

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

Really nice work!

Comment thread tests/windows-domain-xml.nix Outdated
Comment thread tests/testsuite_windows_default.py Outdated
Comment thread test_helper/test_helper/test_helper.py
Comment thread test_helper/test_helper/test_helper.py Outdated
Comment thread tests/testsuite_windows_cpu_profiles.py Outdated
@scholzp scholzp force-pushed the windows_test branch 2 times, most recently from 7eeab8c to d6cfed7 Compare April 16, 2026 14:41
@scholzp scholzp requested a review from amphi April 16, 2026 14:56
@scholzp scholzp force-pushed the windows_test branch 2 times, most recently from a5b4ae1 to e0d3c81 Compare April 17, 2026 06:19
Copy link
Copy Markdown
Contributor

@arctic-alpaca arctic-alpaca left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Copy Markdown
Contributor

@amphi amphi left a comment

Choose a reason for hiding this comment

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

Just left one comment, otherwise it looks good!

Comment thread test_helper/test_helper/test_helper.py
@scholzp scholzp requested a review from amphi April 17, 2026 10:11
Copy link
Copy Markdown
Contributor

@amphi amphi left a comment

Choose a reason for hiding this comment

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

Good job!

@scholzp scholzp enabled auto-merge April 17, 2026 12:18
@scholzp scholzp disabled auto-merge April 17, 2026 12:43
@scholzp scholzp force-pushed the windows_test branch 2 times, most recently from 1343c84 to 1fb6a02 Compare April 20, 2026 12:42
scholzp added 4 commits April 20, 2026 14:53
We collect all Windows specific setup in a dedicated nix derivation. We
do so because we don't want to have Windows specific settings in our
linux test, as we wont use them anyway. Along with this decoupling comes
the advantage that the Windows image will not be included when calling
test targets that don't reference this description.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
Make `initialControllerVMSetup` copy only the system images that we
will need in our test. We do so as some images are quite large and need
considerably time to be copied to the NFS.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
The NFS is stored on the virtual disk of the ControllerVM. We increase
its disk size so it has enough space to also host the Windows image,
which is 20 Gib in size.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
We don't want to copy the Windows image in all test suites. Moreover,
the Windows tests consume a lot of time because of the initial copy
created of the image for each test. We therefore refrain from adding
Windows test to other test suites and encapsulate them in their own
test suite.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
scholzp added 3 commits April 20, 2026 14:53
Similar to other CPU profile tests, these test require special hardware
to run on. Because of this, we move them to their own test suite and do
not merge them with the existing Windows test suite.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
We build the image on our own. Because we there is no script to
automatically generate the image, from which one could obtain
infromation about the image, we describe it as best as we can in the
documentation.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
Along with documenting the Windows test suite we als link the
documentation with of the Windows image used in the test suites.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
@scholzp scholzp added this pull request to the merge queue Apr 20, 2026
Merged via the queue into cyberus-technology:main with commit fa258ad Apr 20, 2026
3 checks passed
@scholzp scholzp deleted the windows_test branch April 20, 2026 15:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants