Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend yamllint coverage to prepare/feature playbooks #3450

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

happz
Copy link
Collaborator

@happz happz commented Jan 7, 2025

These playbooks are not examples or test-only playbooks, but user-facing playbooks tmt and other tools may use in real workflows. They are covered by ansible-lint, let's add also yamllint to the mix because Ansible playbooks should be valid YAML files, and yamllint takes a slightly different view and reports slightly different set of issues. Whatever passes ansible-lint should be perfectly valid YAML file, but not necessarily nicely formatted, presentable, maintainable, readable, and/or consistent with the rest of playbooks shipped with tmt. yamllint should improve this side of the picture.

Pull Request Checklist

  • implement the feature

@happz happz added code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way. test coverage Improvements or additions to test coverage of tmt itself labels Jan 7, 2025
@happz happz added this to the 1.41 milestone Jan 7, 2025
@happz happz modified the milestones: 1.41, 1.42 Jan 13, 2025
@happz happz added the status | ready for merge The only missing piece is to do the rebase the current 'main' and let the CI finish. label Jan 14, 2025
@psss psss changed the title Extending yamllint coverage to prepare/feature playbooks Extend yamllint coverage to prepare/feature playbooks Jan 14, 2025
@psss psss force-pushed the extend-yamllint-to-prepare-feature-playbooks branch from 31ec64a to 55c9658 Compare January 14, 2025 15:36
@psss psss changed the title Extend yamllint coverage to prepare/feature playbooks Extend yamllint coverage to prepare/feature playbooks Jan 14, 2025
@psss psss added the ci | full test Pull request is ready for the full test execution label Jan 14, 2025
happz added 2 commits January 14, 2025 17:23
These playbooks are not examples or test-only playbooks, but user-facing
playbooks tmt and other tools may use in real workflows. They are covered
by ansible-lint, let's add also yamllint to the mix because Ansible
playbooks should be valid YAML files, and yamllint takes a slightly
different view and reports slightly different set of issues. Whatever
passes ansible-lint should be perfectly valid YAML file, but not
necessarily nicely formatted, presentable, maintainable, readable,
and/or consistent with the rest of playbooks shipped with tmt. yamllint
should improve this side of the picture.
@psss psss force-pushed the extend-yamllint-to-prepare-feature-playbooks branch from 55c9658 to bd3e2f3 Compare January 14, 2025 16:23
@psss
Copy link
Collaborator

psss commented Jan 15, 2025

Failures are irrelevant, merging.

@psss psss merged commit 77536b5 into main Jan 15, 2025
18 of 20 checks passed
@psss psss deleted the extend-yamllint-to-prepare-feature-playbooks branch January 15, 2025 09:25
@psss psss self-assigned this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci | full test Pull request is ready for the full test execution code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way. status | ready for merge The only missing piece is to do the rebase the current 'main' and let the CI finish. test coverage Improvements or additions to test coverage of tmt itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants