Skip to content

Commit 95014ba

Browse files
authored
change: add tests to quick canary (#1228)
1 parent 335fd60 commit 95014ba

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

tests/integ/test_auto_ml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
tests.integ.test_region() in tests.integ.NO_AUTO_ML_REGIONS,
5050
reason="AutoML is not supported in the region yet.",
5151
)
52+
@pytest.mark.canary_quick
5253
def test_auto_ml_fit(sagemaker_session):
5354
auto_ml = AutoML(
5455
role=ROLE,
@@ -215,6 +216,7 @@ def test_best_candidate(sagemaker_session):
215216
tests.integ.test_region() in tests.integ.NO_AUTO_ML_REGIONS,
216217
reason="AutoML is not supported in the region yet.",
217218
)
219+
@pytest.mark.canary_quick
218220
def test_deploy_best_candidate(sagemaker_session, cpu_instance_type):
219221
auto_ml_utils.create_auto_ml_job_if_not_exist(sagemaker_session)
220222

tests/integ/test_debugger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import os
1616
import uuid
1717

18+
import pytest
19+
1820
from sagemaker.debugger import Rule
1921
from sagemaker.debugger import DebuggerHookConfig
2022
from sagemaker.debugger import TensorBoardOutputConfig
@@ -365,6 +367,7 @@ def test_mxnet_with_tensorboard_output_config(
365367
_wait_and_assert_that_no_rule_jobs_errored(training_job=mx.latest_training_job)
366368

367369

370+
@pytest.mark.canary_quick
368371
def test_mxnet_with_all_rules_and_configs(sagemaker_session, mxnet_full_version, cpu_instance_type):
369372
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
370373
rules = [

tests/integ/test_experiments_analytics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
import uuid
44
import time
55

6+
import pytest
7+
68
from sagemaker.analytics import ExperimentAnalytics
79

810

11+
@pytest.mark.canary_quick
912
def test_experiment_analytics(sagemaker_session):
1013
sm = sagemaker_session.sagemaker_client
1114

tests/integ/test_model_monitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
import json
1616
import os
17+
import uuid
1718

1819
import pytest
19-
import uuid
2020

2121
import tests.integ
2222
import tests.integ.timeout
@@ -270,6 +270,7 @@ def updated_output_kms_key(sagemaker_session):
270270
tests.integ.test_region() in tests.integ.NO_MODEL_MONITORING_REGIONS,
271271
reason="ModelMonitoring is not yet supported in this region.",
272272
)
273+
@pytest.mark.canary_quick
273274
def test_default_monitor_suggest_baseline_and_create_monitoring_schedule_with_customizations(
274275
sagemaker_session, output_kms_key, volume_kms_key, predictor
275276
):

tests/integ/test_processing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def test_sklearn(sagemaker_session, sklearn_full_version, cpu_instance_type):
133133
assert ROLE in job_description["RoleArn"]
134134

135135

136+
@pytest.mark.canary_quick
136137
def test_sklearn_with_customizations(
137138
sagemaker_session, image_uri, sklearn_full_version, cpu_instance_type, output_kms_key
138139
):
@@ -347,6 +348,7 @@ def test_sklearn_with_no_inputs_or_outputs(
347348
assert job_description["StoppingCondition"] == {"MaxRuntimeInSeconds": 3600}
348349

349350

351+
@pytest.mark.canary_quick
350352
def test_script_processor(sagemaker_session, image_uri, cpu_instance_type, output_kms_key):
351353
input_file_path = os.path.join(DATA_DIR, "dummy_input.txt")
352354

@@ -474,6 +476,7 @@ def test_script_processor_with_no_inputs_or_outputs(
474476
assert job_description["StoppingCondition"] == {"MaxRuntimeInSeconds": 3600}
475477

476478

479+
@pytest.mark.canary_quick
477480
def test_processor(sagemaker_session, image_uri, cpu_instance_type, output_kms_key):
478481
script_path = os.path.join(DATA_DIR, "dummy_script.py")
479482

0 commit comments

Comments
 (0)