@@ -87,7 +87,7 @@ def test_sklearn_processor_with_required_parameters(
87
87
88
88
processor .run (entry_point = "/local/path/to/processing_code.py" )
89
89
90
- expected_args = _get_expected_args (processor ._current_job_name )
90
+ expected_args = _get_expected_args (processor ._current_job_name , "s3://abcd/ef" )
91
91
92
92
sklearn_image_uri = (
93
93
"246618743249.dkr.ecr.us-west-2.amazonaws.com/sagemaker-scikit-learn:{}-cpu-py3"
@@ -622,18 +622,30 @@ def _get_script_processor(sagemaker_session):
622
622
def _get_expected_args (job_name , code_s3_uri = "mocked_s3_uri_from_upload_data" ):
623
623
return {
624
624
"inputs" : [
625
+ {
626
+ "InputName" : "input-1" ,
627
+ "AppManaged" : False ,
628
+ "S3Input" : {
629
+ "S3Uri" : f"{ code_s3_uri } /{ job_name } /source/sourcedir.tar.gz" ,
630
+ "LocalPath" : "/opt/ml/processing/input/code/payload/" ,
631
+ "S3DataType" : "S3Prefix" ,
632
+ "S3InputMode" : "File" ,
633
+ "S3DataDistributionType" : "FullyReplicated" ,
634
+ "S3CompressionType" : "None" ,
635
+ },
636
+ },
625
637
{
626
638
"InputName" : "code" ,
627
639
"AppManaged" : False ,
628
640
"S3Input" : {
629
- "S3Uri" : code_s3_uri ,
641
+ "S3Uri" : f" { code_s3_uri } / { job_name } /source/runproc.sh" ,
630
642
"LocalPath" : "/opt/ml/processing/input/code" ,
631
643
"S3DataType" : "S3Prefix" ,
632
644
"S3InputMode" : "File" ,
633
645
"S3DataDistributionType" : "FullyReplicated" ,
634
646
"S3CompressionType" : "None" ,
635
647
},
636
- }
648
+ },
637
649
],
638
650
"output_config" : {"Outputs" : []},
639
651
"job_name" : job_name ,
@@ -647,7 +659,7 @@ def _get_expected_args(job_name, code_s3_uri="mocked_s3_uri_from_upload_data"):
647
659
"stopping_condition" : None ,
648
660
"app_specification" : {
649
661
"ImageUri" : CUSTOM_IMAGE_URI ,
650
- "ContainerEntrypoint" : ["python3 " , "/opt/ml/processing/input/code/processing_code.py " ],
662
+ "ContainerEntrypoint" : ["/bin/bash " , "/opt/ml/processing/input/code/runproc.sh " ],
651
663
},
652
664
"environment" : None ,
653
665
"network_config" : None ,
0 commit comments