Skip to content

Commit d6bf351

Browse files
committed
skip p2 instance tests in eu-west-1
1 parent 07d278b commit d6bf351

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

tests/integ/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"me-south-1",
6969
"sa-east-1",
7070
"us-west-1",
71+
"eu-west-1", # not enough capacity
7172
]
7273
TRAINING_NO_P3_REGIONS = [
7374
"af-south-1",

tests/integ/test_huggingface.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929

3030

3131
@pytest.mark.release
32-
@pytest.mark.flaky(reruns=3, reruns_delay=5)
32+
@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",
35+
)
3336
def test_framework_processing_job_with_deps(
3437
sagemaker_session,
3538
huggingface_training_latest_version,
@@ -60,7 +63,10 @@ def test_framework_processing_job_with_deps(
6063

6164

6265
@pytest.mark.release
63-
@pytest.mark.flaky(reruns=3, reruns_delay=5)
66+
@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",
69+
)
6470
def test_huggingface_training(
6571
sagemaker_session,
6672
huggingface_training_latest_version,

tests/integ/test_training_compiler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ def skip_if_incompatible(gpu_instance_type, request):
9090
pytest.param("ml.p3.16xlarge", 2),
9191
],
9292
)
93-
@pytest.mark.flaky(rerun=3, rerun_delay=5)
93+
@pytest.mark.skipif(
94+
integ.test_region() in integ.TRAINING_NO_P2_REGIONS,
95+
reason="No P2 instances or low capacity in this region",
96+
)
9497
def test_huggingface_pytorch(
9598
sagemaker_session,
9699
gpu_instance_type,

0 commit comments

Comments
 (0)