litellm/.github
Julio Quinteros Pro 44feb55840 improve(ci): enhance test stability with better isolation and distribution
Implements three key improvements to reduce test flakiness from parallel execution:

1. **Split Vertex AI tests into separate group** (workers: 1)
   - Vertex AI tests often have environment variable pollution issues
   - Running serially prevents cross-test interference with GOOGLE_APPLICATION_CREDENTIALS
   - Isolates authentication-related test failures

2. **Reduce workers for other LLM tests** (4 -> 2)
   - Decreases chance of race conditions and state conflicts
   - Still parallel but with less contention

3. **Add --dist=loadscope to pytest-xdist**
   - Keeps tests from the same file together on one worker
   - Reduces interference between unrelated test modules
   - Data shows 70% pass rate WITH loadscope vs 40% WITHOUT
   - Better test isolation while maintaining parallelism

Note: loadscope exposes one tokenizer cache issue in core-utils which will be
fixed in a separate PR. The tradeoff is worth it (7/10 pass vs 4/10 without).

These changes address the root causes of intermittent test failures in:
PRs #21268, #21271, #21272, #21273, #21275, #21276:
- Environment variable pollution (GOOGLE_APPLICATION_CREDENTIALS, VERTEXAI_PROJECT)
- Global state conflicts (litellm.known_tokenizer_config)
- Async mock timing issues with parallel execution

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 21:49:20 -03:00
..
actions/helm-oci-chart-releaser fix(helm): add OCI annotations so GHCR shows helm pull instead of docker pull (#20617) 2026-02-12 19:58:16 +05:30
ISSUE_TEMPLATE ci(github): add automated duplicate issue checker and template safeguards (#19218) 2026-01-17 00:17:20 +05:30
scripts Implement GitHub Action to auto-label issues with provider keywords (#13537) 2025-08-12 21:18:20 -07:00
workflows improve(ci): enhance test stability with better isolation and distribution 2026-02-17 21:49:20 -03:00
dependabot.yaml Feedback: Configure Dependabot to check for updates daily 2024-06-18 10:30:28 -05:00
deploy-to-aws.png Add files via upload 2023-10-25 16:33:53 -07:00
FUNDING.yml
pull_request_template.md docs: add Greptile review requirement to PR template (#20762) 2026-02-10 22:08:04 -08:00
template.yaml (chore) cleanup 2024-02-09 09:28:13 -08:00