-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Add a tool to convert from the old to the new configuration syntax #1186
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
Conversation
|
Hello @ekouts, Thank you for updating! Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide Comment last updated at 2020-03-23 17:44:50 UTC |
Codecov Report
@@ Coverage Diff @@
## master #1186 +/- ##
==========================================
- Coverage 92.02% 91.34% -0.69%
==========================================
Files 81 83 +2
Lines 11736 12208 +472
==========================================
+ Hits 10800 11151 +351
- Misses 936 1057 +121
Continue to review full report at Codecov.
|
|
I tried And the output from the one I wrote is this: |
|
@ekouts Way better your formatting. I think we should have this as a separate function in |
Yes it makes sense because it's more general and actually handles tuples as well, that are not part of the configuration as far as I could tell. |
vkarak
left a comment
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.
As discussed, move the ppretty() function to the utility module and add a unit test. It'd be good also to have a unit test for the old config conversion. Copy the unittests/resources/settings.py to unittests/resources/settings_old_style.py, load it, convert it and then validate it against the schema.
|
@ekouts Don't write a unit tests for the conversion. I will include one in my upcoming PR for the new configuration mechanism. Just move your pretty print function to a |
|
Moving over to the next sprint. |
…rame into feat/json-config-tool
- Fix container platform handling - Fix variables in environments - Delete type attribute from environments
vkarak
left a comment
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. Thanks @ekouts !
The PR, so far, contains only the function that converts the old configuration to a python json object. It also updates the validation schema and the example of the new configuration, which is based on
unittests/resources/settings.py.The validation schema still lacks support for the variables:
job_poll_intervalsjob_submit_timeoutCloses #1114.