Merge pull request #21277 from BerriAI/improve/ci-test-stability

improve(ci): enhance test stability with better isolation and distribution
This commit is contained in:
jquinter
2026-02-17 21:53:53 -03:00
committed by GitHub
+10 -4
View File
@@ -18,10 +18,15 @@ jobs:
matrix:
test-group:
# tests/test_litellm split by subdirectory (~560 files total)
- name: "llms"
path: "tests/test_litellm/llms"
workers: 2 # Reduced from 4 to 2 to avoid race conditions
reruns: 2 # Retry flaky tests twice
# Vertex AI tests separated for better isolation (prevent auth/env pollution)
- name: "llms-vertex"
path: "tests/test_litellm/llms/vertex_ai"
workers: 1
reruns: 2
- name: "llms-other"
path: "tests/test_litellm/llms --ignore=tests/test_litellm/llms/vertex_ai"
workers: 2
reruns: 2
# tests/test_litellm/proxy split by subdirectory (~180 files total)
- name: "proxy-guardrails"
path: "tests/test_litellm/proxy/guardrails tests/test_litellm/proxy/management_endpoints tests/test_litellm/proxy/management_helpers"
@@ -105,4 +110,5 @@ jobs:
-n ${{ matrix.test-group.workers }} \
--reruns ${{ matrix.test-group.reruns }} \
--reruns-delay 1 \
--dist=loadscope \
--durations=20