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

test: add a test that creating VMs until no default name generated and checking #1800

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yunmingyang
Copy link
Contributor

No description provided.

@yunmingyang yunmingyang force-pushed the testCreateVMs branch 3 times, most recently from d7107c2 to 104b3cc Compare September 2, 2024 07:32
Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

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

So this should cover the missing coverage in getVmName, where it returns an empty string:

https://cockpit-logs.us-east-1.linodeobjects.com/pull-1802-7bb47b9b-20240903-181606-fedora-40-devel/Coverage/src/components/create-vm-dialog/createVmDialog.jsx.gcov.html

Is there an alternative to create "fake domains" with libvirt instead of at a maximum creating 26 virtual machines which seems to add ~ 3 minutes to our tests

@@ -304,6 +308,37 @@ class TestMachinesCreate(machineslib.VirtualMachinesCase):
create_and_run=False),
check_env_empty=False)

# Create VMs until no default generated name
for v in string.ascii_uppercase:
Copy link
Member

Choose a reason for hiding this comment

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

This seems very expensive, it seems to add 3 minutes to our total CI runtime.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But these VMs are just defined, not started.

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