Commit 619c524
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 619c524
2 files changed
Lines changed: 98 additions & 61 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 | + | |
| 1138 | + | |
1144 | 1139 | | |
1145 | | - | |
| 1140 | + | |
1146 | 1141 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | 1142 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
1157 | 1158 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1162 | 1164 | | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1163 | 1170 | | |
1164 | 1171 | | |
1165 | | - | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
1166 | 1185 | | |
1167 | | - | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1168 | 1189 | | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1174 | 1194 | | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1178 | 1211 | | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1179 | 1215 | | |
1180 | 1216 | | |
1181 | | - | |
| 1217 | + | |
1182 | 1218 | | |
1183 | 1219 | | |
1184 | 1220 | | |
| |||
1840 | 1876 | | |
1841 | 1877 | | |
1842 | 1878 | | |
1843 | | - | |
| 1879 | + | |
1844 | 1880 | | |
1845 | 1881 | | |
1846 | 1882 | | |
| |||
2662 | 2698 | | |
2663 | 2699 | | |
2664 | 2700 | | |
2665 | | - | |
| 2701 | + | |
2666 | 2702 | | |
2667 | 2703 | | |
2668 | 2704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
| |||
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
243 | | - | |
| 242 | + | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
247 | | - | |
| 246 | + | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
| |||
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
293 | | - | |
| 292 | + | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | | - | |
| 296 | + | |
298 | 297 | | |
299 | 298 | | |
300 | 299 | | |
| |||
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
315 | | - | |
316 | 314 | | |
317 | 315 | | |
318 | 316 | | |
| |||
341 | 339 | | |
342 | 340 | | |
343 | 341 | | |
344 | | - | |
| 342 | + | |
345 | 343 | | |
346 | 344 | | |
347 | 345 | | |
| |||
355 | 353 | | |
356 | 354 | | |
357 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
| |||
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
372 | | - | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
376 | | - | |
| 378 | + | |
377 | 379 | | |
378 | 380 | | |
379 | 381 | | |
| |||
387 | 389 | | |
388 | 390 | | |
389 | 391 | | |
390 | | - | |
| 392 | + | |
391 | 393 | | |
392 | 394 | | |
393 | 395 | | |
| |||
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
410 | | - | |
| 412 | + | |
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
414 | | - | |
| 416 | + | |
415 | 417 | | |
416 | 418 | | |
417 | 419 | | |
| |||
442 | 444 | | |
443 | 445 | | |
444 | 446 | | |
445 | | - | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
474 | | - | |
| 475 | + | |
475 | 476 | | |
476 | 477 | | |
477 | 478 | | |
478 | | - | |
| 479 | + | |
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
| |||
0 commit comments