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 helm not found and MCP tests on Python 3.9
Yuneng Jiangbc05219ba927
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex 1f2795bfcac..8883e3c1815 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -1645,6 +1645,10 @@ jobs:- run: uv run --no-sync python ./tests/code_coverage_tests/ban_copy_deepcopy_kwargs.py- run: uv run --no-sync python ./tests/code_coverage_tests/check_fastuuid_usage.py- run: uv run --no-sync python ./tests/code_coverage_tests/memory_test.py+ - run:+ name: Install Helm+ command: |+ curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash- run: helm lint ./deploy/charts/litellm-helmdb_migration_disable_update_check:diff --git a/tests/store_model_in_db_tests/test_mcp_servers.py b/tests/store_model_in_db_tests/test_mcp_servers.pyindex a369cce83c0..49a9625227d 100644--- a/tests/store_model_in_db_tests/test_mcp_servers.py+++ b/tests/store_model_in_db_tests/test_mcp_servers.py@@ -1,3 +1,4 @@+import sysfrom datetime import datetimefrom typing import List, Optionalimport pytest@@ -8,6 +9,14 @@ from unittest import mockfrom fastapi.testclient import TestClientfrom fastapi import FastAPI+# MCP requires Python >= 3.10. Tests that mock functions defined inside the+# ``if MCP_AVAILABLE`` block cannot run on older interpreters because those+# module-level names simply don't exist.+_SKIP_NO_MCP = pytest.mark.skipif(+ sys.version_info < (3, 10),+ reason="MCP requires Python >= 3.10",+)+from starlette import statusfrom litellm.constants import LITELLM_PROXY_ADMIN_NAME@@ -109,6 +118,7 @@ def test_does_mcp_server_exist():assert False == does_mcp_server_exist(mcp_server_records, not_found_record)+@_SKIP_NO_MCP@pytest.mark.asyncioasync def test_create_mcp_server_direct():"""@@ -198,6 +208,7 @@ async def test_create_mcp_server_direct():mock_manager.add_server.assert_called_once_with(expected_response)+@_SKIP_NO_MCP@pytest.mark.asyncioasync def test_create_duplicate_mcp_server():"""@@ -258,6 +269,7 @@ async def test_create_duplicate_mcp_server():assert "already exists" in str(exc_info.value.detail)+@_SKIP_NO_MCP@pytest.mark.asyncioasync def test_create_mcp_server_auth_failure():"""@@ -302,6 +314,7 @@ async def test_create_mcp_server_auth_failure():assert "permission" in str(exc_info.value.detail)+@_SKIP_NO_MCP@pytest.mark.asyncioasync def test_create_mcp_server_invalid_alias():"""@@ -356,6 +369,7 @@ async def test_create_mcp_server_invalid_alias():)+@_SKIP_NO_MCP@pytest.mark.asyncioasync def test_edit_mcp_server_redacts_credentials():with mock.patch(