Skip to content

fix(rust): clear the rust-test and rust-wheel failures on main - #53922

Merged
narmstrong-berri merged 1 commit into
mainfrom
nate_fix_main_rust_ci
Nov 23, 2026
Merged

narmstrong-berri merged 1 commit into
mainfrom
nate_fix_main_rust_ci

Conversation

@narmstrong-berri

@narmstrong-berri narmstrong-berri commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor
  • rust-test and rust-wheel have failed on every scheduled main run since 2026-11-21, and on any PR labeled rust-tests (for example refactor(cost): price generic_cost_per_token with the native calculate #52816)
  • a_customer_counter_that_cannot_be_seeded_fails_the_step_with_the_rest expected no stamp, but nothing reaches the pipeline once every counter fails to seed, so the step stamps the reservation and then reports the failure, as stamp_budget_reservation_actual_cost does in Python before it raises the first scope error. The test now expects the stamp (2.0 actual less 5.0 reserved)
  • a_claimed_job_row_keeps_the_metadata_fields_of_its_request_settings now counts litellm_previous_response_ids, which feat(responses): store each bridged turn's path to the root so a fork replays only its ancestors #49519 added to the always kept metadata fields
  • The user repository parsed its JSON arguments with serde_json::from_str, which marshal_boundary forbids in python-bridge (feat(db): route jwt provisioning writes through rust repositories #52756). It now calls a new json_parse in litellm-host-python, with the same ValueError text
  • _native.pyi lists NativeCacheInvalidation and NativeTeamRoster in __all__ and marks NativeActiveTeams, NativeSensitiveRoutePins and NativeAuthCache @final, which stubtest asked for
  • Checked locally: the charge and callback test binaries of litellm-callbacks-budgets and litellm-callbacks-spend-logger pass. The stub fix is checked by this PR's rust-wheel job

Generated by Claude Code


Devin Review

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@narmstrong-berri
narmstrong-berri force-pushed the nate_fix_main_rust_ci branch 3 times, most recently from 010eb37 to 7796a24 Compare November 23, 2026 21:40

Copy link
Copy Markdown
Contributor Author

[AI] rust-wheel now gets past stubtest, and 10 tests in tests/test_litellm_rust/messages fail. They have never run on main because stubtest failed first: 9 in test_bedrock.py (credential errors are raised as litellm.AuthenticationError, not as the raw botocore or auth error, plus two stream cases) and 1 in test_callbacks.py (custom_llm_provider in a retried call's pre-call litellm_params). Whether to restore the old behavior or update the tests is waiting on a decision, so this PR does not change them yet


Generated by Claude Code

@narmstrong-berri narmstrong-berri added the autoapprove This PR may be autoapproved by greptile. The author thinks that it does not need human review. label Nov 23, 2026
@narmstrong-berri
narmstrong-berri marked this pull request as ready for review November 23, 2026 22:44
@narmstrong-berri
narmstrong-berri enabled auto-merge (squash) November 23, 2026 22:44
@veria-ai

veria-ai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

Copy link
Copy Markdown
Contributor Author

[AI] @greptileai review


Generated by Claude Code

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

This PR updates two stale Rust test expectations, moves JSON parsing into litellm-host-python, and brings _native.pyi into line with the extension.

  • Rust accounting tests expect the existing budget stamp and retained metadata.
  • User-repository JSON arguments go through the shared host parser.
  • The Rust extension stub lists missing names and marks wrapper classes final.

Reviews (2) · Last reviewed commit: "fix(rust): clear the rust-test and rust-..." · Reviewed by Greptile

The unseeded customer counter test expected no stamp, but the step stamps the reservation before it reports scope failures, as stamp_budget_reservation_actual_cost does in Python. The claimed job row test now counts litellm_previous_response_ids, which #49519 made an always kept metadata field. The user repository parses its JSON arguments through litellm-host-python's new json_parse, which the marshal boundary test requires. The stub now lists NativeCacheInvalidation and NativeTeamRoster and marks NativeActiveTeams, NativeSensitiveRoutePins and NativeAuthCache final

Copy link
Copy Markdown
Contributor Author

[AI] @greptileai review


Generated by Claude Code

@narmstrong-berri
narmstrong-berri merged commit e957ef1 into main Nov 23, 2026
61 of 62 checks passed
@narmstrong-berri
narmstrong-berri deleted the nate_fix_main_rust_ci branch November 23, 2026 22:55
narmstrong-berri added a commit that referenced this pull request Nov 24, 2026
…our (#54223)

Main's rust-wheel job fails 10 tests in tests/test_litellm_rust/messages,
each pinned to behaviour a later PR changed on purpose. The stub check
failed first until #53922, so the pytest step never reported them.

Credential failures on Bedrock invoke and Mantle now answer a 401
AuthenticationError with the botocore error as its context (#53362). A
200 Bedrock stream whose body is JSON answers BedrockError 502 (#53482).
A cut Bedrock stream drops the message_start output placeholder and
re-counts the streamed text (#53394). Logging copies the resolved
provider into litellm_params before callbacks run (#52709)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autoapprove This PR may be autoapproved by greptile. The author thinks that it does not need human review. rust-tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant