-
Notifications
You must be signed in to change notification settings - Fork 37
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
Symlink batch ensembles and batch models #547
Conversation
tests/test_output_files.py
Outdated
@@ -225,3 +230,40 @@ def test_symlink_error(test_dir): | |||
bad_step = controller._create_job_step(bad_model, telem_dir) | |||
with pytest.raises(FileNotFoundError): | |||
controller.symlink_output_files(bad_step, bad_model) | |||
|
|||
|
|||
def test_batch_model_and_ensemble(test_dir): |
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.
We have a lot of new conditionals above, so a single test doesn't seem adequate. If we can't test logic, we should definitely extract new methods that can be tested (e.g. the aforementioned if_this_thing_should_have_symlinks()
)
Consider adding tests to also verify that symlinks are not created when they shouldn't be.
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.
Working on it!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #547 +/- ##
===========================================
+ Coverage 68.72% 71.55% +2.83%
===========================================
Files 65 66 +1
Lines 4559 4571 +12
===========================================
+ Hits 3133 3271 +138
+ Misses 1426 1300 -126
|
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
After testing a bunch of batch ensembles and batch models, I found that I hadn't actually symlinked the substeps in the controller. This fix should properly symlink the substeps. [ committed by @AlyssaCote ] [ reviewed by @ankona ]
After testing a bunch of batch ensembles and batch models, I found that I hadn't actually symlinked the substeps in the controller. This fix should properly symlink the substeps. [ committed by @AlyssaCote ] [ reviewed by @ankona ]
After testing a bunch of batch ensembles and batch models, I found that I hadn't actually symlinked the substeps in the controller. This fix should properly symlink the substeps.