Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Inspec-1.51.* fail with --concurrency option in kitchen #167
I just found out a bug and I am not sure if the issue is within kitchen-inspec or inspec itself.
If I remove the --concurrency option the kitchen verify finishes without issue.
Here are the version I tried:
It works with inspec-1.49.2 though.
I could not test it with inspec-2.* because I have the following issue, even though I have inspec-2.0.17 installed. Should I open another issue about that or is it an issue on my end only ?
Let me know if you need any more informations
The first error we would need some more context, namely the .kitchen.yml and the concurrency value passed (ideally the actual command). The latter failure means that whatever kitchen binary you are using can't see kitchen-inspec, this is probably a local environment condition - i.e. ChefDK not installed correctly or something not set correctly in the .kitchen.yml.
I'll check the second error later :)
Hitting on me as well.
Seems that we have a nice race condition here
Its a bit tricky to implement parallel execution. The challenge is not so much in inspec itself, the challenge is that we use RSpec undercover and its creating a global state. I see two doable options:
Essentially, we need to make sure that the execution context is not shared
@gionn has an excellent workaround. Thank you for sharing!