Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for DRAC clusters to the
mila code
command [MT-71] (#85)
* Begin working on `mila code` on DRAC Signed-off-by: Fabrice Normandin <[email protected]> * `mila code` works on narval (not perfect though) Signed-off-by: Fabrice Normandin <[email protected]> * Add `cluster` argument to `qualified` function Signed-off-by: Fabrice Normandin <[email protected]> * Fix `Literal` import Signed-off-by: Fabrice Normandin <[email protected]> * Fix import order and typing error Signed-off-by: Fabrice Normandin <[email protected]> * Add a check for --account alloc when cluster"mila" Signed-off-by: Fabrice Normandin <[email protected]> * cd to $SCRATCH before running salloc Signed-off-by: Fabrice Normandin <[email protected]> * [wip] Try to move to $SCRATCH before sbatch Signed-off-by: Fabrice Normandin <[email protected]> * Show hostname, use `module load` after salloc Signed-off-by: Fabrice Normandin <[email protected]> * Simplify reconnecting to same node, no code-server Signed-off-by: Fabrice Normandin <[email protected]> * "Synchronize" VsCode extensions in subprocess Signed-off-by: Fabrice Normandin <[email protected]> * Only transfer missing extensions Signed-off-by: Fabrice Normandin <[email protected]> * A bit of code cleanup Signed-off-by: Fabrice Normandin <[email protected]> * Skip transfering extensions if already done. Signed-off-by: Fabrice Normandin <[email protected]> * Improve comments Signed-off-by: Fabrice Normandin <[email protected]> * Re-make the syncing happen in the background Signed-off-by: Fabrice Normandin <[email protected]> * Parametrize the paths a bit more Signed-off-by: Fabrice Normandin <[email protected]> * Improve the printed messages a bit Signed-off-by: Fabrice Normandin <[email protected]> * Reduce duplication of hard-coded cluster names Signed-off-by: Fabrice Normandin <[email protected]> * Minor (mostly typing-related) improvements Signed-off-by: Fabrice Normandin <[email protected]> * Move fixtures from test_remote.py to conftest Signed-off-by: Fabrice Normandin <[email protected]> * Change signature and improve copying of extensions Signed-off-by: Fabrice Normandin <[email protected]> * Add tests for the copying of VsCode extensions Signed-off-by: Fabrice Normandin <[email protected]> * Add test for packing of missing vscode extension Signed-off-by: Fabrice Normandin <[email protected]> * Fix tests failing due to change in help str Signed-off-by: Fabrice Normandin <[email protected]> * Fix tests failing due to added `cd $SCRATCH` Signed-off-by: Fabrice Normandin <[email protected]> * Make change to `hide` arg consistent in remote.py Signed-off-by: Fabrice Normandin <[email protected]> * Add test for `get_qualified_computenode_hostname` Signed-off-by: Fabrice Normandin <[email protected]> * Add missing `niagara` cluster Signed-off-by: Fabrice Normandin <[email protected]> * Remove niagara cluster Signed-off-by: Fabrice Normandin <[email protected]> * Fix bug with shutil.copytree in python=3.7 Signed-off-by: Fabrice Normandin <[email protected]> * Slightly simplify construction path based on home Signed-off-by: Fabrice Normandin <[email protected]> * Fix compute node hostname issue on mila cluster Signed-off-by: Fabrice Normandin <[email protected]> * Apply suggestions from code review Co-authored-by: satyaog <[email protected]> * Remove hard-coded value for DRAC clusters Signed-off-by: Fabrice Normandin <[email protected]> * Remove commented lines and change to ensure_alloc Signed-off-by: Fabrice Normandin <[email protected]> * Use `filecmp` module to compare dirs Signed-off-by: Fabrice Normandin <[email protected]> * Make test_remote.py checks less strict Signed-off-by: Fabrice Normandin <[email protected]> * Fix bug with mock_calls in py3.7 Signed-off-by: Fabrice Normandin <[email protected]> * Add more colour to logs and mention the background Signed-off-by: Fabrice Normandin <[email protected]> * Add small note to comment Signed-off-by: Fabrice Normandin <[email protected]> * Fix duplicate imports and such from rebase Signed-off-by: Fabrice Normandin <[email protected]> * Fix a bug in test_get_output for py3.7 Signed-off-by: Fabrice Normandin <[email protected]> --------- Signed-off-by: Fabrice Normandin <[email protected]> Signed-off-by: Fabrice Normandin <[email protected]> Co-authored-by: satyaog <[email protected]>
- Loading branch information