Skip to content

ci: make ansible-lint gate (remove '|| true') - #60

Merged
michaelcoburn merged 1 commit into
percona:mainfrom
michaelcoburn:fix/ansible-lint-gate
Jun 2, 2026
Merged

ci: make ansible-lint gate (remove '|| true')#60
michaelcoburn merged 1 commit into
percona:mainfrom
michaelcoburn:fix/ansible-lint-gate

Conversation

@michaelcoburn

@michaelcoburn michaelcoburn commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #59 · depends on #63 — merge that first.

The ansible-lint job ran with ansible-lint hosts.yml roles/ || true, so it always passed regardless of findings — a check that can't fail is decorative. This drops || true so the job gates on genuine syntax/load errors. The existing .ansible-lint warn_list keeps the noisy stylistic rules non-blocking, so only real errors break the build.

⚠️ Merge order

This PR's ansible-lint check will be red until #63 merges#63 fixes the malformed percona-repo.yml that the gate (correctly) trips on. Sequence:

  1. Merge fix: correct malformed YAML in roles/mysql/tasks/percona-repo.yml #63 (the YAML fix) → main becomes lint-clean.
  2. Rebase this PR onto mainansible-lint goes green → merge.

(Previously this PR bundled both the fix and the gate; split per review so each PR does one thing.)

The ansible-lint job ran with `ansible-lint hosts.yml roles/ || true`, so
it always passed regardless of findings. Drop `|| true` so the job fails
on genuine syntax/load errors. The existing .ansible-lint warn_list keeps
the noisy stylistic rules non-blocking, so only real errors break the build.

Depends on percona#63 (fixes the malformed percona-repo.yml that would otherwise
trip this gate). Merge percona#63 first.

Closes percona#59
@michaelcoburn
michaelcoburn force-pushed the fix/ansible-lint-gate branch from 15e43be to 96b40c0 Compare June 2, 2026 18:38
@michaelcoburn michaelcoburn changed the title ci: make ansible-lint gate; fix malformed percona-repo.yml ci: make ansible-lint gate (remove '|| true') Jun 2, 2026
@michaelcoburn
michaelcoburn merged commit b1849e8 into percona:main Jun 2, 2026
3 of 4 checks passed
@michaelcoburn
michaelcoburn deleted the fix/ansible-lint-gate branch June 2, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ansible-lint runs with '|| true' and is masking a fatal YAML error

1 participant