The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[Fix] CI: fix GHA timeouts and uv lock --check failures
Yuneng Jiang83c459225c2a
diff --git a/.github/workflows/test-unit-proxy-db.yml b/.github/workflows/test-unit-proxy-db.ymlindex 49d399e8741..35d3c018a49 100644--- a/.github/workflows/test-unit-proxy-db.yml+++ b/.github/workflows/test-unit-proxy-db.yml@@ -34,7 +34,7 @@ jobs:- test-group: remainingtest-path: "tests/proxy_unit_tests --ignore=tests/proxy_unit_tests/test_key_generate_prisma.py --ignore=tests/proxy_unit_tests/test_auth_checks.py --ignore=tests/proxy_unit_tests/test_user_api_key_auth.py"workers: 8- timeout: 20+ timeout: 30uses: ./.github/workflows/_test-unit-services-base.ymlwith:test-path: ${{ matrix.test-path }}diff --git a/pyproject.toml b/pyproject.tomlindex 46f1de98878..8752170cb5b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -211,7 +211,7 @@ build-backend = "uv_build"[tool.uv]default-groups = ["dev"]required-version = "==0.10.9"-exclude-newer = "2026-04-10"+exclude-newer = "3 days"[tool.uv.sources]litellm-proxy-extras = { workspace = true }diff --git a/tests/test_litellm/test_eager_tiktoken_load.py b/tests/test_litellm/test_eager_tiktoken_load.pyindex aa43555fe83..96d5ab76e6e 100644--- a/tests/test_litellm/test_eager_tiktoken_load.py+++ b/tests/test_litellm/test_eager_tiktoken_load.py@@ -55,21 +55,35 @@ def test_eager_loading_enabled():assert result.returncode == 0, f"Subprocess failed:\nstdout: {result.stdout}\nstderr: {result.stderr}"[email protected]("value", ["1", "true", "True", "TRUE", "yes", "on"])-def test_eager_loading_env_var_values(value):- """Test that various env var values enable eager loading"""+def test_eager_loading_env_var_values():+ """Test that various truthy env var values all enable eager loading.++ All values are tested inside a single subprocess to avoid spawning one+ cold ``import litellm`` process per value (~78 s each on CI). The+ subprocess re-imports litellm in isolated ``importlib`` reloads so each+ value gets a fresh module, but we only pay the process-start cost once.+ """result = _run_python("""- import litellm- assert hasattr(litellm, "encoding"), "Encoding should be available"- encoding = litellm.encoding- tokens = encoding.encode("test")- assert len(tokens) > 0+ import importlib, sys, os++ values = ["1", "true", "True", "TRUE", "yes", "Yes", "YES", "on", "On", "ON"]+ for value in values:+ # Set the env var for this iteration+ os.environ["LITELLM_DISABLE_LAZY_LOADING"] = value+ # Remove cached litellm modules so re-import picks up the new env+ mods_to_remove = [k for k in sys.modules if k == "litellm" or k.startswith("litellm.")]+ for m in mods_to_remove:+ del sys.modules[m]+ import litellm+ assert hasattr(litellm, "encoding"), f"Encoding missing for {value!r}"+ tokens = litellm.encoding.encode("test")+ assert len(tokens) > 0, f"Encoding broken for {value!r}"""",- env_override={"LITELLM_DISABLE_LAZY_LOADING": value},+ env_override={"LITELLM_DISABLE_LAZY_LOADING": "1"},)assert result.returncode == 0, (- f"Failed for value {value!r}:\nstdout: {result.stdout}\nstderr: {result.stderr}"+ f"Failed:\nstdout: {result.stdout}\nstderr: {result.stderr}")diff --git a/uv.lock b/uv.lockindex 5044e9a12fc..04224dc5374 100644--- a/uv.lock+++ b/uv.lock@@ -11,7 +11,8 @@ resolution-markers = [][options]-exclude-newer = "2026-04-11T07:00:00Z"+exclude-newer = "2026-04-08T16:01:27.663665Z"+exclude-newer-span = "P3D"[manifest]members = [