ci: Comply with Ansible partner certification checking [citest_skip]#271
Merged
ci: Comply with Ansible partner certification checking [citest_skip]#271
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 GuideAlign CI with Ansible partner certification requirements by running ansible-lint and ansible-test via tox-lsr across multiple Ansible/Python versions, and by updating tox-lsr to 3.18.0 in all relevant workflows. Sequence diagram for updated ansible-lint CI job with tox-lsr matrixsequenceDiagram
actor Developer
participant GitHubActions as GitHub_Actions
participant AnsibleLintWorkflow as ansible_lint_workflow
participant Runner as ubuntu_latest_runner
participant Tox as tox_lsr
participant AnsibleLint as ansible_lint
participant AnsibleCore as ansible_core
Developer->>GitHubActions: push_or_pull_request
GitHubActions->>AnsibleLintWorkflow: trigger_ansible_lint_job
AnsibleLintWorkflow->>Runner: start_job_with_matrix_versions
loop for_each_matrix_entry
Runner->>Runner: setup_python(matrix.versions.python)
Runner->>Runner: pip_install_tox_lsr_3_18_0
Runner->>Tox: run_tox_envs(collection,ansible_lint_collection)
Tox->>AnsibleCore: install_ansible_core(matrix.versions.ansible)
Tox->>AnsibleLint: install_ansible_lint(matrix.versions.ansible_lint)
Tox->>AnsibleLint: run_ansible_lint_on_collection
AnsibleLint-->>Tox: lint_results
Tox-->>Runner: exit_code_per_matrix_entry
end
Runner-->>AnsibleLintWorkflow: combined_matrix_status
AnsibleLintWorkflow-->>GitHubActions: job_status
GitHubActions-->>Developer: report_check_results
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
Align CI Ansible linting and testing workflows with Ansible partner certification requirements by running tox-based checks across multiple supported Ansible and Python versions.
CI: