-
-
Notifications
You must be signed in to change notification settings - Fork 73
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: Switch to GitHub for ansible-lint
#325
Conversation
The changes requested are not actual anymore due to ansible-st2 v3.2 released
ansible-lint
ansible-lint
@armab Is there anything left to do here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest ansible-lint CI is failing 🔴 now.
So it depends on your plan and how you'd like to move forward with all the changes.
Do we replace CircleCI -> GH Actions with the same config and pinned ansible-lint and continue the rest in other PR, or do you want to continue the work for every Ansible lint warning here? That might be lots of changes.
🤔 Is there a way to pin ansible-lint, similar to how we pin the supported Ansible version?
Unfortunately, it doesn't look like there's a way to couple Ansible and Ansible Lint ... moreover, the Ansible Lint Action is very spartan as far as configuration goes. I think that'd I'd rather not combine "switching linting from Circle to GitHub" and "fixing all the linting problems" in the same pull request. The fact of the matter is, there are quite a few linting problems right now (uncovered), yet overall, the roles and playbooks are working just fine. That being said, I think it's okay to merge this without fixing everything, too. |
It's failing because the latest
That way we're replacing the ansible-lint that is working for the currently pinned ansible version and has a 🟢 status with a linter that doesn't work with the current ansible version/codebase with a 🔴 status. I can't merge the broken build to the main branch as it'll be a regression for the repository. |
ansible-lint is designed to work separately from the version of Ansible you use to run the playbook. So Ansible should be in one venv, and ansible-lint should be in another. It may be beneficial to hold off on updating ansible-lint. I've been working on a feature for it ( Source of knowledge: I'm also an ansible-lint maintainer thanks to all the refactoring work I've done for that |
I believe some of those are relevant to the outdated syntax, like
Thanks, @cognifloyd! |
Closed in favor of |
Switch to GitHub Workflows for Ansible linting (which performs YAML linting as well). It can't hurt to lint on pull request but linting daily isn't really necessary (since, ideally, linting problems will be fixed before being merged into
master
). The workflow annotations are kind of nice looking.