Repository navigation
fix(budgets): declare the auth cache key family for the rust spend counter host - #53286
kerry-berri wants to merge 1 commit into
Conversation
…unter host Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
PR overviewNo security issues were found in this pull request. Reviews
|
1 similar comment
[Low impact] This PR appears safe to merge.
|
|
bugbot run |
Bugbot is paused — your team has an unpaid invoiceBugbot is paused because your team has an unpaid invoice. Pay it from the billing page in the Cursor dashboard and Bugbot resumes automatically. (requestId: 3b9a3ab9-80ad-448a-b891-b954eea7505b) |
|
Closing as a duplicate, #53287 just landed the same |
Handwritten 1-3 sentence description
Main's root check has been red since the rust spend counter step landed, because its budget window lookup reads the shared auth cache without saying which key family it belongs to. This tags that lookup as an auth object read, the same as the other budget lookups, so the check passes again.
Details
Link to Devin session: https://app.devin.ai/sessions/27bb2c9b5bd5448f9fe49ac839d9747d
Open in Devin Desktop: https://app.devin.ai/desktop/session/27bb2c9b5bd5448f9fe49ac839d9747d?variant=devin
Requested by: @kerry-berri
TLDR
Problem this solves:
rootfails on every main push since feat(budgets): run the ledger's post-call spend counter step in rust #52166 (5eec273)test_every_redis_producer_declares_a_key_familyreportsrust_spend_counters.pyas undeclaredredis.getHow it solves it:
_CounterHost.budget_windowsis wrapped inwith_service_target(AUTH_OBJECTS_TARGET)budget_reservation.pyuses for the same cachePre-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
E2E exception at 4e5888c. The diff is one decorator and two imports, it changes no request or response, and the existing guard test that is red on main is the regression test, so no new test is added.
On main at 746f839 the root job fails with
On this branch
Type
🐛 Bug Fix
Caveats (if any)
Low
auth_objectsinstead of a bareredis.getdocscheck is also red on main, fixed separately in docs(mcp): document LITELLM_MCP_DCR_GATEWAY_CLIENT litellm-docs#3212Final Attestation