Skip to content

Commit 773d0f7

Browse files
committed
change image region to us-east-2
1 parent 248c564 commit 773d0f7

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

tests/data/multimodel/container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM 142577830533.dkr.ecr.us-west-2.amazonaws.com/ubuntu:16.04
1+
FROM 142577830533.dkr.ecr.us-east-2.amazonaws.com/ubuntu:16.04
22

33
# Set a docker label to advertise multi-model support on the container
44
LABEL com.amazonaws.sagemaker.capabilities.multi-models=true

tests/integ/test_multidatamodel.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import pytest
2323
from botocore.exceptions import ClientError
2424

25+
import tests
26+
2527
from sagemaker import utils
2628
from sagemaker.amazon.randomcutforest import RandomCutForest
2729
from sagemaker.deserializers import StringDeserializer
@@ -132,6 +134,10 @@ def _ecr_login(ecr_client):
132134
return username, password
133135

134136

137+
@pytest.mark.skipif(
138+
tests.integ.test_region() != "us-east-2",
139+
reason="Pulling the base image is currently limited to us-east-2.",
140+
)
135141
def test_multi_data_model_deploy_pretrained_models(
136142
container_image, sagemaker_session, cpu_instance_type
137143
):
@@ -192,6 +198,10 @@ def test_multi_data_model_deploy_pretrained_models(
192198

193199

194200
@pytest.mark.local_mode
201+
@pytest.mark.skipif(
202+
tests.integ.test_region() != "us-east-2",
203+
reason="Pulling the base image is currently limited to us-east-2.",
204+
)
195205
def test_multi_data_model_deploy_pretrained_models_local_mode(container_image, sagemaker_session):
196206
timestamp = sagemaker_timestamp()
197207
endpoint_name = "test-multimodel-endpoint-{}".format(timestamp)
@@ -252,6 +262,10 @@ def test_multi_data_model_deploy_pretrained_models_local_mode(container_image, s
252262
assert "Could not find endpoint" in str(exception.value)
253263

254264

265+
@pytest.mark.skipif(
266+
tests.integ.test_region() != "us-east-2",
267+
reason="Pulling the base image is currently limited to us-east-2.",
268+
)
255269
def test_multi_data_model_deploy_trained_model_from_framework_estimator(
256270
container_image,
257271
sagemaker_session,
@@ -366,6 +380,10 @@ def _mxnet_training_job(
366380
return mx.create_model(image_uri=container_image)
367381

368382

383+
@pytest.mark.skipif(
384+
tests.integ.test_region() != "us-east-2",
385+
reason="Pulling the base image is currently limited to us-east-2.",
386+
)
369387
def test_multi_data_model_deploy_train_model_from_amazon_first_party_estimator(
370388
container_image, sagemaker_session, cpu_instance_type
371389
):
@@ -463,6 +481,10 @@ def __rcf_training_job(
463481
return rcf_model
464482

465483

484+
@pytest.mark.skipif(
485+
tests.integ.test_region() != "us-east-2",
486+
reason="Pulling the base image is currently limited to us-east-2.",
487+
)
466488
def test_multi_data_model_deploy_pretrained_models_update_endpoint(
467489
container_image, sagemaker_session, cpu_instance_type, alternative_cpu_instance_type
468490
):

0 commit comments

Comments
 (0)