Skip to content

Conversation

@cgwalters
Copy link
Collaborator

Remove the dedicated test_libvirt_run_ssh_full_workflow test and fold kernel argument testing into test_libvirt_run_bind_mounts instead. The separate test was creating a unique base disk just to validate --karg functionality, taking 8-10 minutes in CI.

In a fresh CI environment, each test with different parameters (image, filesystem, or kernel args) triggers a separate base disk creation via bootc install. The removed test used --karg bcvk.test-install-karg=1, which created a unique cache key and prevented sharing with other tests.

By consolidating karg validation into an existing test that already boots a VM and uses SSH, we eliminate one redundant base disk creation while maintaining the same test coverage.

This change reduces the libvirt_verb test suite from 7 to 6 VM-creating tests, with 5 tests now sharing a single base disk (fedora-bootc:42 + ext4 + no kargs) and only the bind_mounts test requiring its own base disk due to the test karg.

Assisted-by: Claude Code (Sonnet 4.5)

Remove the dedicated test_libvirt_run_ssh_full_workflow test and fold
kernel argument testing into test_libvirt_run_bind_mounts instead. The
separate test was creating a unique base disk just to validate --karg
functionality, taking 8-10 minutes in CI.

In a fresh CI environment, each test with different parameters (image,
filesystem, or kernel args) triggers a separate base disk creation via
bootc install. The removed test used --karg bcvk.test-install-karg=1,
which created a unique cache key and prevented sharing with other tests.

By consolidating karg validation into an existing test that already
boots a VM and uses SSH, we eliminate one redundant base disk creation
while maintaining the same test coverage.

This change reduces the libvirt_verb test suite from 7 to 6 VM-creating
tests, with 5 tests now sharing a single base disk (fedora-bootc:42 +
ext4 + no kargs) and only the bind_mounts test requiring its own base
disk due to the test karg.

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <[email protected]>
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively consolidates kernel argument testing to optimize CI performance by reducing redundant base disk creation. The changes are logical and correctly implemented, moving the test logic from a dedicated test into an existing one, which is a great improvement. I have one suggestion to improve maintainability by using a constant for the kernel argument string, which is currently duplicated.

@cgwalters cgwalters enabled auto-merge (rebase) October 28, 2025 00:41
@cgwalters cgwalters merged commit 1d30aa7 into bootc-dev:main Oct 28, 2025
2 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.

2 participants