Skip to content

Support actions that render Jinja templates #850

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

Draft
wants to merge 43 commits into
base: develop
Choose a base branch
from
Draft

Conversation

aplowman
Copy link
Contributor

@aplowman aplowman commented Jul 8, 2025

This includes code in #857, which should be merged soon.

This includes the following changes made in support of new task schemas being developed for Gmsh/MOOSE integration in MatFlow, here:

  • Support passing input_files to script/program_data_in. Currently it is only a subset of schema inputs that can be passed.
    • Add script/program_input_files; a list of input_files to pass to the script (via the format specified in script/program_data_in
    • Post-process script/program_data_in to make sure inputs are prefixed by inputs., unless they start with input_files.! This disambiguates the two but still allows specifying inputs without the inputs. prefix, as is currently in use.

Jinja template support:

  • initial support
  • check TaskSchema validation raises on incompatible schema inputs with respect to the Jinja template (missing and extra)
  • render templates to shared submission directory, like for scripts
  • support env specifiers within template paths, like for scripts
  • support parameters within template paths (and for scripts as well!)
  • test Action.get_input_types: check gets Jinja inputs
  • test Action.is_input_type_required: check Jinja inputs included

@aplowman aplowman added enhancement New feature or request task-schemas Related to task schema usage, creation, documentation, etc. actions Related to usage, creation, documentation etc of task schema actions labels Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actions Related to usage, creation, documentation etc of task schema actions enhancement New feature or request task-schemas Related to task schema usage, creation, documentation, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant