Skip to content

Fix docker molecule-config schema validation failure - #44

Merged
0x46616c6b merged 1 commit into
mainfrom
fix-docker-command-schema-validation
Jul 25, 2026
Merged

Fix docker molecule-config schema validation failure#44
0x46616c6b merged 1 commit into
mainfrom
fix-docker-command-schema-validation

Conversation

@0x46616c6b

Copy link
Copy Markdown
Member

Summary

  • molecule-plugins 26.7.15 added a JSON schema for the docker driver (ansible-community/molecule-plugins#340), which requires platforms[].command to be a string.
  • The default molecule-config here sets command: "", but the yq e --inplace step that injects the prepare playbook always serializes this as YAML null regardless of the original quoting, so it never actually applied as an empty string in the generated molecule.yml.
  • With the new schema in place, that null now fails validation (ERROR Failed to validate .../molecule/github/molecule.yml), breaking Molecule integration jobs in consuming repos (e.g. Bump Userli to 6.10.2 ansible-role-userli#136) even though the role change itself is unrelated.
  • Removing the dead command: "" line keeps the same effective behavior (no command override, same as the null it always produced) while passing schema validation.

Test plan

  • Confirm a consuming repo's Molecule job (e.g. ansible-role-userli) passes with this workflow change

molecule-plugins 26.7.15 added a JSON schema for the docker driver
(ansible-community/molecule-plugins#340) requiring platforms.command
to be a string. The command: "" line here was already turned into a
YAML null by the yq e --inplace prepare-playbook step regardless of
the quoting, so it never actually applied as an empty string - only
the new schema check started rejecting the resulting null. Removing
the line keeps the same effective behavior (no command override)
while passing validation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@0x46616c6b
0x46616c6b marked this pull request as ready for review July 25, 2026 20:25
@0x46616c6b
0x46616c6b merged commit 42fe041 into main Jul 25, 2026
6 checks passed
@0x46616c6b
0x46616c6b deleted the fix-docker-command-schema-validation branch July 25, 2026 20:25
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.

1 participant