Skip to content

Commit e44268b

Browse files
authored
Merge branch 'master' into fix/tgi-image-uri-unit-tests
2 parents 56b74cb + 6d52a81 commit e44268b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

requirements/extras/test_requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ fastapi==0.115.4
5050
nest-asyncio
5151
sagemaker-mlflow>=0.1.0
5252
deepdiff>=8.0.0
53+
orderly-set<5.4.0

src/sagemaker/processing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,15 @@ def _normalize_args(
314314
"code argument has to be a valid S3 URI or local file path "
315315
+ "rather than a pipeline variable"
316316
)
317+
317318
if arguments is not None:
318319
processed_arguments = []
319320
for arg in arguments:
320321
if isinstance(arg, PipelineVariable):
321322
processed_value = json.dumps(arg.expr)
322323
processed_arguments.append(processed_value)
323324
else:
324-
processed_arguments.append(str(arg))
325+
processed_arguments.append(arg)
325326
arguments = processed_arguments
326327

327328
self._current_job_name = self._generate_current_job_name(job_name=job_name)

tests/unit/sagemaker/workflow/test_processing_step.py

+3
Original file line numberDiff line numberDiff line change
@@ -824,12 +824,14 @@ def test_spark_processor(spark_processor, processing_input, pipeline_session):
824824
processor, run_inputs = spark_processor
825825
processor.sagemaker_session = pipeline_session
826826
processor.role = ROLE
827+
827828
arguments_output = [
828829
"--input",
829830
"input-data-uri",
830831
"--output",
831832
'{"Get": "Parameters.MyArgOutput"}',
832833
]
834+
833835
run_inputs["inputs"] = processing_input
834836

835837
step_args = processor.run(**run_inputs)
@@ -1024,6 +1026,7 @@ def test_spark_processor_local_code(spark_processor, processing_input, pipeline_
10241026
processor, run_inputs = spark_processor
10251027
processor.sagemaker_session = pipeline_session
10261028
processor.role = ROLE
1029+
10271030
arguments_output = [
10281031
"--input",
10291032
"input-data-uri",

0 commit comments

Comments
 (0)