Repository navigation
chore(release): backport #46711 to stable/1.104.x and cut 1.104.7 - #48293
Merged
Merged
Conversation
yuneng-berri
had a problem deploying
to
e2e-changed
October 25, 2026 05:31 — with
GitHub Actions
Error
shin-berri
approved these changes
Oct 25, 2026
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backports the startup fix from #46711 to stable/1.104.x and cuts 1.104.7. On this line, a proxy or gateway that can't reach the remote model cost map sometimes crashes on boot with an ImportError, and this stops that
Details
TLDR
Problem this solves:
How it solves it:
diagnostics.pypart of refactor(rust-bridge): remove the LoggerRule concept from the catalog #46711 is taken, plus the patch bumpUser Flow
Before: an operator starts the gateway in a network that can't reach raw.githubusercontent.com and it sometimes dies on boot
ImportError: cannot import name 'LoggerContext' from partially initialized module 'litellm.rust_bridge.catalog'After: the same starts all come up
Affected release
Regression in v1.104.0, from #42616
What is included
381f9b2e5bbump: version 1.104.7, as8fb041eb7d, since 1.104.6 is already publishedAdaptation notes
#46711 is picked with
-xbut only itslitellm/rust_bridge/diagnostics.pyhunk is kept, byte for byte. Itscatalog.py,dispatch.pyandtest_catalog.pyhunks are left out because this line's catalog also carries cache and secret manager rule types main didn't have when #46711 landed, so thedispatch.pyhunk would read.routeoff a rule that has none.LoggerRulestays in the catalog with nothing reading itKnown noise on this line
None in the targeted set. The rust_bridge and logging tests pass 1853 of 1853 on stable/1.104.x at 4a8940a and on this branch
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
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 moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
litellm/rust_bridge/diagnostics.pyon stable/1.104.x is byte-identical to stable/1.105.x before and after this change, so the crash and the fix are the same code as #48292. That PR's A/B on the 1.105 gateway image, with the patched file as the only difference, went from 13 of 30 imports and 15 of 45 boots crashing to 0 of both. The same loop against the published 1.104.6 image was not run, see CaveatsType
🐛 Bug Fix
Caveats (if any)
Medium
import litellmLow
LoggerRulestays in this line's catalog with nothing reading itFinal Attestation