-
Notifications
You must be signed in to change notification settings - Fork 648
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[cannot-ignore] issues inconsistent with sanity check #3951
Comments
Hello @andy-maier ! This rule is behaving as intended, as it is designed to help limit the number of sanity ignores utilized in certified collections. This check only applies on Automation Hub for that reason. It is contained within the "production" profile, which is specified as the certified and validated collection enforcement profile. The implementation is designed to limit sanity ignores for issues that can be resolved in the majority of cases in certified collections. The rule details are enforced by Ansible Partner Engineering, similar to #3950. Please reach out to us at ansiblepartners@redhat.com with any questions about the details, and we can provide advice on how to resolve some of the underlying causes for these ignores or how to clear the majority of ansible-lint |
@alisonlhart @ssbarnea Since there is no official support for older ansible-core versions (currently below 2.14), we don't need to run the ansible sanity check when we test against these older ansible versions and therefore can delete the corresponding older ignore files, and get rid of most of the ignore issues that way. That leaves the following two ignore issues to be addressed:
On validate-modules:return-syntax-error: In some of our modules, we have a large list of return properties that changes with different versions of the HMC device our collection operates on. We therefore refer to the documentation for that device and use a generic property name
On validate-modules:no-log-needed: We have only one occurrence of this, on the module input parameter named "os_ipl_token" of the zhmc_lpar module. Any suggestions on what to do about these two issues? |
Summary
In our collection, we need to ignore certain issues the ansible sanity check otherwise would fail on. ansible-lint claims for a subset of these ignores that they would not be permitted:
However, the sanity check fails when these ignores are removed from the ignore files.
It seems that ansible-lint has a different idea about these ignores than the ansible sanity check. That makes life difficult for users, particularly since the Ansible AutomationHub runs ansible-lint when uploading a collection (Ansible Galaxy does not).
I have categorized the "sanity[cannot-ignore]" issues reported by ansibe-lint for our ibm.ibm_zhmc collection, and did not find a way to avoid the need for these ignores:
See also zhmcclient/zhmc-ansible-modules#784 where we try to work this problem on our end.
Issue Type
OS / ENVIRONMENT
Environment when reproducing it locally:
STEPS TO REPRODUCE
Steps to reproduce how the AutomationHub runs ansible-lint on the ibm.ibm_zhmc collection:
Just in case of interest, this runs the ansible sanity check:
make sanity
Desired Behavior
ansible-lint should be consistent with the ansible sanity check and thus should not flag ignores accepted by the sanity check.
Actual Behavior
See above.
The text was updated successfully, but these errors were encountered: