ci: Comply with Ansible partner certification checking [citest_skip]#23
Closed
richm wants to merge 1 commit into
Closed
ci: Comply with Ansible partner certification checking [citest_skip]#23richm wants to merge 1 commit into
richm wants to merge 1 commit into
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 GuideRefactors Ansible CI workflows to run partner-certification-compliant checks via tox across multiple Ansible/ansible-lint/ansible-test and Python versions, updates tox-lsr, aligns role/repo naming from trustee_attestation_client to trustee_client, and adds a helper test task file to clear facts and run the role flexibly in tests. Flow diagram for new ansible-lint CI job using tox matrixflowchart TD
A[Workflow_triggered
pull_request_or_push] --> B{Contains_citest_skip_marker}
B -- yes --> C[Skip_ansible_lint_job]
B -- no --> D[Update_pip_and_git]
D --> E[Install_tox_and_tox_lsr_3_18_0]
E --> F[Iterate_over_matrix_versions
ansible_lint_ansible_python]
F --> G[Set_up_Python_with_actions_setup_python
python_version_from_matrix]
G --> H[Run_tox_with_environments
collection_and_ansible_lint_collection]
H --> I[Pass_env_LSR_ANSIBLE_LINT_DEP
ansible_lint_equals_matrix_version]
I --> J[Pass_env_LSR_ANSIBLE_LINT_ANSIBLE_DEP
ansible_core_equals_matrix_version]
J --> K[Execute_collection_conversion_and
ansible_lint_checks_inside_tox]
K --> L[Report_status_for_each_matrix_entry]
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 README.md, the final status badge image for
trustee_attestation_clientstill points tolinux-system-roles/trustee_attestation_client/workflows/toxwhile the other badges were updated totrustee_client, which may cause that badge to break after the rename.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In README.md, the final status badge image for `trustee_attestation_client` still points to `linux-system-roles/trustee_attestation_client/workflows/tox` while the other badges were updated to `trustee_client`, which may cause that badge to break after the rename.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
Align CI and supporting files with Ansible partner certification requirements and updated role naming.
Enhancements:
CI:
Documentation:
Tests: