Skip to content

Fix Molecule CI validation failure for default scenario - #4

Closed
dometto with Copilot wants to merge 1 commit into
update_moleculefrom
copilot/fix-molecule-github-actions
Closed

Fix Molecule CI validation failure for default scenario#4
dometto with Copilot wants to merge 1 commit into
update_moleculefrom
copilot/fix-molecule-github-actions

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The molecule GitHub Actions job was failing before any scenario steps ran because the default scenario inherited Podman registry settings with unresolved environment variables. Under the CI-installed Molecule/Podman plugin stack, those became null and failed schema validation.

  • Root cause

    • molecule/default/molecule.yml was effectively empty except for the verifier config.
    • The shared config in molecule/ext/molecule-src/molecule.yml defines platform registry settings via environment variables.
    • In CI, unset registry variables left platforms[*].registry.url as null, which the Podman driver schema rejects.
  • Change

    • Override the inherited registry URLs in the default scenario so validation does not depend on optional registry environment variables.
    • Keep the scenario otherwise minimal and continue to inherit the shared Molecule configuration.
  • Result

    • The default scenario now validates cleanly in CI and proceeds into the actual Molecule test sequence instead of failing during config/schema validation.
  • Config override

    ---
    verifier:
      name: ansible
    platforms:
      - name: workspace-src-ubuntu_noble
        registry:
          url: ghcr.io
      - name: workspace-src-ubuntu_jammy
        registry:
          url: ghcr.io

Co-authored-by: dometto <147111+dometto@users.noreply.github.com>
Copilot AI changed the title Fix failing molecule GitHub Actions job Fix Molecule CI validation failure for default scenario Aug 4, 2026
Copilot AI requested a review from dometto August 4, 2026 10:18
@dometto dometto closed this Aug 4, 2026
@dometto
dometto deleted the copilot/fix-molecule-github-actions branch August 4, 2026 10:26
An error occurred while trying to automatically change base from update_molecule to main August 4, 2026 11:14
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.

2 participants