Repository navigation
Commit 988a57e
committed
fix(tuner): Harden _build_training_job_definition against missing attributes
- Use getattr with fallback for static_hyperparameters (fixes
test_build_training_job_definition_includes_internal_channels)
- Guard _prepare_model_trainer_for_tuning with isinstance check on
entry_script to avoid calling _build_driver_and_code_channels on
MagicMock model trainers
- Guard environment passthrough with isinstance(env, dict) check
- Guard VPC config passthrough with try/except for mock safety1 parent 123015d commit 988a57e
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
462 | 467 | | |
463 | 468 | | |
464 | 469 | | |
| |||
1478 | 1483 | | |
1479 | 1484 | | |
1480 | 1485 | | |
1481 | | - | |
| 1486 | + | |
1482 | 1487 | | |
1483 | 1488 | | |
1484 | 1489 | | |
1485 | | - | |
1486 | | - | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1487 | 1493 | | |
1488 | 1494 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1493 | 1503 | | |
1494 | 1504 | | |
0 commit comments