-
Notifications
You must be signed in to change notification settings - Fork 14
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
sanity tests without --python specified? #213
Comments
I think you are probably right here for 100% coverage, but I think we would need a way to enable/disable it. So much of the recent content has been written as action plugins (control node execution) or require delegation to localhost, managed node exectuion is really limited to linux/windows where I would "hope" not many people are still using python2 as it's pretty far behind us in the rear view mirror. There is a little bit of a grey area here when comparing the guidelines between the guidelines for ansible package inclusion and pushing content to automation hub for RH customers as "certified" or "validated". Platform users will be using execution environments for control node execution and have more control over the controller python version. Many collections have dropped python2 as well because the python packages they depend on have dropped it, and it's impossible to support a collection on py2 using a 3rd party library that doesn't. If you need/want it a PR would be great. For the collections maintained by the teams I work with, I don't think we have a need for it. |
For now I solved it by simple overwriting the command in my
I can live with that as well :) |
Hi,
I'm thinking about if it would make more sense to not set the Python version (
--python
) for theansible-test sanity
command as this is leading to the fact that the import and compile check for modules is only running for the given Python version, thus basically only for the supported controller Python version but not for the supported remote machine Python versions.Here the out put with normal tox-ansible behavior for one of my collections:
Looking good, everything green.
But know the same simple by not setting the Python version in the ansible-test command (by removing the
--python 3.9
):And now it shows me that I have a problem with one of my modules when they will executed on Python 2
The text was updated successfully, but these errors were encountered: