Commit 7c733d1
Fix --persist
* 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]>mila code bug and intermittent connection errors [MT-78] (#101)1 parent b823319 commit 7c733d1
File tree
18 files changed
+561
-279
lines changed- .github/workflows
- milatools/cli
- tests
- cli
- test_remote
- integration
18 files changed
+561
-279
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
| |||
96 | 93 | | |
97 | 94 | | |
98 | 95 | | |
99 | | - | |
| 96 | + | |
100 | 97 | | |
101 | 98 | | |
102 | 99 | | |
| |||
120 | 117 | | |
121 | 118 | | |
122 | 119 | | |
123 | | - | |
| 120 | + | |
124 | 121 | | |
125 | 122 | | |
126 | 123 | | |
| |||
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
134 | | - | |
| 131 | + | |
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
492 | 494 | | |
493 | 495 | | |
494 | 496 | | |
495 | | - | |
| 497 | + | |
496 | 498 | | |
497 | 499 | | |
498 | 500 | | |
| |||
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
| |||
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
| 622 | + | |
| 623 | + | |
621 | 624 | | |
622 | 625 | | |
623 | 626 | | |
| |||
714 | 717 | | |
715 | 718 | | |
716 | 719 | | |
717 | | - | |
| 720 | + | |
718 | 721 | | |
719 | 722 | | |
720 | 723 | | |
| |||
922 | 925 | | |
923 | 926 | | |
924 | 927 | | |
925 | | - | |
| 928 | + | |
926 | 929 | | |
927 | 930 | | |
928 | 931 | | |
| |||
1074 | 1077 | | |
1075 | 1078 | | |
1076 | 1079 | | |
1077 | | - | |
1078 | | - | |
| 1080 | + | |
| 1081 | + | |
1079 | 1082 | | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1084 | 1108 | | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
| 1109 | + | |
1098 | 1110 | | |
1099 | 1111 | | |
1100 | 1112 | | |
1101 | | - | |
| 1113 | + | |
1102 | 1114 | | |
1103 | | - | |
| 1115 | + | |
1104 | 1116 | | |
1105 | | - | |
| 1117 | + | |
1106 | 1118 | | |
1107 | | - | |
1108 | | - | |
| 1119 | + | |
| 1120 | + | |
1109 | 1121 | | |
1110 | | - | |
1111 | | - | |
| 1122 | + | |
| 1123 | + | |
1112 | 1124 | | |
1113 | 1125 | | |
1114 | 1126 | | |
1115 | 1127 | | |
1116 | 1128 | | |
1117 | 1129 | | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1123 | 1147 | | |
1124 | | - | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1125 | 1157 | | |
1126 | 1158 | | |
1127 | 1159 | | |
| |||
1144 | 1176 | | |
1145 | 1177 | | |
1146 | 1178 | | |
1147 | | - | |
| 1179 | + | |
1148 | 1180 | | |
1149 | 1181 | | |
1150 | 1182 | | |
| |||
1153 | 1185 | | |
1154 | 1186 | | |
1155 | 1187 | | |
1156 | | - | |
| 1188 | + | |
1157 | 1189 | | |
1158 | 1190 | | |
1159 | 1191 | | |
1160 | 1192 | | |
1161 | 1193 | | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
| 1194 | + | |
1167 | 1195 | | |
1168 | 1196 | | |
1169 | 1197 | | |
1170 | 1198 | | |
1171 | 1199 | | |
1172 | 1200 | | |
1173 | | - | |
| 1201 | + | |
1174 | 1202 | | |
1175 | 1203 | | |
1176 | 1204 | | |
| |||
1179 | 1207 | | |
1180 | 1208 | | |
1181 | 1209 | | |
1182 | | - | |
| 1210 | + | |
1183 | 1211 | | |
1184 | 1212 | | |
1185 | 1213 | | |
1186 | | - | |
| 1214 | + | |
1187 | 1215 | | |
1188 | 1216 | | |
1189 | 1217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
0 commit comments