@@ -47,7 +47,6 @@ def _get_test_config():
4747 "s3_output_path" : f"s3://sagemaker-{ _REGION } -{ account_id } /model-evaluation/output-artifacts/" ,
4848 "mlflow_resource_arn" : f"arn:aws:sagemaker:{ _REGION } :{ account_id } :mlflow-app/app-TTAUWUNMUHH6" ,
4949 "model_package_group" : f"arn:aws:sagemaker:{ _REGION } :{ account_id } :model-package-group/openai-reasoning-gpt-oss-20b-mtrl-mpg" ,
50- "role" : f"arn:aws:iam::{ account_id } :role/Admin" ,
5150 "region" : _REGION ,
5251 "account_id" : account_id ,
5352 }
@@ -172,7 +171,6 @@ def test_bedrock_agent_config_fields(self, mtrl_trainer, test_config):
172171 dataset = test_config ["dataset" ],
173172 s3_output_path = f'{ test_config ["s3_output_path" ]} integ-fields-bedrock/' ,
174173 mlflow_resource_arn = test_config ["mlflow_resource_arn" ],
175- role = test_config ["role" ],
176174 region = test_config ["region" ],
177175 agent_config = test_config ["agent_arn" ],
178176 agent_qualifier = "PROD" ,
@@ -182,8 +180,7 @@ def test_bedrock_agent_config_fields(self, mtrl_trainer, test_config):
182180 evaluator ._resolve_agent_arn ()
183181
184182 ctx = evaluator ._build_template_context (
185- aws_context = {"region" : test_config ["region" ], "account_id" : test_config ["account_id" ],
186- "role_arn" : test_config ["role" ]},
183+ aws_context = {"region" : test_config ["region" ], "account_id" : test_config ["account_id" ]},
187184 artifacts = {},
188185 model_package_group_arn = test_config ["model_package_group" ],
189186 )
@@ -208,7 +205,6 @@ def test_lambda_agent_config_fields(self, mtrl_trainer, test_config):
208205 dataset = test_config ["dataset" ],
209206 s3_output_path = f'{ test_config ["s3_output_path" ]} integ-fields-lambda/' ,
210207 mlflow_resource_arn = test_config ["mlflow_resource_arn" ],
211- role = test_config ["role" ],
212208 region = test_config ["region" ],
213209 agent_config = lambda_arn ,
214210 )
@@ -217,8 +213,7 @@ def test_lambda_agent_config_fields(self, mtrl_trainer, test_config):
217213 evaluator ._resolve_agent_arn ()
218214
219215 ctx = evaluator ._build_template_context (
220- aws_context = {"region" : test_config ["region" ], "account_id" : test_config ["account_id" ],
221- "role_arn" : test_config ["role" ]},
216+ aws_context = {"region" : test_config ["region" ], "account_id" : test_config ["account_id" ]},
222217 artifacts = {},
223218 model_package_group_arn = test_config ["model_package_group" ],
224219 )
@@ -239,7 +234,6 @@ def test_model_package_config_fields(self, mtrl_trainer, test_config):
239234 dataset = test_config ["dataset" ],
240235 s3_output_path = f'{ test_config ["s3_output_path" ]} integ-fields-mpc/' ,
241236 mlflow_resource_arn = test_config ["mlflow_resource_arn" ],
242- role = test_config ["role" ],
243237 region = test_config ["region" ],
244238 agent_config = test_config ["agent_arn" ],
245239 )
@@ -248,8 +242,7 @@ def test_model_package_config_fields(self, mtrl_trainer, test_config):
248242 evaluator ._resolve_agent_arn ()
249243
250244 ctx = evaluator ._build_template_context (
251- aws_context = {"region" : test_config ["region" ], "account_id" : test_config ["account_id" ],
252- "role_arn" : test_config ["role" ]},
245+ aws_context = {"region" : test_config ["region" ], "account_id" : test_config ["account_id" ]},
253246 artifacts = {},
254247 model_package_group_arn = test_config ["model_package_group" ],
255248 )
@@ -280,7 +273,6 @@ def test_evaluator_construction_with_trainer(self, mtrl_trainer, test_config):
280273 dataset = test_config ["dataset" ],
281274 s3_output_path = f'{ test_config ["s3_output_path" ]} integ-construct/' ,
282275 mlflow_resource_arn = test_config ["mlflow_resource_arn" ],
283- role = test_config ["role" ],
284276 region = test_config ["region" ],
285277 agent_config = test_config ["agent_arn" ],
286278 )
@@ -298,7 +290,6 @@ def test_evaluator_construction_with_base_model(self, test_config):
298290 s3_output_path = f'{ test_config ["s3_output_path" ]} integ-base/' ,
299291 agent_config = test_config ["agent_arn" ],
300292 mlflow_resource_arn = test_config ["mlflow_resource_arn" ],
301- role = test_config ["role" ],
302293 region = test_config ["region" ],
303294 )
304295
0 commit comments