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

Added 'make ansible_lint' and fixed some of the ansible-lint issues reported #839

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

andy-maier
Copy link
Member

@andy-maier andy-maier commented Dec 17, 2023

For details, see the commit message.

This PR originally was motivated by issue #784, but it was only possible to resolve some additional ansible-lint issues, not the original ones reported during AutomationHub import.

@andy-maier andy-maier self-assigned this Dec 17, 2023
@andy-maier andy-maier added this to the 1.8.0 milestone Dec 17, 2023
@andy-maier andy-maier linked an issue Dec 17, 2023 that may be closed by this pull request
@andy-maier andy-maier force-pushed the andy/fix-hub-warnings branch 3 times, most recently from 343affe to c81daa9 Compare December 17, 2023 07:11
@coveralls
Copy link

coveralls commented Dec 17, 2023

Coverage Status

coverage: 50.422%. remained the same
when pulling f25a3d5 on andy/fix-hub-warnings
into 8a690ce on master.

@andy-maier andy-maier force-pushed the andy/fix-hub-warnings branch 2 times, most recently from 12ceed7 to 9c388a2 Compare December 17, 2023 09:39
andy-maier added a commit that referenced this pull request Dec 17, 2023
Signed-off-by: Andreas Maier <[email protected]>
andy-maier added a commit that referenced this pull request Dec 17, 2023
Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/fix-hub-warnings branch 2 times, most recently from 9d0a3f6 to 5cd31ca Compare December 17, 2023 10:38
andy-maier added a commit that referenced this pull request Dec 17, 2023
Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/fix-hub-warnings branch from 5cd31ca to 8b10d7d Compare December 17, 2023 11:59
@andy-maier andy-maier changed the title Fixed AutomationHub import warnings where possible; Added 'make lint' Added 'make lint' to invoke ansible-lint and fixed some of the issues reported Dec 17, 2023
@andy-maier andy-maier force-pushed the andy/fix-hub-warnings branch from 8b10d7d to 2c450b9 Compare December 17, 2023 12:03
@andy-maier andy-maier changed the title Added 'make lint' to invoke ansible-lint and fixed some of the issues reported Added 'make ansible_lint' and fixed some of the ansible-lint issues reported Dec 17, 2023
@anilak11
Copy link
Member

image

Even though the Run ansible_lint job is successful, it is showing some errors/warnings, not sure whether this could be some problem or not

@andy-maier
Copy link
Member Author

@anilak11 Since I don't know how to get rid of these warnings, ansible-lint's non-0 exit code is intentionally ignored for now (by using the minus in front of its command line in the Makefile).

…eported

Details:

* Added ansible-lint to the development dependencies. Needed to increase some
  package dependencies for development and also for installation.

* Added a new make target 'ansible_lint' for running ansible-lint, in order
  to get a preview of the AutomationHub import warnings.

* Added 'make ansible_lint' as a new step to the Github Actions test workflow.

* Resolved the issues reported by 'make ansible_lint' where possible. The
  remaining issues are those that are also reported by the Ansible
  AutomationHub import.

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/fix-hub-warnings branch from 2c450b9 to f25a3d5 Compare December 21, 2023 09:06
@andy-maier andy-maier merged commit 530c5ab into master Dec 30, 2023
13 checks passed
@andy-maier andy-maier deleted the andy/fix-hub-warnings branch December 30, 2023 07:37
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.

Warnings on import to AutomationHub
3 participants