litellm/litellm/scripts
yuneng-jiang dc0a852de9
ci: fit the pull request gate into five minutes (#52660)
* ci(unit): upload per-test durations as JUnit XML from each shard

Each unit shard now writes junit.xml and uploads it, so per-test timings can drive shard balancing and the choice of PR core tests.

* ci: fit the pull request gate into five minutes

Lint no longer compiles Rust. The basedpyright env skips installing the
project (same per-rule counts as main's published artifact, 93220) and runs
with four threads, and the python job installs only the dev tools. Import
safety and the OpenAPI gate move to a lint-runtime job in the unit workflow
that reuses the one shared bridge build.

The unit workflow drops coverage, schedules core shards with worksteal so
one big file no longer runs alone at the end, splits the router tests across
two 16-core shards, adds the frequent out-of-core catchers, and adds a
changed-tests job that runs the PR's changed unit tests plus the tests
mirroring its changed source files. The bridge build skips the gateway
wheel on core-mode pull requests, and merge smoke builds the bridge once
instead of once per job on a cache miss.

rust-test, rust-wheel, image-scan and CodeQL move to the integration
cadence, with a rust-tests label to run the Rust jobs on a pull request.
CodSpeed runs on main only.

* ci: build the Rust bridge on a 16-core runner (temporary cache-miss probe)

* ci: reuse the Rust bridge on cost-map-only pull requests

The bridge embeds the cost map, so a pull request that only edits the cost
map JSON used to rebuild Rust in both unit and smoke, about 7 minutes end to
end. The bridge cache key now splits the Rust inputs from the cost map, and a
cost-map-only pull request falls back to a bridge built from the same Rust
inputs with an older embedded map. cost-map-guard still loads the new JSON
through the Rust catalog, and main rebuilds the bridge on every cost map
change.

Unit's bridge job runs on a 16-core runner, which cut a measured cache miss
from 3.5 to 2.0 minutes for pull requests that do change Rust.

* ci: build smoke's Rust bridge on a 16-core runner
2026-11-18 14:41:04 -08:00
..
adaptive_router_demo
ci_cd
db
githooks
health_check chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
lens_assets
trace_codegen
auto-close-duplicates.test.ts
auto-close-duplicates.ts
benchmark_anthropic_messages_perf.py
benchmark_chat_completions_perf.py
benchmark_mock.py
benchmark_model_response_creator.py
benchmark_ocr_callbacks.py
benchmark_proxy_vs_provider.py
benchmark_streaming_chunk_overhead.py
build_core_distribution.py
check_mcp_operation_boundary.py
check_mcp_sdk_install.py
check_openapi_docs.py feat(proxy): support Cursor CLI subscriptions (#52205) 2026-11-16 21:49:12 -08:00
check_schema_compatibility.py feat(proxy): customer budget rollup, reset on the budget row's window, named templates, team overrides, multi-window limits and pause_allow_increase (#51582) 2026-11-13 16:05:35 +00:00
check_test_quality.py
check_type_discipline.py
classify-issue.test.ts
classify-issue.ts
comment-fixed-issue.test.ts
comment-fixed-issue.ts
create_litellm_branch.ps1
create_litellm_branch.sh
create_team_key_and_submit_guardrail.sh
default_branch.py
eval_compression.py
flag-duplicate-issue.test.ts
flag-duplicate-issue.ts
gate_slot_lock.py
generate_provider_endpoints_support.py
generate_trace_types.py
install-cli.sh
install.sh chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
install_git_hooks.sh
issue-labels.ts
label-issue.test.ts
label-issue.ts
lint_base_counts.py
mock_bedrock_passthrough_target.py
mock_grayswan_timeout_server.py
mutation_report.py
openapi_docs_gate.py
pre_commit_lint.sh
prisma_generate_if_needed.py
quickstart.ps1
quickstart.sh
ruff_strict_gate.py
seed_request_logs.py
seed_tracing_fixtures.py
sync-issue-labels.test.ts
sync-issue-labels.ts
test_agent_mcp_endpoints.sh
test_guardrails_register_endpoints.sh
test_quality_gate.py
test_tool_allowlist_script.py
tpm_headline_test.sh
type_check_gate.py ci: fit the pull request gate into five minutes (#52660) 2026-11-18 14:41:04 -08:00
type_discipline_gate.py
verify_adaptive_router.py
with_dashboard_node.sh