ci: rollout several recent changes to CI testing#7
Merged
Conversation
* Pass in a YAML true value as `__bootc_validation: true` using
the --extra-vars option to ensure that `__bootc_validation` is
treated as a boolean and not a string value.
`-e "__bootc_validation: true"`
You can also use JSON format:
`-e '{"__bootc_validation": true}'`
but YAML is simpler in this case.
* Use tox-lsr version 3.11.1
* Ensure the citest bad comment works when the test was cancelled in
addition to the failure case.
* Update contributing.md documentation
* Update number of nodes to use in testing farm, if needed
* remove unnecessary ansible-lint skips
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR streamlines CI testing by properly passing boolean flags, enhancing workflow failure detection, updating tool versions, and refining documentation and lint configurations. Sequence diagram for improved workflow failure and cancellation detection in CIsequenceDiagram
participant GitHub Actions
participant "gh CLI"
participant "jq"
participant User
User->>GitHub Actions: Trigger citest bad workflow
GitHub Actions->>"gh CLI": Query workflow runs for tft.yml
"gh CLI"->>"jq": Filter runs by display_title and conclusion
"jq"->>GitHub Actions: Return run ID if conclusion is "failure" or "cancelled"
GitHub Actions->>User: Notify if failed/cancelled workflow found or exit if not
Class diagram for passing boolean extra-vars to Ansible in CIclassDiagram
class CI_Workflow {
+run_tests()
+pass_extra_vars()
}
class Ansible {
+__bootc_validation: bool
+run_playbook()
}
CI_Workflow --> Ansible: passes __bootc_validation as boolean
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.
__bootc_validation: trueusingthe --extra-vars option to ensure that
__bootc_validationistreated as a boolean and not a string value.
-e "__bootc_validation: true"You can also use JSON format:
-e '{"__bootc_validation": true}'but YAML is simpler in this case.
Use tox-lsr version 3.11.1
Ensure the citest bad comment works when the test was cancelled in
addition to the failure case.
Update contributing.md documentation
Update number of nodes to use in testing farm, if needed
remove unnecessary ansible-lint skips
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by Sourcery
Roll out recent CI testing improvements including YAML boolean extra-vars for validation, tox-lsr upgrade, cancelled-run handling in workflows, testing farm node adjustments, ansible-lint cleanup, and updated contributing docs
Bug Fixes:
Enhancements:
CI:
Documentation:
Chores: