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): run every helm test suite, not just the first one per file (#35993)
Yassin Kortam50c6a1f344a4
diff --git a/.github/workflows/helm_unit_test.yml b/.github/workflows/helm_unit_test.ymlindex 5b9d20d97f3..a44d412c781 100644--- a/.github/workflows/helm_unit_test.yml+++ b/.github/workflows/helm_unit_test.yml@@ -23,21 +23,28 @@ jobs:with:version: "3.11.1"- - name: Install Helm Unit Test Plugin+ - name: Download and verify Helm Unit Test Pluginrun: |- helm plugin install https://github.com/helm-unittest/helm-unittest --version v0.4.4- - name: Verify Helm Unit Test Plugin integrity+ curl -fsSLo "$RUNNER_TEMP/helm-unittest.tgz" https://github.com/helm-unittest/helm-unittest/releases/download/v0.8.2/helm-unittest-linux-amd64-0.8.2.tgz+ echo "56ab3091e6fa52a7c92ee951def9bed957f295d9ce98483aed404e748d7b3a94 $RUNNER_TEMP/helm-unittest.tgz" | sha256sum -c -++ - name: Install Helm Unit Test Pluginrun: |- EXPECTED_SHA="e251ba198448629678ff2168e1a469249d998155"PLUGIN_DIR="$(helm env HELM_PLUGINS)/helm-unittest"- ACTUAL_SHA="$(git -C "$PLUGIN_DIR" rev-parse HEAD)"- if [ "$ACTUAL_SHA" != "$EXPECTED_SHA" ]; then- echo "::error::Helm unittest plugin checksum mismatch! Expected $EXPECTED_SHA but got $ACTUAL_SHA"- exit 1- fi- echo "Helm unittest plugin integrity verified: $ACTUAL_SHA"+ mkdir -p "$PLUGIN_DIR"+ tar -xzf "$RUNNER_TEMP/helm-unittest.tgz" -C "$PLUGIN_DIR"+ helm plugin list- name: Run unit testsrun: |- helm unittest -f 'tests/*.yaml' helm/litellm-helm- helm unittest -f 'tests/*.yaml' helm/litellm+ for chart in helm/litellm-helm helm/litellm; do+ declared="$(grep -h '^suite:' "$chart"/tests/*.yaml | wc -l | tr -d '[:space:]')"+ output="$(mktemp)"+ helm unittest -f 'tests/*.yaml' "$chart" | tee "$output"+ executed="$(sed -n 's/^Test Suites:.*[[:space:]]\([0-9][0-9]*\) total$/\1/p' "$output")"+ if [ "$declared" != "$executed" ]; then+ echo "::error::$chart declares $declared test suites but helm-unittest ran $executed. Suites are being skipped silently, so their assertions never execute."+ exit 1+ fi+ echo "$chart: all $declared declared test suites ran"+ donediff --git a/Makefile b/Makefileindex 68753605e27..3e82e141c77 100644--- a/Makefile+++ b/Makefile@@ -99,7 +99,10 @@ install-test-deps: install-proxy-dev$(UV_RUN) prisma generate --schema litellm/proxy/schema.prismainstall-helm-unittest:- helm plugin install https://github.com/helm-unittest/helm-unittest --version v0.4.4 || echo "ignore error if plugin exists"+ @helm plugin list | grep -qE '^unittest[[:space:]]+0\.8\.2([[:space:]]|$$)' || { \+ helm plugin uninstall unittest >/dev/null 2>&1 || true; \+ helm plugin install https://github.com/helm-unittest/helm-unittest --version v0.8.2; \+ }# Install git hooks that enforce Conventional Commits and Conventional Branches.# Opt-in: not chained into install-dev.