Skip to content

Commit 085ac51

Browse files
committed
Fix to check p3
1 parent d6bf351 commit 085ac51

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/integ/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"me-south-1",
6969
"sa-east-1",
7070
"us-west-1",
71-
"eu-west-1", # not enough capacity
7271
]
7372
TRAINING_NO_P3_REGIONS = [
7473
"af-south-1",
@@ -88,6 +87,7 @@
8887
"ap-south-1",
8988
"ap-northeast-2", # it has p3, but not enough
9089
"us-east-2", # it has p3, but not enough
90+
"eu-west-1", # it has p3, but not enough
9191
]
9292

9393
# EI is currently only supported in the following regions

tests/integ/test_huggingface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
@pytest.mark.release
3232
@pytest.mark.skipif(
33-
tests.integ.test_region() in tests.integ.TRAINING_NO_P2_REGIONS,
34-
reason="No P2 instances or low capacity in this region",
33+
tests.integ.test_region() in tests.integ.TRAINING_NO_P3_REGIONS,
34+
reason="No P3 instances or low capacity in this region",
3535
)
3636
def test_framework_processing_job_with_deps(
3737
sagemaker_session,
@@ -64,8 +64,8 @@ def test_framework_processing_job_with_deps(
6464

6565
@pytest.mark.release
6666
@pytest.mark.skipif(
67-
tests.integ.test_region() in tests.integ.TRAINING_NO_P2_REGIONS,
68-
reason="No P2 instances or low capacity in this region",
67+
tests.integ.test_region() in tests.integ.TRAINING_NO_P3_REGIONS,
68+
reason="No P3 instances or low capacity in this region",
6969
)
7070
def test_huggingface_training(
7171
sagemaker_session,

tests/integ/test_training_compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def skip_if_incompatible(gpu_instance_type, request):
9191
],
9292
)
9393
@pytest.mark.skipif(
94-
integ.test_region() in integ.TRAINING_NO_P2_REGIONS,
95-
reason="No P2 instances or low capacity in this region",
94+
integ.test_region() in integ.TRAINING_NO_P3_REGIONS,
95+
reason="No P3 instances or low capacity in this region",
9696
)
9797
def test_huggingface_pytorch(
9898
sagemaker_session,

0 commit comments

Comments
 (0)