Skip to content
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

Merged
merged 23 commits into from
Apr 23, 2024

Conversation

AlyssaCote
Copy link
Contributor

@AlyssaCote AlyssaCote commented Apr 12, 2024

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.

@AlyssaCote AlyssaCote marked this pull request as draft April 12, 2024 20:02
@AlyssaCote AlyssaCote marked this pull request as ready for review April 16, 2024 16:31
@AlyssaCote AlyssaCote requested a review from ashao April 16, 2024 16:32
@@ -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):
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on it!

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

Attention: Patch coverage is 96.87500% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 71.55%. Comparing base (75118ba) to head (e0e50ca).

❗ Current head e0e50ca differs from pull request most recent head bed995a. Consider uploading reports for the commit bed995a to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             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     
Files Coverage Δ
smartsim/_core/control/controller_utils.py 100.00% <100.00%> (ø)
smartsim/_core/control/controller.py 62.77% <90.00%> (-4.52%) ⬇️

... and 34 files with indirect coverage changes

@AlyssaCote AlyssaCote requested a review from ankona April 20, 2024 00:13
Copy link
Contributor

@ankona ankona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlyssaCote AlyssaCote merged commit 62f2e8c into CrayLabs:develop Apr 23, 2024
34 checks passed
@amandarichardsonn amandarichardsonn added the bug: minor A minor bug label Apr 25, 2024
ankona pushed a commit to ankona/SmartSim that referenced this pull request May 6, 2024
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 ]
ankona pushed a commit to ankona/SmartSim that referenced this pull request May 7, 2024
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 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: minor A minor bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants