Closed arielsalvo closed 8 years ago
Hi, I second preserving the suite-platform original name instead of trying to reduce it to the platform name only. This causes issues with concurrency, especially in CI environments where running multiple tests grouped by platform is impossible with the current machine_name.
Best, Atha
@athak @arielsalvo
The idea is to use to remove the suite name by default to avoid creating multi entries in your inventory file this will happen if you use mutli suites entry.
How about creating a machine_name in the .kitchen.yml ? if defined will be used instead of the default behaviour.
I don't think that would work since it would have to be specified for each combination. How about a use_machine_name flag that preserves the original name when set to to true and is false by default?
That sounds good. Are you able to make a PR for that ? if not, I am currently busy would not be able to do something about it before two weeks.
Will do. Can you check why the 0.3.10 release is missing from the repo? It is on rubygems.org but not here.
@athak my mistake can you please jump to 0.3.11
Done, please see https://github.com/ahelal/kitchen-ansiblepush/pull/17
@athak released 0.3.11 thank you for your efforts.
@ahelal you're most welcome. Thank you for developing this in the first place!
Hi!
What's the reason behind dropping the first part of the instance name when generating the machine name?
I have an issue with the incomplete machine name when I try to use the inventory (it just ignores the test suite) Plus: the way of dropping the first part fails if the suite itself has a dash in it.
Check out the generated inventory below:
Any reason for not using the complete instance name? I think just removing
.split("-").drop(1).join("-")
would be enough.What do you think?
Regards! --Ariel