Conversation
|
One more thing. I prefix ansible's logs with the kitchen suite's name. Thats not an upstream issue, its a quick workaround for test-kitchen/test-kitchen#583 . While normally we dont need it since jenkins exports the kitchen logs per suite, we need it in exceptional cases where CI runs die before this happens |
|
@gkranis Adding @BaCaRoZzo as a reviewer instead of myself, as Ruby is totally out of my knowledge scope. |
BaCaRoZzo
left a comment
There was a problem hiding this comment.
Took me a bit, sorry. Had to look up the API online. 😅
Looks good, for what I can tell. Thanks for splitting it into meaningful smaller commits, that helped a lot.
|
|
||
| temp_hash = {} | ||
| temp_hash['ansible_host'] = host | ||
| temp_hash['ansible_ssh_host'] = host |
There was a problem hiding this comment.
From a quick check, this doesn't seem to be used any more.
If this is not used, can't we remove it? Or are you going the most conservative route just in case? 🤔
There was a problem hiding this comment.
@BaCaRoZzo I seem to remember that I removed it and something broke so i left it as is, but im not 100% sure
There was a problem hiding this comment.
EIther that or I thought i might want to keep the plugin's compatibility with older ansible versions
|
Fixed the tests and sent a copy of that PR upstream, maybe we are lucky and we dont have to maintain this |
|
Let's merge. The upstream is archived so we don't care. 😄 |
Fixes the following upstream issues, one commit per issue (i am not opening an upstream PR yet, because I am most probably breaking the tests)
ahelal#69
trivial
ahelal#68
trivial fix however the output is logged at the end instead of streamed, so it could be improved.trivial now streaming outputahelal#70
ansiblepush encodes the inventory data for host and groups in yaml files (stores them in a static directory, same for all suites), then invokes ansible with a dynamic inventory script that parses them. As explained in the issue using the same dir causes conflicts.
I changed the behavior in that the yaml files are stored in a unique per kitchen suite subdirectory. The dynamic inventory script then reads the ENV var INSTANCE_NAME to know which subdir to read the yaml files from
ahelal#71
trivial, but only possible because we fixed the previous issue