-
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
Improve testing robustness on SLURM machines #381
Merged
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
c48db14
Update tests to pass on_wlm
ashao 7e02516
Define make_test_dir and get_test_dir fixtures
al-rigazzi 2f9882b
More permissive naming for caller_function
al-rigazzi 978e177
Style
al-rigazzi 0e25a4a
Update tests to pass on_wlm
ashao c6930c0
Respond to review feedback
ashao 86e51f8
Modify for mpirun with PBS
ashao cc8c986
Merge branch 'fix_tests' of https://github.com/ashao/SmartSim into fi…
ashao 89c2008
Fix db shutdown and some fixtures
al-rigazzi 765c571
Update DBModel tests
al-rigazzi fde1efe
Merge branch 'develop' into test-tmp-dir
al-rigazzi ea6bac5
Begin adding a context manager for orchestrators in multidb cases
ashao 662e4c5
Merge branch 'test-tmp-dir' of https://github.com/al-rigazzi/SmartSim…
ashao b46ccb9
More multidb tests wokring, stopping at test_multidb.py::test_multidb…
ashao 30d3fe4
Fix start_in_context
al-rigazzi 131310f
Fix fixture usage
al-rigazzi dc301bb
Fix get_status
al-rigazzi 380c8ef
Fix mypy issues
al-rigazzi 62b79b0
Fix a couple of tests
ashao 34ee0c3
Merge branch 'fix_tests' of https://github.com/ashao/SmartSim into fi…
ashao ee39204
tests are passing on PBS
ashao 9f8a623
Fix one last typo
ashao 3769c90
Make reset_hosts work on LSF
al-rigazzi c959e17
Comply to mypy syntax for union
al-rigazzi 336bebd
Update signatures in conftest.py
al-rigazzi a343e27
Address reviewer's comments
al-rigazzi 2038471
Fix name collision in FileUtils
al-rigazzi 9ff094a
Fix fixture usage
al-rigazzi ac89651
Fix lock scope
al-rigazzi f7be14a
Replace repeated module level function
ashao e2b9238
Remove extraneous print in add_batch_resources
ashao aa95d5e
Enforce type for batch resources
ashao 9f4eac0
Reset license text after inadvertent find/replace
ashao e697f58
Fix SS env vars
al-rigazzi 225b5b2
Merge branch 'develop' of https://github.com/CrayLabs/SmartSim into f…
al-rigazzi cce73db
Use db_identifier
al-rigazzi bd3ff35
Disable key prefixing for test colocated entities
al-rigazzi 2eab465
Add test to validate uds socket file name
al-rigazzi fcdc5db
Remove "test_dir = test_dir"
al-rigazzi 8524819
Fix typehinting
ashao be38db2
Address feedback from @drozt
ashao 99f47f8
Separate db name and db id
al-rigazzi a9b3fff
Add test for db ids and names
al-rigazzi f664477
Fix db node test for local
al-rigazzi 1b29f12
Addresse reviewer's comments
al-rigazzi bebbb04
Make socket filename unique in tests
al-rigazzi 0b67edd
Fix smartredis test scripts
al-rigazzi 05fe0b2
Make some asserts more helpful
al-rigazzi e66c65c
Patch TF multigpu tests
al-rigazzi a3842a4
Add info about num_test_devices
al-rigazzi 05093b7
Add details to failing asserts in test_dbmodel
al-rigazzi 1e101e7
Add mem cap to dataloader tests
al-rigazzi 94d4790
Fix number of devices if not GPU
al-rigazzi dc78094
Merge branch 'develop' of https://github.com/CrayLabs/SmartSim into f…
al-rigazzi 9af0c75
MyPy
al-rigazzi c68b2af
Merge branch 'develop' of https://github.com/CrayLabs/SmartSim into f…
al-rigazzi 762db80
Spawn in TF saving/serializing in a new process to avoid a locked GPU
ashao 31520a9
Revert "Spawn in TF saving/serializing in a new process to avoid a lo…
ashao b703bc9
Simplify the logic in QsubBatchSettings
ashao 48defa2
Delete extraneous scripts
ashao b929ba8
Refactor QsubBatchSettings resources
ashao a0d8328
Merge branch 'develop' into fix_tests
al-rigazzi 8e0e82f
Merge branch 'fix_tests' of https://github.com/ashao/SmartSim into fi…
al-rigazzi 0979ced
Merge branch 'develop' into fix_tests
al-rigazzi 2e72604
Delete misleading comment
al-rigazzi 14c420d
Correct type hints and more robust resource validation
ashao bd4345e
Fix one use of | insteado t.Union
ashao f2123fa
Fix an incorrect typehint
ashao 5ff7007
Yet another | instead of t.Union
ashao f485ad1
Remove extraneous assignment and blackify
ashao 2824d69
Remove now invalid test and update type checking
ashao 2358c48
Fix accidental collision with default value
ashao 0663f5d
Update behaviour for test_create_pbs_batch
ashao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Probably out of scope for this PR, but this feels like the intent of this loop could be better represented if it were made a method(s) on the orc/dbnode classes, rather than manually preforming this nested iteration.
What would you think about doing something like:
?
This way this we could abstract away the nested iteration, and the whole loop would just become:
which I tend to find a hair more readable
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.
Fair, but with
orchestrator.py
being close to 1000 lines, we may have to postpone this change to when the class will be restructured.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.
^^ Agreed. Let's kick this conversation out into a dedicated DB refactor ticket!