ci: Comply with Ansible partner certification checking [citest_skip]#269
Merged
ci: Comply with Ansible partner certification checking [citest_skip]#269
Conversation
https://github.com/ansible-collections/partner-certification-checker/blob/main/README.md Unfortunately we cannot use the checkers provided by their team because they assume the git repo is in collection format - you cannot convert to collection format first then point the checkers at that collection. Instead, implement our own checkers that do the same (and more) - check with multiple versions of ansible-lint and ansible-test to ensure we cover: * all supported versions of EL * Automation Hub gating * the latest versions of Ansible, including the latest milestone version This requires the latest version of tox-lsr Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewer's GuideUpdate CI workflows to use tox-lsr 3.18.0 and run ansible-lint and ansible-test via tox across multiple Ansible/ansible-lint/Python versions, aligning with Ansible partner certification requirements while removing direct GitHub Action invocations and custom requirement merging logic. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In the ansible-lint workflow matrix, the
ansible_lintvalues use wildcard specs like"24.*"but are installed withansible-lint==…, which will fail; either drop the wildcard or switch to a compatible operator (e.g.~=) or explicit version numbers. - In both the ansible-lint and ansible-test workflows, consider moving the
pip3 install ... tox-lsrstep to afteractions/setup-pythonso tox/tox-lsr are installed into (and run with) the matrix Python version rather than whichever Python happens to be default on the runner.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the ansible-lint workflow matrix, the `ansible_lint` values use wildcard specs like `"24.*"` but are installed with `ansible-lint==…`, which will fail; either drop the wildcard or switch to a compatible operator (e.g. `~=`) or explicit version numbers.
- In both the ansible-lint and ansible-test workflows, consider moving the `pip3 install ... tox-lsr` step to after `actions/setup-python` so tox/tox-lsr are installed into (and run with) the matrix Python version rather than whichever Python happens to be default on the runner.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://github.com/ansible-collections/partner-certification-checker/blob/main/README.md
Unfortunately we cannot use the checkers provided by their team because they assume
the git repo is in collection format - you cannot convert to collection format first
then point the checkers at that collection. Instead, implement our own checkers that
do the same (and more) - check with multiple versions of ansible-lint and ansible-test
to ensure we cover:
This requires the latest version of tox-lsr
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by Sourcery
Update CI workflows to align with Ansible partner certification requirements by running ansible-lint and ansible-test across multiple supported Ansible and Python versions using tox-lsr.
CI: