Skip to content

ci: run every CircleCI check from the integration workflow - #45938

Merged
yuneng-berri merged 6 commits into
mainfrom
litellm_test_2cf3c9
Oct 11, 2026
Merged

yuneng-berri merged 6 commits into
mainfrom
litellm_test_2cf3c9

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • CircleCI ran a legacy build_and_test workflow next to integration
  • The pass-through Jest suite and provider_replay_harness were one-off legacy jobs

How it solves it:

  • Moves the database image, proxy startup, helm and UI jobs into integration
  • Folds migration_startup and routing_parity into integration behind parameter filters
  • Runs Playwright on CircleCI with 3 workers on one xlarge machine instead of 1
  • Deletes tests/pass_through_tests and provider_replay_harness after a coverage audit

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Screenshots / Proof of Fix

This PR only moves CI jobs and tests, so the proof is that coverage is kept, the moved jobs pass, and nothing new goes red or flaky

CI shape

  1. CircleCI now has two workflows. integration runs on every push with 41 jobs, and migration_startup_scheduled keeps its own 6 hour main cron, since a legacy triggers workflow cannot also run on push
  2. build_docker_database_image, proxy_logging_guardrails_model_info_tests, db_migration_disable_update_check, test_bad_database_url, helm_chart_testing, e2e_ui_testing and e2e_ui_testing_server_root_path run in integration with their steps and requires kept
  3. Default jobs carry not pipeline.parameters.run_migration_tests and pipeline.parameters.routing_parity_base == "", the migration jobs carry pipeline.parameters.run_migration_tests, and routing_parity carries pipeline.parameters.routing_parity_base != ""
  4. circleci config validate passes, and a job by job diff against main shows only the moves above plus main's own resource class changes
  5. provider_replay_harness is gone. Its two files run in the python job of test-linting.yml
  6. assert_ci_coverage.py passes in default, --shards and --slices modes

Playwright

e2e_ui_build builds the dashboard once and both UI jobs attach it. e2e_ui_testing passes --workers=3 --retries=0 on its command and runs on one xlarge machine. Main ran the same suite with 1 worker in about 40 minutes

playwright.config.ts stays as it is on main because the Buildkite UI suite reads it too. An earlier head set 3 workers there, and one of its two Buildkite runs was OOM-killed, so Buildkite keeps 1 worker and 2 retries. The Buildkite UI suite passed on this head

Run Result Playwright time Job time
1 156 passed, keyBudgetWindow failed 5.3 min about 10 min
2 156 passed, keyBudgetWindow failed 5.3 min about 10 min
3 156 passed, keyBudgetWindow flaky (passed on retry) 5.1 min 9.3 min
4, flags on the command 156 passed, keyBudgetWindow flaky (passed on retry) 5.6 min 9.6 min

keyBudgetWindow also flakes on main. #41350 fixes the product side (a background refresh can wipe the edit draft), so the spec gets retries: 2 with a TODO pointing there. The Reset Filters case in logsFilters.spec.ts searched for a row that more workers pushed past the first page, so it now searches by request id

Pass-through Jest suite audit

JavaScript test Intention Covered by
test_gemini_with_spend.test.js streaming with tags Gemini streaming pass-through relays the body and request tags reach the spend log New tests/integration/observability/test_passthrough_upstream_error_visibility.py::test_gemini_streaming_passthrough_request_tags_reach_spend_log
test_vertex.test.js streaming Vertex streamGenerateContent forwards the body and streams the reply New unit case test_vertex_passthrough_forwards_body_and_request_tags_to_spend_payload[streamGenerateContent-True], plus the existing Google native streaming e2e
test_vertex.test.js non-streaming Vertex generateContent returns the reply Existing tests/e2e/llm_translation/test_vertex_passthrough_e2e.py
test_vertex_with_spend.test.js with tags Vertex request tags and call type reach the spend payload New unit cases, streaming and not

test_gemini.js and test_local_*.js never matched Jest's *.test.js pattern, so they never ran. Both new tests went red when the request-tag guard in _update_metadata_with_tags_in_header was inverted

Coverage preservation

A is a local run of the legacy Jest suite at the merge base 2a01fe6e5c against a proxy under coverage. Gemini passed there and the 4 Vertex cases failed for lack of Vertex credentials, so A undercounts the Vertex path. B is the new unit and integration tests on this branch. C is main's other Codecov flags at the same SHA

  1. |A| = 85227 lines, |A minus B| = 891, |A minus B minus C| = 7
  2. 5 lines are example_config_yaml/custom_auth_basic.py, an example config the legacy proxy loaded, and nothing tests it
  3. llm_passthrough_endpoints.py:372 is the Gemini streaming check. The new Gemini integration test goes through it and passed in CircleCI, but my local B run of that test was degraded, so this line is inferred from the code path, not measured
  4. pass_through_endpoints.py:3467 ran only because the local legacy proxy had no Azure target set, so it is a local setup artifact

Flakiness and reds

  1. The new Gemini test and the rest of its file passed 19 of 19 in 3 run.py extensions runs with order seeds 1001 to 1003, and the moved proxy startup test passed 3 run.py management runs. The new Vertex unit cases passed 5 serial runs, and their whole file passed 642 of 642 under pytest-randomly seeds 1, 2 and 3
  2. Across the CircleCI runs on this branch, the only reds outside Playwright were in integration-extensions, integration-providers and integration-mcp, each time in a different test and never in a file this PR touches
    • integration-mcp fails the same way on main at the merge base (services never became ready, main run at 05:09 PT) and passed on this head
    • integration-extensions passed all 1415 tests on this head after a rerun. Its earlier failures were timing checks in the logging-only scope files, one of which also failed on main at 05:09 PT
    • integration-providers failed one or two different tests on each run (a 429 retry spend log wait, an Anthropic pre-content retry, a team TPM reservation, a Bedrock embedding wire check). Main flaked the same Anthropic retry test on its 23:09 PT run

Type

🚄 Infrastructure
✅ Test

Caveats (if any)

Low

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The shared playwright.config.ts also drives the Buildkite UI suite, where 3 workers
ran out of memory on one of two runs. Buildkite keeps main's 1 worker and 2 retries
@yuneng-berri
yuneng-berri marked this pull request as ready for review October 11, 2026 14:39
@yuneng-berri
yuneng-berri requested a review from a team October 11, 2026 14:39

@yuneng-berri yuneng-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage residual justified, moved jobs green, Playwright runs in under ten minutes, and remaining providers reds also flake on main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant