Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sagemaker-serve/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
markers = [
"skip_in_pr_check: mark a test that is excluded from PR check runs. Long-running or hang-prone tests that would otherwise push the run past the CodeBuild timeout; they run in a dedicated scheduled CI run instead.",
]

[tool.black]
line-length = 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def _build_jumpstart_model_builder(role_arn):


@pytest.mark.slow_test
@pytest.mark.skip_in_pr_check
def test_benchmark_workflow_end_to_end():
"""Deploy a JumpStart endpoint, run a benchmark against it, parse the result."""
logger.info("Starting AI inference recommender benchmark integration test...")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def test_build_from_training_job(self, training_job_name, sagemaker_session):
assert model_builder.image_uri is not None
assert model_builder.instance_type is not None

@pytest.mark.skip_in_pr_check
def test_deploy_from_training_job(self, training_job_name, endpoint_name, cleanup_endpoints, sagemaker_session):
"""Test deploying model from training job.

Expand Down
1 change: 1 addition & 0 deletions sagemaker-serve/tests/integ/test_optimize_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
DJL_LMI_VERSION = "0.31.0"


@pytest.mark.skip_in_pr_check
def test_optimize_build_deploy_invoke_cleanup():
"""Integration test for Optimize workflow"""
logger.info("Starting Optimize integration test...")
Expand Down
1 change: 1 addition & 0 deletions sagemaker-serve/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ markers =
gpu_intensive: mark a test as GPU resource intensive (runs on scheduled CI, not PR checks).
us_east_1: mark a test that requires us-east-1 test account credentials (784379639078).
import_model: mark a test that creates a Bedrock model import job. Concurrent model import jobs are capped at 1 by a non-raisable Bedrock service quota, so these run serially in a dedicated scheduled CI run, not in PR checks.
skip_in_pr_check: mark a test that is excluded from PR check runs. Long-running or hang-prone tests that would otherwise push the run past the CodeBuild timeout; they run in a dedicated scheduled CI run instead.

[testenv]
setenv =
Expand Down
Loading