Skip to content

Commit 11bdf31

Browse files
committed
Fix unit and integ tests
1 parent 8c07487 commit 11bdf31

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

sagemaker-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "An python package for sagemaker core functionalities"
99
authors = [
1010
{name = "AWS", email = "[email protected]"}
1111
]
12-
readme = "README.rst"
12+
readme = "README.rst"
1313
dependencies = [
1414
# Add your dependencies here (Include lower and upper bounds as applicable)
1515
"boto3>=1.42.2,<2.0.0",

sagemaker-mlops/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "sagemaker-mlops"
77
dynamic = ["version"]
88
description = "SageMaker MLOps package for workflow orchestration and model building"
9-
readme = "README.md"
9+
readme = "README.md"
1010
requires-python = ">=3.9"
1111
authors = [
1212
{name = "Amazon Web Services"},

sagemaker-serve/tests/integ/test_tei_integration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ def build_and_deploy():
9999
)
100100

101101
# Build and deploy your model. Returns SageMaker Core Model and Endpoint objects
102-
core_model = model_builder.build(model_name=f"{MODEL_NAME_PREFIX}-{unique_id}")
102+
core_model = model_builder.build(model_name=f"{MODEL_NAME_PREFIX}-{unique_id}", region=AWS_REGION)
103103
logger.info(f"Model Successfully Created: {core_model.model_name}")
104104

105105
core_endpoint = model_builder.deploy(
106106
endpoint_name=f"{ENDPOINT_NAME_PREFIX}-{unique_id}",
107-
initial_instance_count=1
107+
initial_instance_count=1,
108+
region=AWS_REGION
108109
)
109110
logger.info(f"Endpoint Successfully Created: {core_endpoint.endpoint_name}")
110111

sagemaker-serve/tests/integ/test_tgi_integration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,13 @@ def build_and_deploy():
107107
)
108108

109109
# Build and deploy your model. Returns SageMaker Core Model and Endpoint objects
110-
core_model = model_builder.build(model_name=f"{MODEL_NAME_PREFIX}-{unique_id}")
110+
core_model = model_builder.build(model_name=f"{MODEL_NAME_PREFIX}-{unique_id}", region=AWS_REGION)
111111
logger.info(f"Model Successfully Created: {core_model.model_name}")
112112

113113
core_endpoint = model_builder.deploy(
114114
endpoint_name=f"{ENDPOINT_NAME_PREFIX}-{unique_id}",
115-
initial_instance_count=1
115+
initial_instance_count=1,
116+
region=AWS_REGION
116117
)
117118
logger.info(f"Endpoint Successfully Created: {core_endpoint.endpoint_name}")
118119

sagemaker-serve/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ commands =
9090
pip install 'torch==2.3.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
9191
pip install 'torchvision==0.18.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
9292
pip install 'dill>=0.3.9'
93+
pip install 'tensorflow==2.16.2'
9394

9495
pytest {posargs}
9596
deps =

sagemaker-train/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ test = [
5757
"pandas",
5858
"scipy",
5959
"omegaconf",
60-
"graphene"
60+
"graphene",
61+
"IPython"
6162
]
6263

6364
[tool.setuptools.packages.find]

0 commit comments

Comments
 (0)