Manage iodef core no_del tweak_iodef - #447
Conversation
| src_replace(load_root, path) | ||
| return load_tree | ||
|
|
||
| # Generator for the pytest parametrize fixture. |
There was a problem hiding this comment.
A number of the python scripts use if __name__ == '__main__' as the entry point. I don't have strong opinions on this, but maybe worth considering.
| import pytest | ||
|
|
||
|
|
||
| # security pattern to check whether `src` links are local and link to known |
There was a problem hiding this comment.
Could you double check this regex and it's comment please?
I don't think it matches strings starting with ../metadata.
I also think it will match some non-alphabetic following characters, for example I think:
$SOURCE_ROOT/bob/bruce matches
etc/bob33 matches
etc/33bob doesn't match
| "$CYLC_TASK_WORK_DIR" %} | ||
| {# Copy the source, dereferencing symbolic links,#} | ||
| {# then use `rose env-cat` for Env Vars on etc/xios.xml & etc/xios_coupled.xml #} | ||
| {% set canned_prescript = "cp -rL $SOURCE_DIRECTORY/"~task_values["example_dir"]~"/* "~ |
There was a problem hiding this comment.
I don't think this is something that we should be doing. The intention of the example files is that they are runnable on the command line "as is" to help with quick development. These changes would require any run of the example files to setup the environment variables and run rose env-cat. I think probably the example files need setting to not use the central /etc files.
PR Summary
Sci/Tech Reviewer: Harry Shepherd (@harry-shepherd) - -->
Code Reviewer: Benjamin Went (@MetBenjaminWent)
This PR removes the
lfric_coredependency ontweak_iodefThe script is left in the source until a following PR can remove
lfric_appsdependency on this, at which point it can be deleted.Instead, XML component fragments are addressed directly, through source symlinks, and through rose / cylc configurations
This then enables static analysis of XML files that are used as
iodef.xmlfiles by XIOS, introducing testing of XML in the source tree and the opportunity for XML rules encoded in the depths of the lfric xios interface to be tested directly, improving management of XML configurationsCode Quality Checklist
Testing
trac.log
Test Suite Results - lfric_core - manage_iodef_core/run1
Suite Information
Task Information
✅ succeeded tasks - 434
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review