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(e2e): pin harness Python and surface proxy boot crash output (#34157)
ryan-crabbe-berrif9300d43120d
diff --git a/ui/litellm-dashboard/e2e_tests/run_e2e.sh b/ui/litellm-dashboard/e2e_tests/run_e2e.shindex ed0641d04e6..ea95f18890c 100755--- a/ui/litellm-dashboard/e2e_tests/run_e2e.sh+++ b/ui/litellm-dashboard/e2e_tests/run_e2e.sh@@ -26,6 +26,7 @@ IS_CI="${CI:-false}"CONTAINER_NAME="litellm-e2e-postgres-$$"MOCK_PID=""PROXY_PID=""+PROXY_LOG=""# --- Ensure common tool paths are available (local dev only) ---if [ "$IS_CI" = "false" ]; then@@ -40,6 +41,7 @@ cleanup() {echo "Cleaning up..."[ -n "$MOCK_PID" ] && kill "$MOCK_PID" 2>/dev/null || true[ -n "$PROXY_PID" ] && kill "$PROXY_PID" 2>/dev/null || true+ [ -n "$PROXY_LOG" ] && rm -f "$PROXY_LOG" || trueif [ "$IS_CI" = "false" ]; thendocker stop "$CONTAINER_NAME" 2>/dev/null || truefi@@ -124,6 +126,7 @@ echo "UI build copied and restructured"# --- Python environment ---echo "=== Setting up Python environment ==="cd "$REPO_ROOT"+export UV_PYTHON="${UV_PYTHON:-3.13}"uv sync --group dev --group proxy-dev --extra proxy --frozen --quietuv run --no-sync python -m prisma generate --schema litellm/proxy/schema.prisma@@ -143,16 +146,18 @@ done# --- LiteLLM proxy ---echo "=== Starting LiteLLM proxy ==="cd "$REPO_ROOT"+PROXY_LOG="${TMPDIR:-/tmp}/litellm-e2e-proxy-$$.log"uv run --no-sync python -m litellm.proxy.proxy_cli \--config "$SCRIPT_DIR/fixtures/config.yml" \- --port 4000 &+ --port 4000 >"$PROXY_LOG" 2>&1 &PROXY_PID=$!-echo "Waiting for proxy..."+echo "Waiting for proxy (logs: $PROXY_LOG)..."PROXY_READY=0for i in $(seq 1 180); doif ! kill -0 "$PROXY_PID" 2>/dev/null; then- echo "Error: proxy process exited unexpectedly"+ echo "Error: proxy process exited unexpectedly. Proxy output:"+ tail -n 100 "$PROXY_LOG"exit 1fiHTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:4000/health -H "Authorization: Bearer $LITELLM_MASTER_KEY" 2>/dev/null || true)@@ -163,7 +168,8 @@ for i in $(seq 1 180); dosleep 1doneif [ "$PROXY_READY" -ne 1 ]; then- echo "Error: proxy did not become healthy within 180 seconds"+ echo "Error: proxy did not become healthy within 180 seconds. Proxy output:"+ tail -n 100 "$PROXY_LOG"exit 1fiecho "Proxy is ready."