Skip to content

Conversation

amandarichardsonn
Copy link
Contributor

Refactor SmartSimEntity class, remove ExecutableProtocol protocol, Application becomes subclass of ABC SmartSImEntity

Copy link

codecov bot commented Aug 29, 2024

Codecov Report

Attention: Patch coverage is 73.68421% with 5 lines in your changes missing coverage. Please review.

Project coverage is 43.36%. Comparing base (cce16e6) to head (8e24b00).
Report is 19 commits behind head on smartsim-refactor.

Files with missing lines Patch % Lines
smartsim/entity/application.py 57.14% 3 Missing ⚠️
smartsim/_core/dispatch.py 0.00% 1 Missing ⚠️
smartsim/entity/entityList.py 66.66% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                  @@
##           smartsim-refactor     #688      +/-   ##
=====================================================
+ Coverage              40.45%   43.36%   +2.90%     
=====================================================
  Files                    110      110              
  Lines                   7326     7042     -284     
=====================================================
+ Hits                    2964     3054      +90     
+ Misses                  4362     3988     -374     
Files with missing lines Coverage Δ
smartsim/_core/control/job.py 29.33% <ø> (+0.19%) ⬆️
smartsim/_core/launcher/dragon/dragonLauncher.py 27.27% <100.00%> (+0.56%) ⬆️
smartsim/_core/shell/shellLauncher.py 96.61% <100.00%> (+35.74%) ⬆️
smartsim/_core/utils/launcher.py 95.23% <ø> (-0.42%) ⬇️
smartsim/entity/entity.py 75.00% <100.00%> (+9.09%) ⬆️
smartsim/experiment.py 85.49% <100.00%> (+3.94%) ⬆️
smartsim/_core/dispatch.py 95.87% <0.00%> (-0.97%) ⬇️
smartsim/entity/entityList.py 48.88% <66.66%> (+2.88%) ⬆️
smartsim/entity/application.py 82.41% <57.14%> (ø)

... and 5 files with indirect coverage changes

Copy link
Member

@MattToast MattToast left a comment

Choose a reason for hiding this comment

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

A couple of small testing nits and requests for some docs, but nothing that should take long to address! Looks about ready to go on my end!!

Copy link
Contributor

@mellis13 mellis13 left a comment

Choose a reason for hiding this comment

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

Just a couple of comments/questions

@@ -299,7 +299,7 @@ def error_report(self) -> str:
warning += f"Job status at failure: {self.status} \n"
warning += f"Launcher status at failure: {self.raw_status} \n"
warning += f"Job returncode: {self.returncode} \n"
warning += f"Error and output file located at: {self.entity.path}"
# warning += f"Error and output file located at: {self.job.path}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this commented out because it wrong or because it just won't work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Path is no longer on entity, for a second I thought I could access off of Job but no. I commented it out and left it incase we want to replace in the future, it will not be forgotten

Copy link
Member

@MattToast MattToast left a comment

Choose a reason for hiding this comment

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

One last nit, but nothing to hold approval up over! LGTM!!

@amandarichardsonn amandarichardsonn merged commit 4a4f43a into CrayLabs:smartsim-refactor Aug 29, 2024
34 of 35 checks passed
@amandarichardsonn amandarichardsonn deleted the smartsim_entity branch August 29, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants