Skip to content

test(e2e): backport the e2e speedup and main's CI cleanups to lts/1.108.x - #50487

Merged
yuneng-berri merged 6 commits into
lts/1.108.xfrom
backport_49984_lts_1108
Nov 7, 2026
Merged

yuneng-berri merged 6 commits into
lts/1.108.xfrom
backport_49984_lts_1108

Conversation

@yuneng-berri

@yuneng-berri yuneng-berri commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

[insert handwritten description here]

Details

TLDR

Problem this solves:

  • LTS e2e runs still drain every worker for six quiet_stack tests
  • LTS build 827's main pytest step took 50.6 min, main's took 29

How it solves it:

User Flow

Before: an engineer qualifying an LTS cut waits on a full e2e run that mostly idles

  1. They start a litellm-e2e Buildkite build with litellm_sha set to the lts/1.108.x tip
  2. Every quiet test waits for all other tests to finish and blocks new ones
  3. Each worker spends about 6 min registering the claude_code models one at a time
  4. Build 827's main pytest step took 50.6 min

After: the same build keeps all workers busy, and the moved checks run in their own lanes

  1. They start the same build on a lts/1.108.x SHA with this change
  2. Nothing takes an exclusive lock, so the main pytest step keeps every worker busy
  3. Each worker registers the claude_code models in one batch and waits 15 s once
  4. The managed-files lane runs the semantic tool filter test on its own stack during the main run

Relevant issues

Backport of #49984 (pairs with BerriAI/litellm-test-infra#34), #47154, #48473, #49022, #49472 and #49722

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
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Adaptation notes

The pick conflicted in five files because the line was cut on 10-16, and each was resolved to the pick's own change. tests/e2e/AGENTS.md takes the pick's four line edits on top of the line's text, keeping the line's longer mcp/ and perf/ descriptions. tests/e2e/conftest.py and tests/e2e/pytest.ini drop only the quiet_stack marker and keep mcp_oauth_live, which the line still uses. tests/e2e/perf/test_database_upgrade.py and tests/e2e/perf/test_ui_journeys.py are not on the line, so their one-line marker edits are dropped. No quiet_stack or stack_lock reference is left in the tree

#47154 conflicted in the same three e2e files because #49984 landed first here, while main has them in the other order. Each resolves to main's current text, so the mcp/ line in tests/e2e/AGENTS.md now matches main exactly and the mcp_oauth_live marker is gone. #48473 deleted two workflows the line had edited, and the deletion wins. #49722's only conflict is one sentence in the perf/ line of tests/e2e/AGENTS.md, applied to the line's text. #49022 and #49472 applied cleanly

Screenshots / Proof of Fix

The proof is a full litellm-e2e build at this branch's tip, compared with build 827 at the merge base. It is in progress and this section will be updated with the numbers

Local checks at a323682345. tests/e2e_harness passes 635 on both the line tip and this branch, including the new TestRegisterModels cases. Collecting tests/e2e gives 633 tests against 639 on the line tip: 2 are the discount and margin spend-row checks #49984 moves into tests/integration/pricing/test_cost_margin_discount.py, and 4 are the live MCP OAuth tests #47154 removes. tests/unit/test_circleci_path_filter.py, tests/unit/test_lint_workflow_diff_gates.py and tests/unit/test_pre_commit_lint.py pass 148 here against 123 on the line tip, the extra 25 being #49022's new cases. ruff check --config ruff-tests.toml passes on every touched file and every workflow still parses

Type

✅ Test

Caveats (if any)

Medium

  • The moved integration tests are not run yet
    • Pricing, spend and tests/integration/mcp/test_mcp_oauth_flows.py
    • They need the run-ci integration lane on this PR
  • 13 workflows still differ from main, on purpose
    • test-unit, test-linting, cost-map-guard, compat-matrix-image, image-scan and test-rust changes ship with main-only code
    • test-merge-smoke and test-mcp-dependency-resolution only add Python 3.15, and the line caps at <3.15
    • zizmor's --no-ignores needs the guard moves, which touch the main-only spend-logs-guard
    • test-rust-db, interactions-spec-canary, cost-map-pins-recheck and spend-logs-guard are new on main and need code the line lacks

Low

  • Build 827's 50.6 min also carries OpenAI credit errors, so the before number is not lock time alone

QA runbook

