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

shorten the directory name for vagrant_root #323

Merged
merged 1 commit into from
Aug 22, 2017

Conversation

robbkidd
Copy link
Contributor

This omits "kitchen-#{something}" from the vagrant root directories that will appear under .kitchen/kitchen-vagrant.

Windows users will run into a path length limit of 260 characters. We have been repeating in the directory structure "kitchen-" and the basename of kitchen-root--the directory that contains the .kitchen.yml which most of the time works out to be the name of the cookbook being tested. This made for meaningful if verbose names for virtual machines so as to correlate a machine running in a Vagrant-supported hypervisor to a test-kitchen config.

The inclusion of this string was not for any unique identifier to avoid naming collusions within the hypervisor. This change should be safe for an upgrade for kitchens that have running instances prior to upgrade. The state file for a machine that was successfully created will have recorded the vagrant_root path used at creation time. This will allow kitchen commands to continue to operate on the running instances.

Fixes #210

This omits "kitchen-#{something}" from the vagrant root directories that
will appear under .kitchen/kitchen-vagrant. 

Windows users will run into a path length limit of 260 characters.[1]
We have been repeating in the directory structure "kitchen-" and the
basename of kitchen-root--the directory that contains the .kitchen.yml
which most of the time works out to be the name of the cookbook being
tested. This made for meaningful if verbose names for virtual machines
so as to correlate a machine running in a Vagrant-supported hypervisor
to a test-kitchen config.

The inclusion of this string was _not_ for any unique identifier to
avoid naming collusions within the hypervisor. This change should be
safe for an upgrade for kitchens that have running instances prior to
upgrade. The state file for a machine that was successfully created will
have recorded the vagrant_root path used at creation time. This will
allow kitchen commands to continue to operate on the running instances.

[1] #210

Signed-off-by: Robb Kidd <[email protected]>
@robbkidd robbkidd force-pushed the robb/a-shorter-vagrant-root branch from a9e354a to 1f58fce Compare August 22, 2017 21:47
@robbkidd
Copy link
Contributor Author

Cleanly rebased to master.

@robbkidd robbkidd merged commit 7a5d49b into master Aug 22, 2017
@robbkidd robbkidd deleted the robb/a-shorter-vagrant-root branch August 22, 2017 21:58
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