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

converge doesn't exit with proper exit code #318

Closed
Stromweld opened this issue Mar 10, 2024 · 3 comments
Closed

converge doesn't exit with proper exit code #318

Stromweld opened this issue Mar 10, 2024 · 3 comments

Comments

@Stromweld
Copy link
Contributor

Using latest versions of kitchen-dokken and test-kitchen when running a converge if the chef-client fails convergence due to an error kitchen converge exits with 0 exit code indicating a success.

@Stromweld
Copy link
Contributor Author

Stromweld commented Mar 12, 2024

I was able to narrow down the issue this line https://github.com/test-kitchen/kitchen-dokken/blob/main/lib/kitchen/provisioner/dokken.rb#L77

when clean_dokken_sandbox is set to false the return negates the exception and test-kitchen returns 0 for failed convergence. When set to true it returns the correct convergence error.

@damacus
Copy link
Contributor

damacus commented May 4, 2024

@Stromweld do you think #319 fixed this?

@Stromweld
Copy link
Contributor Author

yes it is working now.

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

2 participants