File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 118
118
"eu-south-1" ,
119
119
]
120
120
NO_MODEL_MONITORING_REGIONS = ["me-south-1" , "af-south-1" , "eu-south-1" ]
121
+ EDGE_PACKAGING_SUPPORTED_REGIONS = [
122
+ "us-east-2" ,
123
+ "us-west-2" ,
124
+ "us-east-1" ,
125
+ "eu-west-1" ,
126
+ "ap-northeast-1" ,
127
+ "eu-central-1" ,
128
+ ]
129
+ # Data parallelism need to be tested with p3.16xlarge.
130
+ # The instance type is expensive and not supported in all the regions.
131
+ # Limiting the test to run in IAD and CMH
132
+ DATA_PARALLEL_TESTING_REGIONS = ["us-east-2" , "us-east-1" ]
121
133
122
134
123
135
EFS_TEST_ENABLED_REGION = []
Original file line number Diff line number Diff line change 17
17
import pytest
18
18
19
19
from sagemaker .mxnet .estimator import MXNet
20
- from tests .integ import DATA_DIR , TRAINING_DEFAULT_TIMEOUT_MINUTES
20
+ from tests .integ import (
21
+ DATA_DIR ,
22
+ TRAINING_DEFAULT_TIMEOUT_MINUTES ,
23
+ EDGE_PACKAGING_SUPPORTED_REGIONS ,
24
+ test_region ,
25
+ )
21
26
from tests .integ .timeout import timeout
22
27
23
28
@@ -53,6 +58,10 @@ def mxnet_training_job(
53
58
return mx .latest_training_job .name
54
59
55
60
61
+ @pytest .mark .skipif (
62
+ test_region () not in EDGE_PACKAGING_SUPPORTED_REGIONS ,
63
+ reason = "Edge packaging isn't supported in that specific region." ,
64
+ )
56
65
def test_edge_packaging_job (mxnet_training_job , sagemaker_session ):
57
66
estimator = MXNet .attach (mxnet_training_job , sagemaker_session = sagemaker_session )
58
67
model = estimator .compile_model (
Original file line number Diff line number Diff line change 14
14
15
15
import os
16
16
17
+ import pytest
18
+
17
19
import sagemaker .utils
18
20
import tests .integ as integ
19
21
26
28
)
27
29
28
30
31
+ @pytest .mark .skipif (
32
+ integ .test_region () not in integ .DATA_PARALLEL_TESTING_REGIONS ,
33
+ reason = "Only allow this test to run in IAD and CMH to limit usage of p3.16xlarge" ,
34
+ )
29
35
def test_smdataparallel_pt_mnist (
30
36
sagemaker_session ,
31
37
pytorch_training_latest_version ,
Original file line number Diff line number Diff line change 14
14
15
15
import os
16
16
17
+ import pytest
18
+
17
19
import sagemaker .utils
18
20
import tests .integ as integ
19
21
25
27
)
26
28
27
29
30
+ @pytest .mark .skipif (
31
+ integ .test_region () not in integ .DATA_PARALLEL_TESTING_REGIONS ,
32
+ reason = "Only allow this test to run in IAD and CMH to limit usage of p3.16xlarge" ,
33
+ )
28
34
def test_smdataparallel_tf_mnist (
29
35
sagemaker_session ,
30
36
tensorflow_training_latest_version ,
You can’t perform that action at this time.
0 commit comments