-
Notifications
You must be signed in to change notification settings - Fork 18
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
Introduce Pydantic to verify Test schema #145
Conversation
If we are going to accept this pydantic PR, then we should update USER_GUIDE.md as well to inform contributors how to add a new test template. Before updating USER_GUIDE.md, let's ensure @srinivas212 is on the same page. |
It's good to know that you have tested this PR with CloudAI test templates! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. However, since it is a major change, let's wait for @srinivas212.
Do you think we should keep all the existing field validators as is? This might constraint some of our users, I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amaslenn, let's discuss this PR in the next meeting. This PR might break other test templates as it changes how we retrieve arguments.
src/cloudai/schema/test_template/jax_toolbox/slurm_command_gen_strategy.py
Show resolved
Hide resolved
@amaslenn, the README and USER_GUIDE should be further updated as they contain keywords such as "test template." I suggest running |
Great catch, I've missed that, thank you! Yet for I've updated docs, please let me know if you see more issues with it. |
src/cloudai/schema/test_template/jax_toolbox/slurm_command_gen_strategy.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Met with Andrei and call to discuss this PR. LGTM.
Summary
Use Pydantic model for Test Template and Test TOMLs.
Test Plan
main
state:Additional Notes
—
Highlights for Release notes
We are working on schema improvements to simplify configs management and make them verifiable. This will help ensure that configs are correct before expensive runs on real hardware. Today we are enabling it for Test configs. This is a continuation of #158.
--test-templates-dir
option was removed for all commands. All supported tests are registered in code usingRegistry().add_test_definition(...)
andRegistry().add_test_template(...)
. Documentation was updated to reflect this change.Before:
extra_cmd_args
converted fromstr
todict[str, str]
:Before:
cloudai --mode verify-tests --system-config conf/common/system/standalone_system.toml --tests-dir conf/common/test/chakra_replay.toml