Skip to content

Commit 5c12d5a

Browse files
authored
Merge branch 'master' into framework-versioning
2 parents 46954ad + 17c6435 commit 5c12d5a

9 files changed

+22
-1
lines changed

buildspec-slowtests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 0.2
2+
3+
phases:
4+
build:
5+
commands:
6+
- IGNORE_COVERAGE=-
7+
8+
# slow tests
9+
- start_time=`date +%s`
10+
- execute-command-if-has-matching-changes "tox -e py38 -- tests/integ -m slow_test -n 10 --durations 0" "tests/integ" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec-slowtests.yml"
11+
- ./ci-scripts/displaytime.sh 'py38 slow tests' $start_time

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616

1717
- start_time=`date +%s`
1818
- |
19-
execute-command-if-has-matching-changes "env -u AWS_DEFAULT_REGION tox -e py38 -- tests/integ -m \"not local_mode and not cron\" -n 384 --reruns 3 --reruns-delay 15 --durations 50 --boto-config '{\"region_name\": \"us-east-2\"}'" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "src/sagemaker/image_uri_config/*.json" "setup.py" "setup.cfg" "buildspec.yml"
19+
execute-command-if-has-matching-changes "env -u AWS_DEFAULT_REGION tox -e py38 -- tests/integ -m \"not local_mode and not cron and not slow_test\" -n 384 --reruns 3 --reruns-delay 15 --durations 50 --boto-config '{\"region_name\": \"us-east-2\"}'" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "src/sagemaker/image_uri_config/*.json" "setup.py" "setup.cfg" "buildspec.yml"
2020
- ./ci-scripts/displaytime.sh 'py38 tests/integ' $start_time
2121

2222
post_build:

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)