Skip to content

Commit 07d278b

Browse files
committed
chore: add flaky test markers
1 parent 653f3b5 commit 07d278b

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

tests/integ/test_huggingface.py

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

3030

3131
@pytest.mark.release
32+
@pytest.mark.flaky(reruns=3, reruns_delay=5)
3233
def test_framework_processing_job_with_deps(
3334
sagemaker_session,
3435
huggingface_training_latest_version,
@@ -59,6 +60,7 @@ def test_framework_processing_job_with_deps(
5960

6061

6162
@pytest.mark.release
63+
@pytest.mark.flaky(reruns=3, reruns_delay=5)
6264
def test_huggingface_training(
6365
sagemaker_session,
6466
huggingface_training_latest_version,

tests/integ/test_training_compiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ 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)
9394
def test_huggingface_pytorch(
9495
sagemaker_session,
9596
gpu_instance_type,

tests/unit/sagemaker/jumpstart/test_notebook_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def test_list_jumpstart_models_simple_case(
231231

232232
@patch("sagemaker.jumpstart.accessors.JumpStartModelsAccessor._get_manifest")
233233
@patch("sagemaker.jumpstart.notebook_utils.DEFAULT_JUMPSTART_SAGEMAKER_SESSION.read_s3_file")
234+
@pytest.mark.flaky(reruns=5, reruns_delay=1)
234235
def test_list_jumpstart_models_script_filter(
235236
self, patched_read_s3_file: Mock, patched_get_manifest: Mock
236237
):
@@ -583,6 +584,7 @@ def vulnerable_training_model_spec(bucket, key, *args, **kwargs):
583584

584585
@patch("sagemaker.jumpstart.accessors.JumpStartModelsAccessor._get_manifest")
585586
@patch("sagemaker.jumpstart.notebook_utils.DEFAULT_JUMPSTART_SAGEMAKER_SESSION.read_s3_file")
587+
@pytest.mark.flaky(reruns=5, reruns_delay=1)
586588
def test_list_jumpstart_models_deprecated_models(
587589
self,
588590
patched_read_s3_file: Mock,

tests/unit/sagemaker/workflow/test_transform_step.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
custom_step.properties.OutputDataConfig.S3OutputPath,
7171
],
7272
)
73+
@pytest.mark.flaky(reruns=5, reruns_delay=1)
7374
def test_transform_step_with_transformer(model_name, data, output_path, pipeline_session):
7475
transformer = Transformer(
7576
model_name=model_name,

0 commit comments

Comments
 (0)