Skip to content

Commit 02f51c3

Browse files
committed
More bug fixes for PR checks
1 parent 2ffad92 commit 02f51c3

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

sagemaker-serve/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ allowlist_externals =
8787
commands =
8888
python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')"
8989
pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.9.txt"
90-
pip install 'torch==2.8.0' 'torchvision==0.21.0'
91-
pip install 'onnx>=1.17.0' 'onnxruntime>=1.20.0'
90+
pip install 'torch==2.8.0' 'torchvision==0.23.0'
91+
pip install 'onnx>=1.16.0,<1.17.0' 'onnxruntime>=1.19.0,<1.20.0'
9292
pip install 'dill>=0.3.9'
9393
pip install 'tensorflow==2.16.2'
9494

sagemaker-train/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ version = { file = "VERSION"}
7272
[tool.pytest.ini_options]
7373
addopts = ["-vv"]
7474
testpaths = ["tests"]
75+
markers = [
76+
"serial: marks tests that must run serially (not in parallel)",
77+
]
7578

7679
[tool.black]
7780
line-length = 100

sagemaker-train/src/sagemaker/ai_registry/dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def _validate_dataset_file(cls, file_path: str) -> None:
179179
max_size_mb = DATASET_MAX_FILE_SIZE_BYTES / (1024 * 1024)
180180
raise ValueError(f"File size {file_size_mb:.2f} MB exceeds maximum allowed size of {max_size_mb:.0f} MB")
181181

182-
@classmethod
183182
@classmethod
184183
@_telemetry_emitter(feature=Feature.MODEL_CUSTOMIZATION, func_name="DataSet.get")
185184
def get(cls, name: str, sagemaker_session=None) -> "DataSet":

sagemaker-train/tests/integ/ai_registry/test_evaluator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from sagemaker.ai_registry.air_constants import HubContentStatus, REWARD_FUNCTION, REWARD_PROMPT
2020

2121

22+
@pytest.mark.serial
2223
class TestEvaluatorIntegration:
2324
"""Integration tests for Evaluator operations."""
2425

sagemaker-train/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ markers =
6363
release
6464
image_uris_unit_test
6565
timeout: mark a test as a timeout.
66+
serial: marks tests that must run serially (not in parallel)
6667

6768
[testenv]
6869
setenv =

0 commit comments

Comments
 (0)