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
9 changes: 9 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,15 @@ def pytest_configure(config):

pytest.terminate_on_failure = config.getoption('--terminate-on-failure')

# Disable parallelism for smoke tests only to save memory in Buildkite.
# Check if any of the test paths are under smoke_tests/
if hasattr(config, 'args') and config.args:
is_smoke_test = any('smoke_tests' in str(arg) for arg in config.args)
if is_smoke_test and smoke_tests_utils.is_in_buildkite_env():
# Override xdist settings to disable parallelism
config.option.numprocesses = 0
config.option.dist = 'no'


def _get_cloud_to_run(config) -> List[str]:
cloud_to_run = []
Expand Down
1 change: 1 addition & 0 deletions tests/smoke_tests/docker/docker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def create_and_setup_new_container(target_container_name: str,
if is_inside_docker():
# Run the new container directly
run_cmd = (f'docker run -d '
f'--cpus=4 '
f'--name {target_container_name} '
f'-p {api_server_host_port}:{api_server_container_port} '
f'-p {metrics_host_port}:{metrics_container_port} '
Expand Down
4 changes: 2 additions & 2 deletions tests/smoke_tests/test_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ def _rss_aggregate_threshold_checker(
total_increase: float, total_increase_pct: float) -> List[str]:
"""Aggregate threshold checker for RSS metrics."""
failures = []
if total_increase_pct > 20:
if total_increase_pct > 30:
failures.append(
f"Average memory increase too high: {total_increase_pct:.1f}% (limit: 20%)"
f"Average memory increase too high: {total_increase_pct:.1f}% (limit: 30%)"
)
return failures

Expand Down
Loading