@@ -1360,27 +1360,20 @@ def test_pipeline_node_with_default_component(self, client: MLClient, randstr: C
13601360 )
13611361
13621362
1363-
1364- @pytest .mark .usefixtures (
1365- "recorded_test" ,
1366- "mock_code_hash" ,
1367- "enable_pipeline_private_preview_features" ,
1368- "mock_asset_name" ,
1369- "mock_component_hash" ,
1370- "enable_environment_id_arm_expansion" ,
1371- )
1372- @pytest .mark .timeout (timeout = _PIPELINE_JOB_LONG_RUNNING_TIMEOUT_SECOND , method = _PYTEST_TIMEOUT_METHOD )
1363+ @pytest .mark .usefixtures ("enable_pipeline_private_preview_features" )
13731364@pytest .mark .e2etest
13741365@pytest .mark .pipeline_test
13751366@pytest .mark .skipif (condition = not is_live (), reason = "no need to run in playback mode" )
1376- class TestPipelineJobLongRunning (AzureRecordedTestCase ):
1367+ @pytest .mark .timeout (timeout = _PIPELINE_JOB_LONG_RUNNING_TIMEOUT_SECOND , method = _PYTEST_TIMEOUT_METHOD )
1368+ class TestPipelineJobLongRunning :
13771369 """Long-running tests that require pipeline job completed."""
13781370 def test_pipeline_job_get_child_run (self , client : MLClient , randstr : Callable [[str ], str ]):
13791371 pipeline_job = load_job (
13801372 source = "./tests/test_configs/pipeline_jobs/helloworld_pipeline_job_quick_with_output.yml" ,
13811373 params_override = [{"name" : randstr ("name" )}],
13821374 )
13831375 job = client .jobs .create_or_update (pipeline_job )
1376+ print ("pipeline job name:" , job .name )
13841377 wait_until_done (client , job )
13851378 child_job = next (
13861379 job
@@ -1400,6 +1393,7 @@ def test_pipeline_job_download(
14001393 params_override = [{"name" : randstr ("job_name" )}],
14011394 )
14021395 )
1396+ print ("pipeline job name:" , job .name )
14031397 wait_until_done (client , job )
14041398 client .jobs .download (name = job .name , download_path = tmp_path )
14051399 artifact_dir = tmp_path / "artifacts"
@@ -1415,6 +1409,7 @@ def test_pipeline_job_child_run_download(
14151409 params_override = [{"name" : randstr ("job_name" )}],
14161410 )
14171411 )
1412+ print ("pipeline job name:" , job .name )
14181413 wait_until_done (client , job )
14191414 child_job = next (
14201415 job
@@ -1434,7 +1429,6 @@ def test_pipeline_job_child_run_download(
14341429 assert output_dir .exists ()
14351430 assert next (output_dir .iterdir (), None ), "No artifacts were downloaded"
14361431
1437- @pytest .mark .disable_mock_code_hash
14381432 def test_reused_pipeline_child_job_download (
14391433 self ,
14401434 client : MLClient ,
@@ -1445,15 +1439,15 @@ def test_reused_pipeline_child_job_download(
14451439
14461440 # ensure previous job exists for reuse
14471441 job_name = randstr ("job_name" )
1448- print (f "previous job name: { job_name } " )
1442+ print ("previous job name:" , job_name )
14491443 previous_job = client .jobs .create_or_update (
14501444 load_job (source = pipeline_spec_path , params_override = [{"name" : job_name }])
14511445 )
14521446 wait_until_done (client , previous_job )
14531447
14541448 # submit a new job that will reuse previous job
14551449 new_job_name = randstr ("new_job_name" )
1456- print (f "new job name: { new_job_name } " )
1450+ print ("new job name:" , new_job_name )
14571451 new_job = client .jobs .create_or_update (
14581452 load_job (pipeline_spec_path , params_override = [{"name" : new_job_name }]),
14591453 )
0 commit comments