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

Change the way we handle VM image in tests #451

Open
lstocchi opened this issue Jan 9, 2025 · 0 comments
Open

Change the way we handle VM image in tests #451

lstocchi opened this issue Jan 9, 2025 · 0 comments
Assignees

Comments

@lstocchi
Copy link
Collaborator

lstocchi commented Jan 9, 2025

This is an idea suggested by @cfergeau to improve how we use VM images during tests on macOS.
> I could change it by deleting the compressed file and keep the original uncompressed file.... and copy/paste it to be used for every new tests run. Would it be ok? Or you have another idea? We would waste some disk space but we would be safe as tests will always run on a clean image and instead of uncompressing we will just copy it (should be faster??)

On macos, you can use unix.Clonefile with the uncompressed disk image, and throw away that cloned file at the end of the test. This should be fast and only use disk space for changed blocks.

Originally posted by @cfergeau in #427 (comment)

@lstocchi lstocchi self-assigned this Jan 9, 2025
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

No branches or pull requests

1 participant