Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add esmvaltool config validate command? #2246

Open
alistairsellar opened this issue Oct 26, 2023 · 2 comments
Open

Add esmvaltool config validate command? #2246

alistairsellar opened this issue Oct 26, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@alistairsellar
Copy link
Contributor

alistairsellar commented Oct 26, 2023

Is your feature request related to a problem? Please describe.
It might be useful to have an esmvaltool command to validate a config file. One can use the python API with esmvalcore.config.CFG to validate a config file, but as far as I can tell there isn't a command (short of trying to run a recipe).

This would be a potential solution to an issue with recipe_test_workflow, but there are other options for that if it's not desirable for some reason.

It would be added to the config command group and syntax would be

esmvaltool config validate <config_file.yml>

The idea would be to use the existing validation method that is done when running a recipe, just without running a recipe.

Would you be able to help out?
Yes, I would aim to write this if agreed to be useful.

@alistairsellar alistairsellar added the enhancement New feature or request label Oct 26, 2023
@alistairsellar alistairsellar self-assigned this Oct 26, 2023
@alistairsellar
Copy link
Contributor Author

Does anyone in @ESMValGroup/technical-lead-development-team have a view on this proposal? Does such a command already exist? Does anyone have any objections to me adding it?

@valeriupredoi
Copy link
Contributor

this would be very useful, and it harks back to my very distant in time trials to have a dry-run optionality ie do everything short of running a recipe: configuration validation, data availability checks, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants