Skip to content

fix(e2e): use EndpointsClient.proxy after Gateway to ProxyClient rename - #34127

Merged
yassin-berriai merged 1 commit into
litellm_internal_stagingfrom
litellm_fix_e2e_endpoints_client_proxy_attr
Jul 21, 2026
Merged

yassin-berriai merged 1 commit into
litellm_internal_stagingfrom
litellm_fix_e2e_endpoints_client_proxy_attr

Conversation

@yassin-berriai

Copy link
Copy Markdown
Contributor

Relevant issues

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • 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

Screenshots / Proof of Fix

The lint job's "Check tests/e2e basedpyright (zero errors)" step is red on litellm_internal_staging (base commit 212a921), and therefore red on every open e2e PR, with 9 errors all in this one file:

tests/e2e/llm_translation/test_messages_mid_conversation_system_native_providers_e2e.py:91:19 - error: Cannot access attribute "gateway" for class "EndpointsClient"
  Attribute "gateway" is unknown (reportAttributeAccessIssue)
... 9 errors, 0 warnings, 0 notes

EndpointsClient exposes .proxy (a ProxyClient), not .gateway; the attribute was renamed in the Gateway to ProxyClient refactor and this helper was missed. After the fix (commit on this branch) the _post_messages helper reads client.proxy.transport, matching every other helper in the suite, and the tests/e2e basedpyright step returns zero errors. This PR's own lint job is the after-proof.

No behavioral change: the test's assertions are untouched; it only referenced a removed attribute.

Type

🐛 Bug Fix

Changes

Point the _post_messages helper in test_messages_mid_conversation_system_native_providers_e2e.py at client.proxy.transport instead of the removed client.gateway.transport, restoring a zero-error tests/e2e basedpyright gate

QA runbook

  • tests/e2e/llm_translation/test_messages_mid_conversation_system_native_providers_e2e.py - proves a mid-conversation system message is translated natively per provider; this PR only fixes the client attribute the test's /v1/messages helper uses, with no change to what it asserts
    • Run the e2e basedpyright gate: from the repo root, uv run --no-sync basedpyright tests/e2e reports zero errors
    • Sanity check: the fix aligns the helper with EndpointsClient.proxy used everywhere else in the suite; no assertion or request shape changed

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

@CLAassistant

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 sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates the e2e Messages API helper to use the current endpoint client interface. The main change is:

  • Replace the removed client.gateway.transport access with client.proxy.transport without changing the request or assertions

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.
  • The updated attribute matches the EndpointsClient shape and existing e2e helper usage.
  • The request path, headers, response type, and assertions are unchanged.

Important Files Changed

Filename Overview
tests/e2e/llm_translation/test_messages_mid_conversation_system_native_providers_e2e.py Replaces stale gateway transport access with the valid proxy transport while preserving the request shape and test assertions

Reviews (1): Last reviewed commit: "fix(e2e): use EndpointsClient.proxy afte..." | Re-trigger Greptile

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_fix_e2e_endpoints_client_proxy_attr (730664d) with litellm_internal_staging (212a921)1

Open in CodSpeed

Footnotes

  1. No successful run was found on litellm_internal_staging (d2819ba) during the generation of this report, so 212a921 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

The mid-conversation-system messages test still referenced the removed
client.gateway attribute, so the tests/e2e basedpyright gate reported 9
errors and went red on every e2e PR. EndpointsClient exposes .proxy, so
point the /v1/messages post helper at client.proxy.transport.
@yassin-berriai
yassin-berriai force-pushed the litellm_fix_e2e_endpoints_client_proxy_attr branch from de1daa5 to 730664d Compare July 21, 2026 20:42
@yassin-berriai
yassin-berriai merged commit 30ed840 into litellm_internal_staging Jul 21, 2026
74 of 75 checks passed
@yassin-berriai
yassin-berriai deleted the litellm_fix_e2e_endpoints_client_proxy_attr branch July 21, 2026 20:53
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.

3 participants