Skip to content

Commit c5cc224

Browse files
icywang86ruiRui Wang Napieralski
and
Rui Wang Napieralski
authored
change: mark top 10 slow tests (#2149)
Co-authored-by: Rui Wang Napieralski <[email protected]>
1 parent f15343c commit c5cc224

7 files changed

+10
-0
lines changed

tests/integ/test_auto_ml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
}
4848

4949

50+
@pytest.mark.slow_test
5051
@pytest.mark.skipif(
5152
tests.integ.test_region() in tests.integ.NO_AUTO_ML_REGIONS,
5253
reason="AutoML is not supported in the region yet.",

tests/integ/test_clarify_model_monitor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def test_bias_monitor(sagemaker_session, scheduled_bias_monitor, endpoint_name,
285285
monitor.delete_monitoring_schedule()
286286

287287

288+
@pytest.mark.slow_test
288289
@pytest.mark.skipif(
289290
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
290291
reason="ModelMonitoring is not yet supported in this region.",
@@ -393,6 +394,7 @@ def test_explainability_monitor(sagemaker_session, scheduled_explainability_moni
393394
monitor.delete_monitoring_schedule()
394395

395396

397+
@pytest.mark.slow_test
396398
@pytest.mark.skipif(
397399
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
398400
reason="ModelMonitoring is not yet supported in this region.",

tests/integ/test_inference_pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def test_inference_pipeline_model_deploy(sagemaker_session, cpu_instance_type):
149149
assert "Could not find model" in str(exception.value)
150150

151151

152+
@pytest.mark.slow_test
152153
def test_inference_pipeline_model_deploy_and_update_endpoint(
153154
sagemaker_session, cpu_instance_type, alternative_cpu_instance_type
154155
):

tests/integ/test_model_quality_monitor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def test_run_model_quality_monitor(
254254
monitor.delete_monitoring_schedule()
255255

256256

257+
@pytest.mark.slow_test
257258
@pytest.mark.skipif(
258259
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
259260
reason="ModelMonitoring is not yet supported in this region.",

tests/integ/test_multidatamodel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def test_multi_data_model_deploy_pretrained_models_local_mode(container_image, s
262262
assert "Could not find endpoint" in str(exception.value)
263263

264264

265+
@pytest.mark.slow_test
265266
@pytest.mark.skipif(
266267
tests.integ.test_region() != "us-east-2",
267268
reason="Pulling the base image is currently limited to us-east-2.",
@@ -481,6 +482,7 @@ def __rcf_training_job(
481482
return rcf_model
482483

483484

485+
@pytest.mark.slow_test
484486
@pytest.mark.skipif(
485487
tests.integ.test_region() != "us-east-2",
486488
reason="Pulling the base image is currently limited to us-east-2.",

tests/integ/test_mxnet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def test_attach_deploy(mxnet_training_job, sagemaker_session, cpu_instance_type)
8383
assert result is not None
8484

8585

86+
@pytest.mark.slow_test
8687
def test_deploy_estimator_with_different_instance_types(
8788
mxnet_training_job,
8889
sagemaker_session,
@@ -258,6 +259,7 @@ def test_deploy_model_with_tags_and_kms(
258259
assert endpoint_config["KmsKeyId"] == kms_key_arn
259260

260261

262+
@pytest.mark.slow_test
261263
def test_deploy_model_and_update_endpoint(
262264
mxnet_training_job,
263265
sagemaker_session,

tests/integ/test_tuner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ def test_stop_tuning_job(sagemaker_session, cpu_instance_type):
523523
assert desc["HyperParameterTuningJobStatus"] == "Stopping"
524524

525525

526+
@pytest.mark.slow_test
526527
@pytest.mark.canary_quick
527528
def test_tuning_mxnet(
528529
sagemaker_session,

0 commit comments

Comments
 (0)