The tests are unchanged from #49984, so its QA runbook applies as written. The one line-specific step is to confirm a full LTS build runs perf/test_reliability_memory_e2e.py only in the perf lane and the semantic tool filter test only in e2e-mf-run

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

…l registration (#49984)

* test(e2e): retire the quiet_stack lock

quiet_stack held an exclusive host-wide lock for six tests, draining every
other xdist worker while they ran. On the full e2e lane that left 35-38% of
worker time idle. Each of those tests now lives where it can run without
pausing the suite

- the two memory tests move to perf/ behind the perf marker, so the perf lane
  runs them on its own fresh stack. Their refusing deployments use a literal
  key because the perf stack carries no provider keys
- the stored-request size check from the memory test becomes an integration
  test on an owned proxy that stores prompts
- the discount and margin spend-row tests are dropped from e2e. Their
  breakdown assertions join the existing integration pricing test, which
  already owns the discount and margin repricing flow
- the Bedrock guardrail cost test stays in e2e without the pricing reset
  fixture, since nothing else on the stack writes pricing config now
- the MCP semantic tool filter test turns on a proxy-wide setting, so it gets
  a new proxy_wide_config opt-in marker and runs after the main run

* test(e2e): register the claude_code deployments as one batch

The claude_code session fixture registered its 24 deployments one at a time on every xdist worker, and each one waited out the 15 s propagation window on its own, about 6 minutes per worker. ProxyClient.register_models posts the whole batch, polls each model until every replica serves it, then waits out propagation once from the last write. A model that fails to post or never becomes servable comes back as ModelNotRegistered, and an unservable one is deleted, so the fixture keeps reporting per-deployment failures the way it did

(cherry picked from commit b18188d)
yuneng-berri and others added 5 commits November 6, 2026 17:40
…on coverage (#47154)

* test(mcp): move the MCP OAuth happy path from a live Linear e2e to an integration test

GitHub Actions now runs unit tests only, and the MCP OAuth happy path needed a
captured Linear browser login to click through a real consent page. The OAuth
flows it exercised are already integration tests against an owned
authorization-server double, except one behavior: the stored per-user token
must be served by a proxy process that never saw the consent, with no shared
Redis to fall back on. That case is now in test_mcp_oauth_flows.py

The e2e test, its owned-gateway helper, its workflow, the mcp_oauth_live marker
and the JUnit gate script only that workflow used are removed

* test(mcp): chat completions run an OAuth server tool with the caller's own stored token

* test(e2e): drop the Linear chat-completion MCP OAuth e2e and its helpers

The behavior it checked, a chat completion running an OAuth server's tool with
the caller's stored per-user token, is now an integration test in
test_mcp_llm_endpoints.py that needs no saved Linear browser login

* test(mcp): decode the stored per-user credential as urlsafe base64

The plaintext check used b64decode, which drops the - and _ of a urlsafe value
and raised on roughly one ciphertext in five

* test(mcp): drop the chat OAuth integration test that duplicates test_mcp_slots F2-chat

security/test_mcp_slots.py already sends a per-user OAuth token through
/v1/chat/completions and asserts the peer receives it. Every mutant the new test
killed was also killed by the existing suite, so it added no signal

(cherry picked from commit 44fcbc3)
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 57ac107)
…y change that can alter the spec (#49022)

* ci: run the dashboard API types check on every change that can alter the OpenAPI spec

* chore: shorten the spec_pattern comment to a pointer at the CI filter

* chore: drop the spec_pattern comment

* docs: name the full ui-api-types trigger set in the make check header and dashboard AGENTS.md

* test: check make check and CI pick the same files for the API-type sync

* ci: run the Terraform provider endpoint audit on enterprise route changes

* test: keep the Terraform trigger test in the mapped workflow test file

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
(cherry picked from commit e73f06e)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit b4a80d1)
@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@CLAassistant

CLAassistant commented Nov 7, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 4 committers have signed the CLA.

✅ yuneng-berri
✅ mateo-berri
❌ tavren27
❌ devin-ai-integration[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@yuneng-berri yuneng-berri changed the title test(e2e): backport the quiet_stack retirement and batched claude_code registration to lts/1.108.x test(e2e): backport the e2e speedup and main's CI cleanups to lts/1.108.x Nov 7, 2026
@yuneng-berri
yuneng-berri merged commit 7e95523 into lts/1.108.x Nov 7, 2026
63 of 64 checks passed
@yuneng-berri
yuneng-berri deleted the backport_49984_lts_1108 branch November 7, 2026 03:44
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request Nov 10, 2026
…08.4) (#715)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/berriai/litellm](https://images.chainguard.dev/directory/image/wolfi-base/overview) ([source](https://github.com/BerriAI/litellm)) | patch | `v1.108.2` → `v1.108.4` |

---

### Release Notes

<details>
<summary>BerriAI/litellm (ghcr.io/berriai/litellm)</summary>

### [`v1.108.4`](https://github.com/BerriAI/litellm/releases/tag/v1.108.4): 1.108.4 (LTS)

[Compare Source](BerriAI/litellm@v1.108.3...v1.108.4)

> \[!TIP]
> The `lts` image tag always points to the latest LTS release. Pull `ghcr.io/berriai/litellm:lts` to stay on the newest LTS patch

#### Verify this release

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/e82a3c646908ba0a6ee0beddc4310d7a6cac4065/cosign.pub \
  ghcr.io/berriai/litellm:v1.108.4
```

Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images

#### What's new in 1.108.4 (LTS)

10 PRs. 7 fixed, 1 changed. No action needed to upgrade

##### Changes

- **AWS Bedrock:** Fixed 400s from GLM, GPT-6 Luna and Nova 2 on Bedrock when the conversation carries Claude's signed thinking ([#&#8203;50399](BerriAI/litellm#50399))
- **AWS Bedrock:** Changed `/bedrock` pass-through routes to enforce the model's `guardrailConfig` over any guardrail the caller sends ([#&#8203;47429](BerriAI/litellm#47429))
- **Vertex AI and Gemini:** Fixed Vertex AI Claude batches failing with 404 at create ([#&#8203;50365](BerriAI/litellm#50365))
- **Messages API:** Fixed `chatgpt/` models on `/v1/messages` dropping encrypted reasoning between turns ([#&#8203;50456](BerriAI/litellm#50456))
- **Messages API:** Fixed `/v1/messages` to OpenAI sending `background: true` upstream, which billed full runs that came back empty ([#&#8203;50462](BerriAI/litellm#50462))
- **Embeddings, images and audio:** Fixed `/v1/videos` polls failing with per-model keys or hitting the wrong provider account with a 404 ([#&#8203;44614](BerriAI/litellm#44614))
- **Routing and fallbacks:** Fixed team keys being served by a proxy-wide wildcard instead of the team's own BYOK wildcard deployment ([#&#8203;48490](BerriAI/litellm#48490))
- **SDK:** Fixed `completion()`, `responses()` and `messages` with tools failing with `No module named 'mcp'` on a base install, broken since v1.106.0 ([#&#8203;45961](BerriAI/litellm#45961))

***

Backport [#&#8203;50568](BerriAI/litellm#50568) · Backport [#&#8203;50605](BerriAI/litellm#50605) · Backport [#&#8203;50693](BerriAI/litellm#50693) · [Full changelog](BerriAI/litellm@v1.108.3...v1.108.4)

### [`v1.108.3`](https://github.com/BerriAI/litellm/releases/tag/v1.108.3): 1.108.3 (LTS)

[Compare Source](BerriAI/litellm@v1.108.2...v1.108.3)

> \[!TIP]
> The `lts` image tag always points to the latest LTS release. Pull `ghcr.io/berriai/litellm:lts` to stay on the newest LTS patch

#### Verify this release

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/e82a3c646908ba0a6ee0beddc4310d7a6cac4065/cosign.pub \
  ghcr.io/berriai/litellm:v1.108.3
```

Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images

#### What's new in 1.108.3 (LTS)

11 PRs. 3 fixed. No action needed to upgrade

##### Changes

- **AWS Bedrock:** Fixed every request failing on a Bedrock deployment with `api_base: ""`, which answered 500 or 400 ([#&#8203;50449](BerriAI/litellm#50449))
- **MCP:** Fixed tool results over 1 MiB failing with `SSE stream ended without a response`, broken since v1.103.0 ([#&#8203;47034](BerriAI/litellm#47034))
- **Guardrails:** Fixed model-level `post_call` guardrails checking each response twice and calling the moderation provider twice ([#&#8203;50463](BerriAI/litellm#50463))

***

Backport [#&#8203;50484](BerriAI/litellm#50484) · Backport [#&#8203;50487](BerriAI/litellm#50487) · [Full changelog](BerriAI/litellm@v1.108.2...v1.108.3)

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/New_York)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.greyrock.io/todd/home-ops/pulls/715
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants