Skip to content
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

ci: Use supported ansible-lint action; run ansible-lint against the collection #272

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

richm
Copy link
Collaborator

@richm richm commented Jan 8, 2024

The old ansible-community ansible-lint is deprecated. There is a
new ansible-lint github action.

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.

This also requires tox-lsr 3.2.1

Role developers can run this locally using
tox -e collection,ansible-lint-collection
See linux-system-roles/tox-lsr#125

Fix ansible-lint and ansible-test issues reported by the
latest 2.16 versions.

Signed-off-by: Rich Megginson rmeggins@redhat.com

…ollection

The old ansible-community ansible-lint is deprecated.  There is a
new ansible-lint github action.

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.

This also requires tox-lsr 3.2.1

Role developers can run this locally using
`tox -e collection,ansible-lint-collection`
See linux-system-roles/tox-lsr#125

Fix ansible-lint and ansible-test issues reported by the
latest 2.16 versions.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Copy link
Collaborator

@Jakuje Jakuje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
The only issue is in the fedora run, which is caused by different formatting of the manual pages in recent fedora. The fix is already in
https://github.com/willshersystems/ansible-sshd/pull/267/files#diff-be5ce908d6eff907335bb9002a9219ea9c6f57937a36a0bbe7c9448719a258d5
but I can pull it into separate PR if that one is not yet ready.
The debian is likely failing because of missing requirements installation from tests/requirements.yml. I can probably do it in separate PR too.

@richm richm merged commit 32b892c into willshersystems:main Jan 8, 2024
14 of 16 checks passed
@richm richm deleted the ansible-lint-test-2.16 branch January 8, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants