Skip to content

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]

ci(codecov): restore litellm/ prefix on uploaded coverage paths

Yuneng Jiange25a988a3feb
diff --git a/codecov.yaml b/codecov.yaml
index 8609d3143d6..7900fe0bbbb 100644
--- a/codecov.yaml
+++ b/codecov.yaml
@@ -38,3 +38,15 @@ coverage:
default:
target: auto
threshold: 0% # patch coverage should be 100%
+
+# pytest-cov runs with --cov=litellm, which stores file paths in the XML
+# relative to the litellm/ package root (e.g. proxy/proxy_server.py instead
+# of litellm/proxy/proxy_server.py). Codecov's auto-prefix heuristic only
+# resolves files whose basename is unique in the repo — files like
+# proxy_server.py (3 copies), router.py (2 copies), utils.py (20+ copies),
+# main.py (20+ copies), constants.py (2 copies) get silently dropped. The
+# rule below restores the litellm/ prefix on every uploaded path so they
+# resolve unambiguously. Safe because no current uploader emits paths that
+# already start with litellm/.
+fixes:
+ - "::litellm/"