ci: Comply with Ansible partner certification checking [citest_skip]#123
Merged
ci: Comply with Ansible partner certification checking [citest_skip]#123
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 GuideUpdates CI workflows to align with Ansible partner certification expectations by running ansible-lint and ansible-test via tox-lsr across multiple Ansible/Python versions, and bumps tox-lsr to 3.18.0 everywhere. Flow diagram for updated ansible-lint GitHub Actions jobflowchart TD
A["Event_received\nPR_or_push"] --> B{"Title_or_commit_contains_[citest_skip]?"}
B -- "yes" --> C["Skip_ansible-lint_job"]
B -- "no" --> D["Start_ansible-lint_job_on_ubuntu-latest"]
D --> E["Define_matrix_versions\n(24.x/2.16.x/3.12, 26.x/2.20.x/3.13)\nfail-fast=false"]
E --> F["Update_pip_and_git"]
F --> G["Install_tox_and_tox-lsr_3.18.0"]
G --> H["Set_up_Python_with_actions_setup-python_v6\npython-version=matrix.python"]
H --> I["Run_tox_with_envs\ncollection, ansible-lint-collection\nLSR_ANSIBLE_LINT_DEP=ansible-lint==matrix.ansible_lint\nLSR_ANSIBLE_LINT_ANSIBLE_DEP=ansible-core==matrix.ansible"]
I --> J["ansible-lint_runs_on_collection_via_tox"]
J --> K["Job_complete_per_matrix_entry"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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 ansible-lint and ansible-test checks with Ansible partner certification requirements and broaden version coverage via tox-lsr.
CI: