Skip to content

Commit 2445ce2

Browse files
author
Roja Reddy Sareddy
committed
fix: skip SFT and RLVR nova tests other than IAD
1 parent 4bbca9c commit 2445ce2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sagemaker-train/tests/integ/train/test_rlvr_trainer_integration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"""Integration tests for RLVR trainer"""
1414
from __future__ import absolute_import
1515

16+
import os
1617
import time
18+
import pytest
1719
import boto3
1820
from sagemaker.core.helper.session_helper import Session
1921
from sagemaker.train.rlvr_trainer import RLVRTrainer
@@ -94,6 +96,7 @@ def test_rlvr_trainer_with_custom_reward_function(sagemaker_session):
9496
assert training_job.output_model_package_arn is not None
9597

9698

99+
@pytest.mark.skipif(os.environ.get('AWS_DEFAULT_REGION') != 'us-east-1', reason="Nova models only available in us-east-1")
97100
def test_rlvr_trainer_nova_workflow(sagemaker_session):
98101
"""Test RLVR training workflow with Nova model."""
99102
import os

sagemaker-train/tests/integ/train/test_sft_trainer_integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"""Integration tests for SFT trainer"""
1414
from __future__ import absolute_import
1515

16+
import os
1617
import time
18+
import pytest
1719
import boto3
1820
from sagemaker.core.helper.session_helper import Session
1921
from sagemaker.train.sft_trainer import SFTTrainer
@@ -88,7 +90,7 @@ def test_sft_trainer_with_validation_dataset(sagemaker_session):
8890
assert hasattr(training_job, 'output_model_package_arn')
8991

9092

91-
93+
@pytest.mark.skipif(os.environ.get('AWS_DEFAULT_REGION') != 'us-east-1', reason="Nova models only available in us-east-1")
9294
def test_sft_trainer_nova_workflow(sagemaker_session):
9395
"""Test SFT trainer with Nova model."""
9496
import os

0 commit comments

Comments
 (0)