ci: Ansible version must be string, not float [citest_skip]#221
Merged
Conversation
The ansible version is specified as a YAML floating point number. This causes `2.20` to be converted to `2.2` which breaks platforms that use ansible 2.20. Ensure it and similar version numbers are specified in YAML as strings. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR updates the GitHub Actions TFT workflow matrix to treat Ansible versions as strings instead of numeric values, preventing YAML from truncating version numbers like 2.20 to 2.2 and ensuring CI runs with the intended Ansible versions on various platforms. Flow diagram for YAML Ansible version handling in CIflowchart LR
A[Define ansible_version in tft.yml matrix\nusing YAML string values] --> B[GitHub Actions loads workflow]
B --> C[Matrix expands per platform\nwith ansible_version as string]
C --> D[Runner job reads ansible_version\nwithout numeric truncation]
D --> E[Correct Ansible version\n2.20, 2.19, 2.16, 2.17, 2.9 is installed]
E --> F[CI tests run against intended\nAnsible versions on each platform]
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.
The ansible version is specified as a YAML floating point number. This causes
2.20to be converted to2.2which breaks platforms that use ansible 2.20.Ensure it and similar version numbers are specified in YAML as strings.
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by Sourcery
CI: