From d0444c728794fc72fa50543afb1f5475518be62a Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Sat, 10 Jan 2026 17:36:30 -0800 Subject: [PATCH] reduce memory limits to 45 MB for more accurate CI testing - Router: 60 MB -> 45 MB - Proxy: 170 MB -> 45 MB - CI environment provides cleaner memory measurements without: - IDE/debugger overhead holding references - Development tool memory fragmentation - Local process competition - 45 MB limit reflects true router/proxy memory usage - Stricter CI limits help catch real memory leaks more reliably --- tests/load_tests/test_proxy_chat_completions_memory_growth.py | 2 +- tests/load_tests/test_router_acompletion_memory_growth.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/load_tests/test_proxy_chat_completions_memory_growth.py b/tests/load_tests/test_proxy_chat_completions_memory_growth.py index ddab06555d1..4cb73b1e6d2 100644 --- a/tests/load_tests/test_proxy_chat_completions_memory_growth.py +++ b/tests/load_tests/test_proxy_chat_completions_memory_growth.py @@ -41,7 +41,7 @@ from tests.load_tests.memory_leak_utils import ( ) # Memory limit for all linear memory growth tests -MEMORY_LIMIT = "170 MB" +MEMORY_LIMIT = "45 MB" # Test Configuration TEST_API_KEY = "sk-1234" diff --git a/tests/load_tests/test_router_acompletion_memory_growth.py b/tests/load_tests/test_router_acompletion_memory_growth.py index 33b60d44c95..05d0e7e630a 100644 --- a/tests/load_tests/test_router_acompletion_memory_growth.py +++ b/tests/load_tests/test_router_acompletion_memory_growth.py @@ -29,8 +29,7 @@ from tests.load_tests.memory_leak_utils import ( ) # Memory limit for all linear memory growth tests -# Increased to 60 MB to account for larger batch size (100 vs 20) which creates more temporary objects -MEMORY_LIMIT = "60 MB" +MEMORY_LIMIT = "45 MB" @pytest.mark.asyncio