File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -506,15 +506,17 @@ def test_training_job_with_debugger(
506
506
except WaiterError :
507
507
pass
508
508
execution_steps = execution .list_steps ()
509
- training_job_arn = execution_steps [0 ]["Metadata" ]["TrainingJob" ]["Arn" ]
510
- job_description = sagemaker_session .sagemaker_client .describe_training_job (
511
- TrainingJobName = training_job_arn .split ("/" )[1 ]
512
- )
513
509
514
510
assert len (execution_steps ) == 1
511
+ assert execution_steps [0 ].get ("FailureReason" , "" ) == ""
515
512
assert execution_steps [0 ]["StepName" ] == "pytorch-train"
516
513
assert execution_steps [0 ]["StepStatus" ] == "Succeeded"
517
514
515
+ training_job_arn = execution_steps [0 ]["Metadata" ]["TrainingJob" ]["Arn" ]
516
+ job_description = sagemaker_session .sagemaker_client .describe_training_job (
517
+ TrainingJobName = training_job_arn .split ("/" )[1 ]
518
+ )
519
+
518
520
for index , rule in enumerate (rules ):
519
521
config = job_description ["DebugRuleConfigurations" ][index ]
520
522
assert config ["RuleConfigurationName" ] == rule .name
You can’t perform that action at this time.
0 commit comments