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

Unit tests for ShellLauncher & additional shell launch context #671

Merged

Conversation

amandarichardsonn
Copy link
Contributor

No description provided.

Comment on lines 43 to 47
# TODO tests bad vars in Popen call at beginning
# tests -> helper.exe : pass in None, empty str, path with a space at beginning, a non valid command
# -> write a test for the invalid num of items - test_shell_launcher_fails_on_any_invalid_len_input
# -> have border tests for 0,1,4,6 cmd vals -> work correctly without them -> raise ValueError
# do all of the failures as well as the sucess criteria
Copy link
Member

@MattToast MattToast Aug 27, 2024

Choose a reason for hiding this comment

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

Is this TODO still needed? I think I saw some of this being tested, but not all. Is this something we want to address in this PR or a follow on? If a follow on, is there a ticket somewhere for this 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.

  1. invalid num of items is not required given that it was written down during the era of unpacking a tuple and expecting the length to be #.
  2. I do not believe border tests for cmd vals is necessary given the new NamedTuple
  3. can probably add a check for popen cwd

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 a little bit of nit picking, but otherwise looks about ready to go on my end!!

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.

Some minor nits on the shell launcher tests, but nothing worth holding approval up over!

LGTM, thanks for all the hard work on this! Now that we are successfully generating logs to the right spot for all of our primitive jobs we are shaping up to be in really good shape for the V1 API!!

@amandarichardsonn amandarichardsonn merged commit f9a86d9 into CrayLabs:smartsim-refactor Aug 28, 2024
34 of 35 checks passed
@amandarichardsonn amandarichardsonn deleted the shell-context branch August 28, 2024 02:15
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.

2 participants