-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
[Infra] Optimize CI Pipeline #23721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[Infra] Optimize CI Pipeline #23721
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
27f1d33
Downgrade resource_class on over-provisioned CI jobs
yuneng-jiang eb7222c
[Infra] Reduce CI no_output_timeout and tighten Playwright timeouts
yuneng-jiang 95b6821
Speed up ui_unit_tests CI job (~20min -> ~5-7min)
yuneng-jiang 45ff66a
Add ui_unit_tests as requirement for publish_to_pypi
yuneng-jiang e38ee6a
Optimize ui_build job and gate ui_unit_tests behind it
yuneng-jiang 6147682
Switch test_bad_database_url from Dockerfile.non_root to Dockerfile.d…
yuneng-jiang cc80771
Cache Next.js build cache for ui_build job
yuneng-jiang 5091375
Consolidate duplicate Docker image builds to reuse pre-built image
yuneng-jiang f838bea
Optimize CI: parallelize router and guardrails test jobs, fix test is…
yuneng-jiang f73ff72
Fix router test isolation: update deprecated model, remove shared Red…
yuneng-jiang bcd887e
Fix test_async_fallbacks_streaming to use mock_response instead of re…
yuneng-jiang 023654d
Fix flaky CI tests: mock timeout race, update deprecated model, fix c…
yuneng-jiang 568726b
Fix test_aaarouter_dynamic_cooldown_message_retry_time isolation issue
yuneng-jiang 968d7a3
Fix test isolation: save/restore pre_call_rules and post_call_rules
yuneng-jiang 717d37c
Fix flaky CI: update deprecated model, filter leaked async task logs
yuneng-jiang ed1320e
Fix test_completion_sagemaker_messages_api retry flakiness
yuneng-jiang 82d3b23
Update deprecated Together AI model in test_completion_together_ai_llama
yuneng-jiang 2e27e32
Downsize remaining xlarge CI jobs to match actual workload
yuneng-jiang 87e3e84
Set semgrep job to medium resource class explicitly
yuneng-jiang 31e6393
Fix flaky proxy_e2e_azure_batches_tests: populate _hidden_params for …
yuneng-jiang 67e905f
Fix flaky encrypted_content_affinity tests: clear HTTP client cache, …
yuneng-jiang ff869e9
Fix flaky caching tests: use mock_response, add parallelism, remove f…
yuneng-jiang a75964f
Fix batch retrieve double-encoding: resolve output_file_id via DB loo…
yuneng-jiang a66b635
Upsize ui_build and ui_unit_tests CI machines for faster feedback
yuneng-jiang 1092c17
Fix flaky encrypted_content_affinity tests: mock at handler level
yuneng-jiang 673f3d5
Increase file deletion retry budget to 50s for batch_processed race
yuneng-jiang 65575f3
Fix pytest -n worker oversubscription to match available CPUs
yuneng-jiang 4c4246a
Downgrade oversized resource classes to match actual workload
yuneng-jiang a81a196
Fix test isolation: clear litellm.callbacks and model_fallbacks betwe…
yuneng-jiang a95cae6
Speed up build_docker_database_image: drop Docker upgrade, use zstd
yuneng-jiang 670f8a1
Fix flaky test_caching_with_ttl by using distinct mock responses
yuneng-jiang ec537dd
Add -n 2 parallelism to 8 medium jobs running serial tests
yuneng-jiang 40edb16
Fix test isolation: run eager tiktoken tests in subprocesses
yuneng-jiang 0b9a242
Fix flaky vertex pass-through spend test by polling instead of fixed …
yuneng-jiang beee329
Fix flaky test_gemini_image_generation_async by removing non-determin…
yuneng-jiang 4030a8b
Fix flaky tests: anthropic error_msg state leak and vertex llama 404
yuneng-jiang 3d45ba3
Fix flaky vertex_ai overhead test by mocking auth and HTTP calls
yuneng-jiang 4fc0975
Fix flaky e2e batch test: set batch_processed=True on completion in r…
yuneng-jiang 19e8a16
Optimize logging_testing CI: suppress DEBUG logs, fix xdist isolation
yuneng-jiang 92ad90d
Fix logging_testing: expand save/restore to cover redaction and other…
yuneng-jiang f2edc52
Fix flaky batch tests: mock vertex auth and skip on DNS failure
yuneng-jiang 13a4659
Fix logging_testing: clear _in_memory_loggers and add missing globals
yuneng-jiang 27d0ffe
Fix flaky AWS secret manager tests by skipping on ThrottlingException
yuneng-jiang 9b77524
Fix logging_testing: capture true defaults at conftest import time
yuneng-jiang cc027a2
Fix flaky test_langsmith_queue_logging: poll instead of fixed sleep
yuneng-jiang 9d06f53
Fix flaky test_claude_agent_sdk_streaming: add retry and stronger prompt
yuneng-jiang 09271a4
Mark test_redis_cache_completion_stream as flaky with retries
yuneng-jiang f3cc292
[Infra] Speed up CI: batch pip installs and fix pytest -n parallelism
yuneng-jiang 59f0db0
[Fix] Remove anyio==4.2.0 pin from local_testing batched installs
yuneng-jiang c1efbd3
[Fix] Drop httpx and opentelemetry pins from local_testing batched in…
yuneng-jiang 74e57bd
Optimize CI test jobs: increase xdist workers, drop coverage, add cac…
yuneng-jiang 1a00dd4
Fix router test isolation for xdist and rebalance proxy unit tests
yuneng-jiang 26207bb
[Infra] Speed up mapped test jobs: uv installs, site-packages caching…
yuneng-jiang 379c395
[Fix] Use uv for requirements.txt only, pip for test deps with confli…
yuneng-jiang 65b3335
[Infra] Use uv for requirements.txt installs across 22 CI jobs
yuneng-jiang 9711e3a
Fix xdist test isolation: capture true defaults and poll instead of s…
yuneng-jiang f07301a
[Infra] Optimize CI: right-size resource classes, drop unused coverag…
yuneng-jiang ae1e827
[Infra] Optimize CI: add xdist to caching tests, drop Docker CLI inst…
yuneng-jiang b4f7d11
Revert "Fix xdist test isolation: capture true defaults and poll inst…
yuneng-jiang eba54ba
[Fix] Add aurelio_sdk --no-deps alongside semantic_router in guardrai…
yuneng-jiang f68a9be
[Infra] Optimize CI: migrate litellm_security_tests from machine to d…
yuneng-jiang 96183e8
[Fix] Drop --no-deps from aurelio_sdk in guardrails and enterprise tests
yuneng-jiang 5db6aef
[Fix] Restore xdist test isolation: capture true defaults and poll co…
yuneng-jiang acfaea9
[Fix] Reset api_base/api_key in xdist conftest to prevent cross-test …
yuneng-jiang f434cdb
[Fix] Remove flush_cache from llm_translation conftest to prevent con…
yuneng-jiang 2372427
[Fix] Remove xdist from caching_unit_tests to fix GCS cache test fail…
yuneng-jiang ccfe4b5
[Fix] Restore unconditional importlib.reload for llm_translation conf…
yuneng-jiang 9cec81a
[Fix] Revert proxy unit test groupings to prevent xdist state pollution
yuneng-jiang 8f56ddb
Merge remote main into litellm_ci_optimize
yuneng-jiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CheckBatchCost safety-net comment is misleading
The inline comment says:
However,
batch_processed=Trueis set here inupdate_batch_in_databasebefore the async cost callback has a chance to run. BecauseCheckBatchCostnow queriesWHERE batch_processed = FALSE, any batch for whichupdate_batch_in_databasesucceeds (i.e., the column exists and the write works) will havebatch_processed=Trueand will not be picked up byCheckBatchCost, regardless of whether the cost callback later fails.The true safety net only applies when
update_batch_in_databaseitself fails to persistbatch_processed(e.g., the column is absent and the fallback retry also errors). Consider updating the comment to accurately reflect this narrower guarantee, so future maintainers aren't misled into thinking cost-callback failures are automatically retried: