Skip to content

feat(podman): Add driver schema#335

Open
ziegenberg wants to merge 2 commits intoansible-community:mainfrom
ziegenberg:add-podman-driver-schema
Open

feat(podman): Add driver schema#335
ziegenberg wants to merge 2 commits intoansible-community:mainfrom
ziegenberg:add-podman-driver-schema

Conversation

@ziegenberg
Copy link
Copy Markdown

@ziegenberg ziegenberg commented Sep 23, 2025

Currently, when running molecule with the podman driver, we get the following message:

WARNING  Driver podman does not provide a schema.

So, let's add a schema 🎉

Fixes #304

@ziegenberg ziegenberg changed the title podman: Add driver schema feat(podman) Add driver schema Sep 23, 2025
@ziegenberg ziegenberg changed the title feat(podman) Add driver schema feat(podman): Add driver schema Sep 23, 2025
@ziegenberg ziegenberg force-pushed the add-podman-driver-schema branch from ae5f7cc to 84407bb Compare September 23, 2025 15:43
@ziegenberg ziegenberg force-pushed the add-podman-driver-schema branch from 84407bb to 57a7b4b Compare September 23, 2025 18:12
@github-actions github-actions bot added feature and removed feature labels Sep 23, 2025
@ziegenberg ziegenberg force-pushed the add-podman-driver-schema branch from 57a7b4b to 36472f2 Compare September 24, 2025 05:50
@github-actions github-actions bot added feature and removed feature labels Sep 24, 2025
@eliasrudberg
Copy link
Copy Markdown

@ziegenberg thanks for working on this!

But it seems like your fix got stuck due to "Label error". I'm not sure if I understand correctly how this works, but could it be that to make it work the commit message would need to start with "feat:" instead of "feat(podman):" ? (because "feat:" is one of the types accepted?)

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds JSON schema validation support for the Podman driver to eliminate the warning about missing driver schema.

Changes:

  • Added a comprehensive JSON schema file defining the Podman driver and platform configuration structure
  • Implemented the schema_file() method in the Podman driver class to return the path to the schema file

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/molecule_plugins/podman/schema/driver.json New JSON schema file defining validation rules for Podman driver configuration with detailed property definitions for platforms and driver settings
src/molecule_plugins/podman/driver.py Added schema_file() method to return the path to the driver's JSON schema file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +257 to +262
def schema_file(self):
"""Return the path to the driver's JSON schema file."""
p = Path(self._path, "schema", "driver.json")
if p.is_file():
return str(p)
return None
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

The new schema_file() method lacks test coverage. Consider adding a test in test/podman/test_driver.py to verify that the method returns the correct schema file path and handles the case when the file doesn't exist.

Copilot uses AI. Check for mistakes.
@ziegenberg
Copy link
Copy Markdown
Author

ziegenberg commented Jan 15, 2026

Hi @eliasrudberg,

The commit message reads 'podman: Add driver schema', which should be absolutely fine and the label feature was applied by the bot. It's not my fault that the check expects feat as a label but the bot applies feature. That's not something I can solve.

@eliasrudberg
Copy link
Copy Markdown

@ziegenberg thanks for answering!

As the problem seems to be that the check is not happy with what the bot is doing, would it be possible to either disable the bot, or disable the check (perhaps enable again after the merge is done)?

If that's not possible, is there anything else that could be done to get this fix merged? What would it take? I would like to help, if possible.

@ziegenberg
Copy link
Copy Markdown
Author

Hi @eliasrudberg,

You're overestimating my abilities here. I have no say over the bot or anything else. I have the same powers as you: basically none. I can create a pull request, and that's it.

@ziegenberg
Copy link
Copy Markdown
Author

The last commit from one of the maintainers (@ssbarnea) was from four months ago. We just have to wait for them to return.

If it's urgent, you may want to ask them in the #devtools Matrix chat: https://matrix.to/#/#devtools:ansible.com

@eliasrudberg
Copy link
Copy Markdown

@ziegenberg okay, I understand. Thanks for explaining!

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
@eliasrudberg
Copy link
Copy Markdown

@ssbarnea could this get merged soon? It would be really nice to get rid of those warnings about missing schema!

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting "Driver podman does not provide a schema" warning when using molecule with podman driver

4 participants