Commit 51d3fae
committed
gpu: stabilize tests and initialization via GCS tarballs and execution fixes
This commit resolves several flakiness and execution issues identified during the 2.x-rocky testing cycles, ensuring reliable cluster initialization and robust test execution.
* **cuDNN Tarball Caching**: The NVIDIA developer CDN (developer.download.nvidia.com) frequently flakes, causing `dnf` to fail when downloading `cuda-rhel8-x86_64` repository metadata. This resulted in the `execute_with_retries` loop timing out the entire Dataproc cluster initialization. `install_nvidia_cudnn` now accepts an installation method argument (`tarball` or `package`), defaulting to `tarball`. This leverages the existing GCS package cache (`cache_fetched_package`) to fetch the cuDNN tarball directly, completely bypassing the OS package manager and preventing repository metadata flakes.
* **Conda Environment Execution**: Refactored Python integration test assertions (`verify_pytorch`, `verify_tensorflow`, `verify_rapids`) in `test_gpu.py` to locate Conda Python binaries dynamically using `find /opt/conda -maxdepth 6` rather than relying on `conda activate`. This resolves SSH parsing, quoting, and unbound variable issues (`$PS1`) that caused tests to fail.
* **RAPIDS Integration Test**: Added `verify_rapids` validation check in `test_gpu.py` to ensure the RAPIDS Conda environment is successfully created and usable.
* **Local Test Authentication**: Updated `test_gpu.py` `setUpClass` to explicitly map `PROJECT_ID` and `REGION` to `CLOUDSDK_CORE_PROJECT` and `CLOUDSDK_COMPUTE_REGION`. This is required for the Podman sandbox to properly pass through Application Default Credentials (ADC) to `gsutil` for bucket creation during local test runs.
* **Restored Rocky 9 Tests**: Removed numerous `skipTest` blocks for Rocky 9 since the base Dataproc images have now been updated.1 parent a4c1476 commit 51d3fae
2 files changed
Lines changed: 101 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1144 | 1138 | | |
1145 | | - | |
| 1139 | + | |
1146 | 1140 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | 1141 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1157 | 1157 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1162 | 1163 | | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1163 | 1169 | | |
1164 | 1170 | | |
1165 | | - | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
1166 | 1184 | | |
1167 | | - | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1168 | 1188 | | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1174 | 1193 | | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1178 | 1210 | | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1179 | 1214 | | |
1180 | 1215 | | |
1181 | | - | |
| 1216 | + | |
1182 | 1217 | | |
1183 | 1218 | | |
1184 | 1219 | | |
| |||
1840 | 1875 | | |
1841 | 1876 | | |
1842 | 1877 | | |
1843 | | - | |
| 1878 | + | |
1844 | 1879 | | |
1845 | 1880 | | |
1846 | 1881 | | |
| |||
2662 | 2697 | | |
2663 | 2698 | | |
2664 | 2699 | | |
2665 | | - | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
2666 | 2705 | | |
2667 | 2706 | | |
2668 | 2707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
210 | | - | |
| 211 | + | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
214 | | - | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
| |||
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | | - | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
344 | | - | |
| 343 | + | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
| |||
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
358 | 361 | | |
359 | 362 | | |
360 | 363 | | |
| |||
369 | 372 | | |
370 | 373 | | |
371 | 374 | | |
372 | | - | |
| 375 | + | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
376 | | - | |
| 379 | + | |
377 | 380 | | |
378 | 381 | | |
379 | 382 | | |
| |||
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| 394 | + | |
391 | 395 | | |
392 | 396 | | |
393 | 397 | | |
| |||
407 | 411 | | |
408 | 412 | | |
409 | 413 | | |
410 | | - | |
| 414 | + | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
414 | | - | |
| 418 | + | |
415 | 419 | | |
416 | 420 | | |
417 | 421 | | |
| |||
442 | 446 | | |
443 | 447 | | |
444 | 448 | | |
445 | | - | |
446 | 449 | | |
447 | 450 | | |
448 | 451 | | |
| |||
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
474 | | - | |
| 477 | + | |
475 | 478 | | |
476 | 479 | | |
477 | 480 | | |
478 | | - | |
| 481 | + | |
479 | 482 | | |
480 | 483 | | |
481 | 484 | | |
| |||
0 commit comments