@@ -55,7 +55,7 @@ def artifact_file_path(tempdir):
5555metric_name = "Test-Local-Init-Log-Metric"
5656
5757
58- def test_local_run_with_load (sagemaker_session , artifact_file_path , clear_run_context ):
58+ def test_local_run_with_load (sagemaker_session , artifact_file_path ):
5959 exp_name = f"My-Local-Exp-{ name ()} "
6060 with cleanup_exp_resources (exp_names = [exp_name ], sagemaker_session = sagemaker_session ):
6161 # Run name is not provided, will create a new TC
@@ -87,7 +87,7 @@ def verify_load_run():
8787
8888
8989def test_two_local_run_init_with_same_run_name_and_different_exp_names (
90- sagemaker_session , clear_run_context
90+ sagemaker_session
9191):
9292 exp_name1 = f"my-two-local-exp1-{ name ()} "
9393 exp_name2 = f"my-two-local-exp2-{ name ()} "
@@ -127,7 +127,7 @@ def test_two_local_run_init_with_same_run_name_and_different_exp_names(
127127 ],
128128)
129129def test_run_name_vs_trial_component_name_edge_cases (
130- sagemaker_session , input_names , clear_run_context
130+ sagemaker_session , input_names
131131):
132132 exp_name , run_name , run_display_name = input_names
133133 with cleanup_exp_resources (exp_names = [exp_name ], sagemaker_session = sagemaker_session ):
@@ -181,7 +181,6 @@ def test_run_from_local_and_train_job_and_all_exp_cfg_match(
181181 execution_role ,
182182 sagemaker_client_config ,
183183 sagemaker_metrics_config ,
184- clear_run_context ,
185184):
186185 # Notes:
187186 # 1. The 1st Run created locally and its exp config was auto passed to the job
@@ -282,7 +281,6 @@ def test_run_from_local_and_train_job_and_exp_cfg_not_match(
282281 execution_role ,
283282 sagemaker_client_config ,
284283 sagemaker_metrics_config ,
285- clear_run_context ,
286284):
287285 # Notes:
288286 # 1. The 1st Run created locally and its exp config was auto passed to the job
@@ -369,7 +367,6 @@ def test_run_from_train_job_only(
369367 execution_role ,
370368 sagemaker_client_config ,
371369 sagemaker_metrics_config ,
372- clear_run_context ,
373370):
374371 # Notes:
375372 # 1. No Run created locally or specified in experiment config
@@ -420,7 +417,6 @@ def test_run_from_processing_job_and_override_default_exp_config(
420417 execution_role ,
421418 sagemaker_client_config ,
422419 sagemaker_metrics_config ,
423- clear_run_context ,
424420):
425421 # Notes:
426422 # 1. The 1st Run (run) created locally
@@ -500,7 +496,6 @@ def test_run_from_transform_job(
500496 execution_role ,
501497 sagemaker_client_config ,
502498 sagemaker_metrics_config ,
503- clear_run_context ,
504499):
505500 # Notes:
506501 # 1. The 1st Run (run) created locally
@@ -582,7 +577,6 @@ def test_load_run_auto_pass_in_exp_config_to_job(
582577 execution_role ,
583578 sagemaker_client_config ,
584579 sagemaker_metrics_config ,
585- clear_run_context ,
586580):
587581 # Notes:
588582 # 1. In local side, load the Run created previously and invoke a job under the load context
@@ -631,7 +625,7 @@ def test_load_run_auto_pass_in_exp_config_to_job(
631625 )
632626
633627
634- def test_list (run_obj , sagemaker_session , clear_run_context ):
628+ def test_list (run_obj , sagemaker_session ):
635629 tc1 = _TrialComponent .create (
636630 trial_component_name = f"non-run-tc1-{ name ()} " ,
637631 sagemaker_session = sagemaker_session ,
@@ -653,7 +647,7 @@ def test_list(run_obj, sagemaker_session, clear_run_context):
653647 assert run_tcs [0 ].experiment_config == run_obj .experiment_config
654648
655649
656- def test_list_twice (run_obj , sagemaker_session , clear_run_context ):
650+ def test_list_twice (run_obj , sagemaker_session ):
657651 tc1 = _TrialComponent .create (
658652 trial_component_name = f"non-run-tc1-{ name ()} " ,
659653 sagemaker_session = sagemaker_session ,
0 commit comments