-
Notifications
You must be signed in to change notification settings - Fork 57
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
Community package requirements: sanity tests #347
Comments
I believe that even today, Ansible requires Python 2.x support (even though that version has been EOL since 1 January 2020). On the other hand, this collection doesn't. I can't imagine a scenario where an Ansible controller cannot support Python 3 (presumably most folks use this Collection either on their laptops or in CI/CD where there's Python 3). I can't reproduce this locally on Python 3.10.13: ❯ python3 -V
Python 3.10.13
❯ ansible-test --version
ansible-test version 2.16.2
❯ ansible-test sanity --test validate-modules --python 3.10
Running sanity test "validate-modules" |
If this is only reproducible on Python 2.x ... I'm personally not going to waste effort getting it to work. With that in mind, how do you want to proceed with this issue? |
Yes, we do not require collections to support Python 2.x anymore. See https://docs.ansible.com/ansible-core/2.16/dev_guide/testing/sanity/compile.html for how to configure the minimum Python version ansible-test uses. Other than that, please make sure that you're running |
|
I don't see anything on that page pertaining to the mechanism to "configure the minimum Python version". |
Currently, this collection has this. |
Ah, I see ... Python 2.7 still supported on targets. |
If there's something else that needs to be done, please reopen with additional information. To close the loops, here's last week's |
See
at the bottom of the test's page in the documentation. You add a tests/config.yml file that sets a |
Ah, thank you. |
I'm going to re-open to work on this. |
@gotmax23 thoughts on the PR? |
(Note: This issue was filed in a semi-automated fashion. Let me know if you see errors in this issue.)
As per the Ansible community package inclusion requirements, collections must pass
ansible-test sanity
tests. Version1.24.0
ofcommunity.digitalocean
, corresponding to the1.24.0
tag in this repo, fails one or more of the required sanity tests.Please see the errors below and address them. If these issues aren't addressed within a reasonable time period, the collection may be subject to removal from Ansible.
Thank you for your efforts and for being part of the Ansible package! We appreciate it.
Sanity tests
The following tests were run using
ansible-test
version2.16.1
:Note that this is only a subset of the required sanity tests. Please make sure you run them in all in your CI.
Results
The test
ansible-test sanity --test compile --python 2.7
[explain] failed with 2 errors:The test
ansible-test sanity --test validate-modules
[explain] failed with 4 errors:The text was updated successfully, but these errors were encountered: