Skip to content

Commit 3816a56

Browse files
authored
Classify canary_quick in integ tests (#677)
1 parent a815279 commit 3816a56

28 files changed

+31
-49
lines changed

tests/integ/test_byo_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def fm_serializer(data):
4040
return json.dumps(js)
4141

4242

43-
@pytest.mark.continuous_testing
43+
@pytest.mark.canary_quick
4444
def test_byo_estimator(sagemaker_session, region):
4545
"""Use Factorization Machines algorithm as an example here.
4646

tests/integ/test_chainer_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_training_with_additional_hyperparameters(sagemaker_session, chainer_ful
6666
return chainer.latest_training_job.name
6767

6868

69-
@pytest.mark.continuous_testing
69+
@pytest.mark.canary_quick
7070
@pytest.mark.regional_testing
7171
def test_attach_deploy(chainer_training_job, sagemaker_session):
7272
endpoint_name = 'test-chainer-attach-deploy-{}'.format(sagemaker_timestamp())

tests/integ/test_factorization_machines.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@
1818
import sys
1919
import time
2020

21-
import pytest
22-
2321
from sagemaker import FactorizationMachines, FactorizationMachinesModel
2422
from sagemaker.utils import unique_name_from_base
2523
from tests.integ import DATA_DIR, TRAINING_DEFAULT_TIMEOUT_MINUTES
2624
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2725

2826

29-
@pytest.mark.continuous_testing
3027
def test_factorization_machines(sagemaker_session):
3128
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
3229
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

tests/integ/test_horovod.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
horovod_dir = os.path.join(os.path.dirname(__file__), '..', 'data', 'horovod')
2828

2929

30+
@pytest.mark.canary_quick
3031
@pytest.mark.parametrize('instance_type', ['ml.c5.xlarge', 'ml.p3.2xlarge'])
3132
def test_horovod(sagemaker_session, instance_type, tmpdir):
3233

tests/integ/test_inference_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from sagemaker.utils import sagemaker_timestamp
2929

3030

31-
@pytest.mark.continuous_testing
31+
@pytest.mark.canary_quick
3232
@pytest.mark.regional_testing
3333
def test_inference_pipeline_model_deploy(sagemaker_session):
3434
sparkml_data_path = os.path.join(DATA_DIR, 'sparkml_model')

tests/integ/test_ipinsights.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from __future__ import absolute_import
1414

1515
import os
16-
import pytest
1716

1817
from sagemaker import IPInsights, IPInsightsModel
1918
from sagemaker.predictor import RealTimePredictor
@@ -25,7 +24,6 @@
2524
FEATURE_DIM = None
2625

2726

28-
@pytest.mark.continuous_testing
2927
def test_ipinsights(sagemaker_session):
3028
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
3129
data_path = os.path.join(DATA_DIR, 'ipinsights')

tests/integ/test_kmeans.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2727

2828

29-
@pytest.mark.continuous_testing
3029
def test_kmeans(sagemaker_session):
3130
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
3231
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

tests/integ/test_knn.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@
1818
import sys
1919
import time
2020

21-
import pytest
22-
2321
from sagemaker import KNN, KNNModel
2422
from sagemaker.utils import unique_name_from_base
2523
from tests.integ import DATA_DIR, TRAINING_DEFAULT_TIMEOUT_MINUTES
2624
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2725

2826

29-
@pytest.mark.continuous_testing
3027
def test_knn_regressor(sagemaker_session):
3128
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
3229
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

tests/integ/test_lda.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import os
1616

1717
import numpy as np
18-
import pytest
1918

2019
from sagemaker import LDA, LDAModel
2120
from sagemaker.amazon.common import read_records
@@ -25,7 +24,6 @@
2524
from tests.integ.record_set import prepare_record_set_from_local_files
2625

2726

28-
@pytest.mark.continuous_testing
2927
def test_lda(sagemaker_session):
3028
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
3129
data_path = os.path.join(DATA_DIR, 'lda')

tests/integ/test_linear_learner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2828

2929

30-
@pytest.mark.continuous_testing
30+
@pytest.mark.canary_quick
3131
def test_linear_learner(sagemaker_session):
3232
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
3333
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

0 commit comments

Comments
 (0)