Skip to content

Conversation

@juliaputko
Copy link
Contributor

No description provided.

@juliaputko juliaputko requested a review from MattToast August 23, 2024 20:23
@codecov
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 68.54839% with 39 lines in your changes missing coverage. Please review.

Project coverage is 42.72%. Comparing base (cce16e6) to head (0f0b263).
Report is 19 commits behind head on smartsim-refactor.

Files with missing lines Patch % Lines
smartsim/_core/utils/helpers.py 20.00% 20 Missing ⚠️
smartsim/entity/application.py 82.02% 16 Missing ⚠️
smartsim/entity/dbnode.py 0.00% 2 Missing ⚠️
smartsim/experiment.py 75.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                  @@
##           smartsim-refactor     #673      +/-   ##
=====================================================
+ Coverage              40.45%   42.72%   +2.26%     
=====================================================
  Files                    110      109       -1     
  Lines                   7326     6980     -346     
=====================================================
+ Hits                    2964     2982      +18     
+ Misses                  4362     3998     -364     
Files with missing lines Coverage Δ
smartsim/_core/generation/generator.py 97.91% <100.00%> (+0.13%) ⬆️
smartsim/entity/__init__.py 100.00% <100.00%> (ø)
smartsim/entity/ensemble.py 97.14% <100.00%> (ø)
smartsim/entity/entity.py 65.11% <100.00%> (-0.80%) ⬇️
smartsim/experiment.py 80.19% <75.00%> (-1.36%) ⬇️
smartsim/entity/dbnode.py 36.06% <0.00%> (-0.30%) ⬇️
smartsim/entity/application.py 82.02% <82.02%> (ø)
smartsim/_core/utils/helpers.py 38.42% <20.00%> (-1.76%) ⬇️

... 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.

Looks great! Just some minor clean up here and there!!

I want to discuss some of those lingering TODOs with the group before I sign off and we merge anything, but otherwise this is looking like a much more refined model to me! Should be ready to go once we get consensus on those last few items!

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.

Overall looks great! Just minor questions/comments.


@property
def exe_args(self) -> t.Sequence[str]:
"""Return an immutable list of attached executable arguments.
Copy link
Contributor

Choose a reason for hiding this comment

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

is the returned value really immutable?

Copy link
Member

Choose a reason for hiding this comment

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

At runtime, not technically, but the type hint here states that a sequence is return which implicitly promotes immutability. If we do drop the "immutable" wording from the docstring, I'm going to also recommend changing the return type to list[str] or at the very least MutableSequence[str]

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I guess I was thinking that _build_exe_args returns a List which is mutable so that part was out of sync.

Do we want to be specific and risk API breaks later by changing to list[str] or generic to limit breaks later (i.e. MutableSequence[str])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to mutablesequence[str]

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 few more minor nits to consider while you sort out the conflict, but otherwise looks about ready to go to me!

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 question, but nothing worth holding approval up over. LGTM! Thanks for all the hard work cleaning up this interface!!

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.

LGTM!

@juliaputko juliaputko merged commit ec7677a into CrayLabs:smartsim-refactor Aug 29, 2024
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.

4 participants