Skip to content

Conversation

@cgwalters
Copy link
Collaborator

Add a new --ssh-wait flag to bcvk libvirt run that waits for SSH to become available without entering an interactive shell. This is designed for use in test suites that need to verify a VM is fully booted and SSH-ready before proceeding with additional operations.

The --ssh flag behavior now also starts using this code, as does some of the integration tests.

Assisted-by: Claude Code (Sonnet 4.5)

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 introduces a --ssh-wait flag to libvirt run for testing purposes, which waits for SSH to be ready without starting an interactive shell. The implementation refactors the SSH waiting logic into a generic wait_for_readiness utility, which is a great improvement for code reuse.

My review focuses on improving the CLI experience, maintainability, and ensuring the new functionality is properly tested. I've identified a critical missing test implementation for the new flag and suggested several medium-severity improvements, including making conflicting CLI flags explicit, improving logging behavior, and increasing code consistency.

Add a new `--ssh-wait` flag to `bcvk libvirt run` that waits for SSH
to become available without entering an interactive shell. This is
designed for use in test suites that need to verify a VM is fully
booted and SSH-ready before proceeding with additional operations.

The `--ssh` flag behavior now also starts using this code,
as does some of the integration tests.

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the libvirt-run-ssh-wait branch from 8608d6d to 21ff95b Compare November 5, 2025 23:27
@cgwalters cgwalters enabled auto-merge (rebase) November 6, 2025 14:34
@cgwalters cgwalters merged commit b5c86ee into bootc-dev:main Nov 6, 2025
4 of 5 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