Skip to content

test(e2e): fix EndpointsClient gateway attribute left behind by the ProxyClient rename - #34090

Closed
tin-berri wants to merge 1 commit into
mainfrom
litellm_e2e_fix_endpoints_client_gateway_rename
Closed

tin-berri wants to merge 1 commit into
mainfrom
litellm_e2e_fix_endpoints_client_gateway_rename

Conversation

@tin-berri

@tin-berri tin-berri commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Relevant issues

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • 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 (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Screenshots / Proof of Fix

make lint-e2e-basedpyright on current litellm_internal_staging fails for every PR with 9 errors in tests/e2e/llm_translation/test_messages_mid_conversation_system_native_providers_e2e.py, all cascading from EndpointsClient having no gateway attribute

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
make: *** [lint-e2e-basedpyright] Error 1

With this change

uv run --no-sync basedpyright tests/e2e
0 errors, 0 warnings, 0 notes

Type

🐛 Bug Fix

Changes

PR #33750 renamed the e2e harness Gateway to ProxyClient, exposed on EndpointsClient as .proxy. The mid-conversation-system test merged around the same time (#33807 landing commit 23b5b7d) still reads client.gateway.transport, which no longer exists, so the zero-error lint-e2e-basedpyright gate is red on the base branch and every open PR fails that job through no fault of its own. This updates the one stale call site, _post_messages, to client.proxy.transport, the same surface every other test in the suite uses

QA runbook

Run make lint-e2e-basedpyright on this branch and confirm it reports zero errors; run it on litellm_internal_staging to see the 9 pre-existing errors this removes

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

@greptile-apps

greptile-apps Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a stale client attribute in the mid-conversation system-message E2E test. The main change is:

  • Uses client.proxy.transport for the Messages API request and bearer header

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.
  • The updated access matches the current EndpointsClient interface and existing E2E usage.
  • The PR includes a successful basedpyright result for the reported failure.

Important Files Changed

Filename Overview
tests/e2e/llm_translation/test_messages_mid_conversation_system_native_providers_e2e.py Replaces invalid client.gateway accesses with the supported client.proxy interface without changing request routing, authentication, payload, or assertions

Reviews (1): Last reviewed commit: "test(e2e): fix EndpointsClient gateway a..." | 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_e2e_fix_endpoints_client_gateway_rename (bcc5fad) with litellm_internal_staging (c1b6c40)

Open in CodSpeed

@mateo-berri

Copy link
Copy Markdown
Contributor

This same e2e client rename landed in #34127 and main has since rewritten that test. Reopen if something is still missing

@mateo-berri mateo-berri closed this Nov 9, 2026
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