Closed richm closed 11 months ago
Attention: 24 lines
in your changes are missing coverage. Please review.
Comparison is base (
bbdc7f7
) 43.31% compared to head (e034387
) 45.03%.
Files | Patch % | Lines |
---|---|---|
library/network_state.py | 0.00% | 12 Missing :warning: |
module_utils/network_lsr/nm/client.py | 20.00% | 11 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
[citest]
[citest]
[citest]
[citest bad]
[citest]
[citest]
[citest]
[citest bad]
ci: Use supported ansible-lint action; run ansible-lint against the collection
The old ansible-community ansible-lint is deprecated. There is a new ansible-lint github action. The new ansible-lint has several checks related to ansible-test and the ignore files. Many of our ignore settings are not allowed any more and are required to be fixed or addressed in the Ansible preferred way.
The python imports have to be wrapped in a try/except ImportError, and where possible, an error must be returned from the module explaining what was not able to be imported.
The module documentation must comply with the Ansible standards. One aspect of this is the
version_added
must be a valid ansible-core version in X.Y.Z format. Note that this version isn't really used anywhere, so it doesn't matter for users of the role, it is purely anansible-test
and import gating issue.The result of this is that the .sanity files can be reduced to the bare minimum which will greatly reduce the maintenance burden of those files, make it easier to support newer versions of Ansible, and make it easier to import the system roles collection into Galaxy and Automation Hub.
The latest Ansible repo gating tests run ansible-lint against the collection format instead of against individual roles. We have to convert the role to collection format before running ansible-test.
Role developers can run this locally using
tox -e collection,ansible-lint-collection
See https://github.com/linux-system-roles/tox-lsr/pull/125Add
---
doc start to .markdownlint.yamlThe file
examples/down_profile+delete_interface.yml
was not used and was causing ansible-lint errors.ansible-lint enforces the order of keywords in plays -
name
, thenhosts
, thenvars
, thentasks
.