-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix --persist
mila code
bug and intermittent connection errors [MT-…
…78] (#101) * Fix --persist bug and unneeded cd $SCRATCH Signed-off-by: Fabrice Normandin <[email protected]> * Fix broken tests, add integration test dir Signed-off-by: Fabrice Normandin <[email protected]> * Fix check_passwordless bug, set banner_timeout=60 Signed-off-by: Fabrice Normandin <[email protected]> * Remove unneeded mark and test run Signed-off-by: Fabrice Normandin <[email protected]> * Centralize references to connect_kwargs Signed-off-by: Fabrice Normandin <[email protected]> * Remove outdated todo Signed-off-by: Fabrice Normandin <[email protected]> * Fix bug in check_disk_quota and add test Signed-off-by: Fabrice Normandin <[email protected]> * Remove duplicate (moved) test_slurm_remote.py file Signed-off-by: Fabrice Normandin <[email protected]> * Add/improve integration test for `mila code` Signed-off-by: Fabrice Normandin <[email protected]> * Hide the 'which lfs' command Signed-off-by: Fabrice Normandin <[email protected]> * Fix typing error in test_commands.py Signed-off-by: Fabrice Normandin <[email protected]> * Fix bug and misleading type for `alloc` argument `alloc` needs to be a list of strings, but it was typed as `Sequence[str]`, which allows `str` to be passed (since `str`s are sequences of `str`s). This changes it to `list[str]` which is stricter and correct. Incidentally, there was an undetected bug in the regression test at `tests/integration/test_code_command.py::test_code` because I was passing the allocation flags (a string) as salloc. Signed-off-by: Fabrice Normandin <[email protected]> * Change test fixture, adjust tests Signed-off-by: Fabrice Normandin <[email protected]> * Adjust the way we fetch SLURM accounts in tests Signed-off-by: Fabrice Normandin <[email protected]> * Fix unused imports in conftest.py Signed-off-by: Fabrice Normandin <[email protected]> * Fix typing error in python 3.8 Signed-off-by: Fabrice Normandin <[email protected]> * Fix other type error in python 3.8 Signed-off-by: Fabrice Normandin <[email protected]> * Apply suggestions from code review Co-authored-by: satyaog <[email protected]> * Add a `currently_in_a_test` function Signed-off-by: Fabrice Normandin <[email protected]> * Fix same issue `mila serve` commands Signed-off-by: Fabrice Normandin <[email protected]> --------- Signed-off-by: Fabrice Normandin <[email protected]> Co-authored-by: satyaog <[email protected]>
- Loading branch information
Showing
18 changed files
with
561 additions
and
279 deletions.
There are no files selected for viewing
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.