Commit b89f83d
authored
Rework of
* WIP: Rework of `mila init` following changes
Signed-off-by: Fabrice Normandin <[email protected]>
* temp
Signed-off-by: Fabrice Normandin <[email protected]>
* temp
Signed-off-by: Fabrice Normandin <[email protected]>
* TEMP
Signed-off-by: Fabrice Normandin <[email protected]>
* WIP: New `mila init` that mainly only prints
Signed-off-by: Fabrice Normandin <[email protected]>
* Make some progress on the rework of mila init
Signed-off-by: Fabrice Normandin <[email protected]>
* Remove overcomplicated, broken tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Add todo for new 'cn-????' entry for compute nodes
Signed-off-by: Fabrice Normandin <[email protected]>
* Remove leftover todo
Signed-off-by: Fabrice Normandin <[email protected]>
* `StrictHostKeyChecking=no` for mila compute nodes
Signed-off-by: Fabrice Normandin <[email protected]>
* Remove flaky check_passwordless and test
Signed-off-by: Fabrice Normandin <[email protected]>
* Explicit async fixture scope to avoid warning
Signed-off-by: Fabrice Normandin <[email protected]>
* Update regression files for compute node entry
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix bug in test for config file permissions
Signed-off-by: Fabrice Normandin <[email protected]>
* Add xfail on Windows test (?)
Signed-off-by: Fabrice Normandin <[email protected]>
* Another fix for Windows permission check (?)
Signed-off-by: Fabrice Normandin <[email protected]>
* Make test slightly less flaky
Signed-off-by: Fabrice Normandin <[email protected]>
* Remove mentions of the temporary form to add keys
Signed-off-by: Fabrice Normandin <[email protected]>
* Dont add StrictHostKeyChecking=no for compute node
Signed-off-by: Fabrice Normandin <[email protected]>
* Add new tests for mila init
Signed-off-by: Fabrice Normandin <[email protected]>
* WIP: Simplify/remove unnecessary tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Xfail tests that are broken
Signed-off-by: Fabrice Normandin <[email protected]>
* Remove unnecessary regression files, add todos
Signed-off-by: Fabrice Normandin <[email protected]>
* Adjust tests for init_command
Signed-off-by: Fabrice Normandin <[email protected]>
* Simplify input stream mocks in tests for mila init
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix some tests that use input_stream twice
Signed-off-by: Fabrice Normandin <[email protected]>
* Start adding new tests for `mila init`
Signed-off-by: Fabrice Normandin <[email protected]>
* Make new integration tests for `mila init`
Signed-off-by: Fabrice Normandin <[email protected]>
* Add temporary modifications to init_command.py
Signed-off-by: Fabrice Normandin <[email protected]>
* Add todo for disabling assert rewriting
Signed-off-by: Fabrice Normandin <[email protected]>
* Add full test for compute node SSH access setup
Signed-off-by: Fabrice Normandin <[email protected]>
* Add todo for later test
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix test collection error in test_init.py
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix test for add_ssh_entry
Signed-off-by: Fabrice Normandin <[email protected]>
* Tweak to not crash during test collection
Signed-off-by: Fabrice Normandin <[email protected]>
* Use the '-f' flag with ssh-copy-id on mila
Signed-off-by: Fabrice Normandin <[email protected]>
* Add the new DRAC clusters configs
Signed-off-by: Fabrice Normandin <[email protected]>
* Update regression files, make _some_ progress
Signed-off-by: Fabrice Normandin <[email protected]>
* Use different pubkey for drac
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix bug in can_access_compute_nodes
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix bug in can_access_compute_nodes
Signed-off-by: Fabrice Normandin <[email protected]>
* Integration tests with real SSH dir work
Signed-off-by: Fabrice Normandin <[email protected]>
* Add more tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix issue with controlpath, ssh key
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix display of public key having extra newline
Signed-off-by: Fabrice Normandin <[email protected]>
* add IdentityFile in config if key is non-standard
Signed-off-by: Fabrice Normandin <[email protected]>
* Rename the ssh key used in tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Copy keys between windows<->WSL in mila init
Signed-off-by: Fabrice Normandin <[email protected]>
* Add tests for copying keys from wsl<->win32
Signed-off-by: Fabrice Normandin <[email protected]>
* Try to patch up the experimental int tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Try to make int tests work (they dont)
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix formatting bug in build.yml
Signed-off-by: Fabrice Normandin <[email protected]>
* Only try creating keys if they don't exist
Signed-off-by: Fabrice Normandin <[email protected]>
* Add a bit more useful info for debugging
Signed-off-by: Fabrice Normandin <[email protected]>
* Try to disambiguate the Mila and DRAC key paths
Signed-off-by: Fabrice Normandin <[email protected]>
* Make DRAC setup warning on Windows more visible
Signed-off-by: Fabrice Normandin <[email protected]>
* Use bold red (more readable in Powershell)
Signed-off-by: Fabrice Normandin <[email protected]>
* Always add IdentityFile with keypath
Signed-off-by: Fabrice Normandin <[email protected]>
* Set StrictHostKeyChecking=no for localhost
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix bug with relative path of IdentityFile
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix regression files
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix bug in get_windows_home_path_in_wsl
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix drac default private key path in IdentityFile
Signed-off-by: Fabrice Normandin <[email protected]>
* Create ssh config at ~/.ssh/config before tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Attempt to fix bug in mila init on WSL
Signed-off-by: Fabrice Normandin <[email protected]>
* Tweak text when copying keys from WSL<->windows
Signed-off-by: Fabrice Normandin <[email protected]>
* If private key exists, chmod 600 it
Signed-off-by: Fabrice Normandin <[email protected]>
* Change the path to the key used in unit tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Mock the $HOME and default key paths during tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Try to fix connection issue on Windows
Signed-off-by: Fabrice Normandin <[email protected]>
* Don't wait for passphrase when creating test key
Signed-off-by: Fabrice Normandin <[email protected]>
* Remove leftover debugging assert False
Signed-off-by: Fabrice Normandin <[email protected]>
* Add URL to ask for access to DRAC clusters
Signed-off-by: Fabrice Normandin <[email protected]>
* Use paths with '~/.ssh' for IdentityFile
Signed-off-by: Fabrice Normandin <[email protected]>
* Add an annoying xfail for RemoteV1 test
Signed-off-by: Fabrice Normandin <[email protected]>
* Skip tests with file permissions on Win32
Signed-off-by: Fabrice Normandin <[email protected]>
* Replace computecanada with alliancecan
Signed-off-by: Fabrice Normandin <[email protected]>
* xfail for weird socket.getfqdn bug in MacOS in CI
Signed-off-by: Fabrice Normandin <[email protected]>
* Remove experimental integration tests
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix wrong IdentityFile copied to Windows config
Signed-off-by: Fabrice Normandin <[email protected]>
* Fix other broken test
Signed-off-by: Fabrice Normandin <[email protected]>
* '~' actually works in IdentityFile on Windows!
Signed-off-by: Fabrice Normandin <[email protected]>
* Add conditional skip to test on MacOS in CI
Signed-off-by: Fabrice Normandin <[email protected]>
* Add a conditional skip for buggy, unnecessary test
Signed-off-by: Fabrice Normandin <[email protected]>
* Setup compute node access in `mila code` as well
Signed-off-by: Fabrice Normandin <[email protected]>
* Move block after disk quota check
Signed-off-by: Fabrice Normandin <[email protected]>
---------
Signed-off-by: Fabrice Normandin <[email protected]>mila init following changes (#154)1 parent 1c4653f commit b89f83d
File tree
83 files changed
+2386
-4928
lines changed- .github/workflows
- milatools
- cli
- utils
- tests
- cli
- test_init_command
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
83 files changed
+2386
-4928
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | | - | |
73 | | - | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | 9 | | |
3 | 10 | | |
| |||
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
10 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
11 | 25 | | |
| 26 | + | |
12 | 27 | | |
13 | 28 | | |
| 29 | + | |
14 | 30 | | |
15 | 31 | | |
16 | 32 | | |
| |||
83 | 99 | | |
84 | 100 | | |
85 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
86 | 111 | | |
87 | 112 | | |
88 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
57 | | - | |
58 | 52 | | |
59 | 53 | | |
60 | 54 | | |
| |||
108 | 102 | | |
109 | 103 | | |
110 | 104 | | |
| 105 | + | |
111 | 106 | | |
112 | 107 | | |
113 | 108 | | |
| |||
508 | 503 | | |
509 | 504 | | |
510 | 505 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | 506 | | |
539 | 507 | | |
540 | 508 | | |
| |||
0 commit comments