Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 11, 2025

This PR implements support for the tart provider in kitchen-vagrant by consolidating the VM name setting logic, addressing the review feedback from PR #503.

Changes Made

  • Consolidated case blocks: Merged two separate case config[:provider] blocks into a single one for setting p.name in templates/Vagrantfile.erb, improving code maintainability
  • Tart provider support: Added tart provider with VM naming that excludes the UUID suffix (format: kitchen-<root>-<instance> instead of kitchen-<root>-<instance>-<uuid>)
  • Test coverage: Added test case in spec/kitchen/driver/vagrant_spec.rb for the tart provider VM naming behavior
  • .gitignore update: Added vendor directory to prevent bundler dependencies from being committed to the repository

Background

The tart provider (https://github.com/letiemble/vagrant-tart) for Vagrant enables Test Kitchen to work with tart VMs (https://github.com/cirruslabs/tart). This PR follows the review feedback suggesting to consolidate duplicate case statements rather than having separate blocks for VM name configuration.

Testing

  • ✅ All 225 tests pass, including new tart provider test
  • ✅ Verified tart provider VM name is set correctly without UUID
  • ✅ Verified virtualbox provider behavior remains unchanged

The changes are minimal and focused, following existing code patterns in the repository.

Original prompt

Read this pull request: #503

rework the logic.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@damacus
Copy link
Contributor

damacus commented Nov 11, 2025

@copilot git ignore the vendor directory and try again!

…ignore

- Rework Vagrantfile.erb to consolidate two separate case blocks into one for setting p.name
- Add support for tart provider VM naming (without UUID suffix)
- Add test coverage for tart provider
- Add vendor directory to .gitignore to prevent bundler dependencies from being committed

Co-authored-by: damacus <40786+damacus@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot git ignore the vendor directory and try again!

Added vendor to .gitignore in commit 2fbf774.

Copilot AI changed the title [WIP] Rework logic for improved functionality feat(tart provider): Consolidate VM name logic and add vendor to .gitignore Nov 11, 2025
@damacus damacus marked this pull request as ready for review November 30, 2025 07:45
@damacus damacus enabled auto-merge (squash) November 30, 2025 07:45
@damacus damacus disabled auto-merge November 30, 2025 07:45
@damacus damacus enabled auto-merge (squash) November 30, 2025 07:45
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.

3 participants