Skip to content

lint: fix no-changed-when and schema violations and enforce them - #708

Open
GeertJohan wants to merge 1 commit into
metal-stack:masterfrom
GeertJohan:harden/lint-burndown
Open

lint: fix no-changed-when and schema violations and enforce them#708
GeertJohan wants to merge 1 commit into
metal-stack:masterfrom
GeertJohan:harden/lint-burndown

Conversation

@GeertJohan

Copy link
Copy Markdown
Contributor
  • add changed_when to all command/shell/raw tasks flagged by no-changed-when, using changed_when: false for read-only commands and changed_when: true for commands that always apply changes
  • fix schema[meta] violations: drop the optional role_name field from galaxy_info (it is not used when roles are imported via their directory paths), add a missing description to the top-level meta/main.yml and replace invalid platform entries (SONiC is not a valid galaxy platform)
  • add a missing meta/main.yml to the gnmic role so that the setup_yaml action from ansible-common can be resolved (fixes syntax-check[unknown-module])
  • remove no-changed-when and schema from the ansible-lint warn_list so they are enforced from now on; role-name and var-naming stay warnings because renaming roles or variables would break downstream consumers
  • enable forbid-duplicated-merge-keys in .yamllint (no violations)

Used AI-Tools ✨

Claude Fable 5

- add changed_when to all command/shell/raw tasks flagged by no-changed-when,
  using changed_when: false for read-only commands and changed_when: true for
  commands that always apply changes
- fix schema[meta] violations: drop the optional role_name field from
  galaxy_info (it is not used when roles are imported via their directory
  paths), add a missing description to the top-level meta/main.yml and
  replace invalid platform entries (SONiC is not a valid galaxy platform)
- add a missing meta/main.yml to the gnmic role so that the setup_yaml
  action from ansible-common can be resolved (fixes
  syntax-check[unknown-module])
- remove no-changed-when and schema from the ansible-lint warn_list so they
  are enforced from now on; role-name and var-naming stay warnings because
  renaming roles or variables would break downstream consumers
- enable forbid-duplicated-merge-keys in .yamllint (no violations)
@GeertJohan
GeertJohan requested review from a team as code owners August 4, 2026 14:12
@metal-robot metal-robot Bot added the area: deployment Affects the deployment area. label Aug 4, 2026
@metal-robot metal-robot Bot added this to Development Aug 4, 2026
@iljarotar iljarotar moved this to In Progress in Development Aug 10, 2026

@Gerrit91 Gerrit91 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

@vknabel

vknabel commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Review missing from @metal-stack/metal-roles-maintainers-isolated-clusters and @metal-stack/metal-roles-maintainers-partition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: deployment Affects the deployment area.

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

5 participants