Skip to content

Commit fd90b1d

Browse files
fix: integs - pytorch transformer deps and add test retry (#3849)
1 parent 1ae7ce9 commit fd90b1d

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
transformers
2-
datasets
1+
transformers<=4.28.1
2+
datasets<=2.12.0

tests/integ/test_clarify_model_monitor.py

+2
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def test_bias_monitor(sagemaker_session, scheduled_bias_monitor, endpoint_name,
291291
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
292292
reason="ModelMonitoring is not yet supported in this region.",
293293
)
294+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
294295
def test_run_bias_monitor(
295296
scheduled_bias_monitor, sagemaker_session, endpoint_name, ground_truth_input, upload_actual_data
296297
):
@@ -400,6 +401,7 @@ def test_explainability_monitor(sagemaker_session, scheduled_explainability_moni
400401
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
401402
reason="ModelMonitoring is not yet supported in this region.",
402403
)
404+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
403405
def test_run_explainability_monitor(
404406
scheduled_explainability_monitor,
405407
sagemaker_session,

tests/integ/test_inference_pipeline.py

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def test_inference_pipeline_model_deploy(sagemaker_session, cpu_instance_type):
151151

152152

153153
@pytest.mark.slow_test
154+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
154155
def test_inference_pipeline_model_deploy_and_update_endpoint(
155156
sagemaker_session, cpu_instance_type, alternative_cpu_instance_type
156157
):

tests/integ/test_model_quality_monitor.py

+2
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def test_model_quality_monitor(
235235
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
236236
reason="ModelMonitoring is not yet supported in this region.",
237237
)
238+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
238239
def test_run_model_quality_monitor(
239240
scheduled_model_quality_monitor,
240241
sagemaker_session,
@@ -260,6 +261,7 @@ def test_run_model_quality_monitor(
260261
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
261262
reason="ModelMonitoring is not yet supported in this region.",
262263
)
264+
@pytest.mark.flaky(reruns=5, reruns_delay=2)
263265
def test_run_model_quality_monitor_baseline(
264266
sagemaker_session,
265267
endpoint_name,

0 commit comments

Comments
 (0)