Skip to content

chore(e2e): untrack gateway config and document e2e test location - #31914

Merged
mubashir1osmani merged 6 commits into
litellm_internal_stagingfrom
litellm_remove_gateway_config
Jul 3, 2026
Merged

chore(e2e): untrack gateway config and document e2e test location#31914
mubashir1osmani merged 6 commits into
litellm_internal_stagingfrom
litellm_remove_gateway_config

Conversation

@mubashir1osmani

@mubashir1osmani mubashir1osmani commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Stop tracking tests/e2e/gateway/litellm-config.yml so the local proxy config stays on the machine

Add a self-contained docker-compose.yml to tests/e2e/ that starts the proxy with a throwaway Postgres and Redis. The proxy config is inlined in the compose file under configs with example models (gpt-5.5, claude-haiku-4-5, gemini-2.5-flash, openai-text-embedding-3-small) whose keys come from a local .env, so contributors can bring up a gateway for the e2e suites with nothing but their provider keys. CONTRIBUTING.md in that directory now documents the flow: write the .env, docker compose up -d, run a suite, docker compose down -v

Add a note to CLAUDE.md that new e2e tests belong in tests/e2e/ and must follow that directory's conventions

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 requested a Greptile review by commenting @greptileai and received a Confidence Score of at least 4/5 before requesting a maintainer review

Delays 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

From tests/e2e/ with a .env holding OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY:

docker compose up -d
curl -fs http://localhost:4000/health/liveliness

Type

🧹 Refactoring
📖 Documentation

Changes

  • tests/e2e/gateway/litellm-config.yml is deleted; the file stays machine-local
  • tests/e2e/docker-compose.yml added: litellm proxy + throwaway postgres:16 + redis:7 with the proxy config inlined via compose configs
  • tests/e2e/CONTRIBUTING.md setup and pre-commit sections rewritten around the inline-config flow
  • CLAUDE.md gains a line pointing e2e tests at tests/e2e/

Stop tracking tests/e2e/gateway/litellm-config.yml so the local proxy config stays on the machine

Add a note to CLAUDE.md that new e2e tests belong in tests/e2e/ and must follow that directory's conventions
@mubashir1osmani
mubashir1osmani force-pushed the litellm_remove_gateway_config branch from 56e7d3d to 4b0f4e7 Compare July 1, 2026 21:48
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This chore PR stops tracking the machine-local e2e proxy config (tests/e2e/gateway/litellm-config.yml) by deleting it from the repo and adding a new tests/e2e/.gitignore, and adds a one-line note to CLAUDE.md directing e2e tests to tests/e2e/.

  • The tests/e2e/CLAUDE.md reference in the new CLAUDE.md note resolves to a real, comprehensive file — the documentation link is accurate.
  • The .gitignore entry correctly scopes the ignore to gateway/litellm-config.yml without over-ignoring anything else in tests/e2e/.
  • CONTRIBUTING.md instructs contributors to bring up docker-compose serving gateway/litellm-config.yml; with the file now absent from git, a first-time contributor cloning the repo has no template to start from.

Confidence Score: 4/5

Safe to merge; the changes are purely housekeeping with no production code touched.

The .gitignore and CLAUDE.md changes are straightforward and correct. The only gap is that removing the tracked config without shipping a companion example file leaves first-time contributors with no starting point for gateway/litellm-config.yml, which CONTRIBUTING.md says is required to bring the e2e stack up.

tests/e2e/.gitignore — consider whether a gateway/litellm-config.yml.example should accompany this change.

Important Files Changed

Filename Overview
CLAUDE.md Adds one-line note directing e2e tests to tests/e2e/ with a reference to that directory's CLAUDE.md, which exists and is comprehensive.
tests/e2e/.gitignore New .gitignore that excludes gateway/litellm-config.yml from tracking; correct and minimal.
tests/e2e/gateway/litellm-config.yml 237-line proxy config deleted from git tracking; no example/template replacement provided for first-time contributors who need this file to run e2e tests.

Comments Outside Diff (1)

  1. tests/e2e/.gitignore, line 1 (link)

    P2 Missing starter template for gitignored config

    CONTRIBUTING.md explicitly tells contributors to bring up docker-compose from this directory, which serves gateway/litellm-config.yml. With the file deleted and gitignored, anyone cloning the repo fresh hits a missing-file error before they can run a single test. Consider adding a gateway/litellm-config.yml.example (or similar) that holds the skeleton with placeholder env-var references so new contributors have a starting point and CONTRIBUTING.md can point at it.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Reviews (1): Last reviewed commit: "chore(e2e): untrack gateway config and d..." | Re-trigger Greptile

…tellm_remove_gateway_config

# Conflicts:
#	tests/e2e/gateway/litellm-config.yml
@mubashir1osmani
mubashir1osmani enabled auto-merge (squash) July 3, 2026 00:47
@mubashir1osmani

Copy link
Copy Markdown
Collaborator Author

added config directly to helm chart - please use management endpoints to add new models for e2e tests.

@mubashir1osmani
mubashir1osmani disabled auto-merge July 3, 2026 00:48
Ship a docker-compose.yml that starts the proxy with a throwaway Postgres and Redis and inlines the proxy config with example models, so contributors can bring up a local gateway with nothing but a .env. Update CONTRIBUTING.md to match the inline-config flow
@mubashir1osmani
mubashir1osmani enabled auto-merge (squash) July 3, 2026 01:30
Comment thread tests/e2e/docker-compose.yml
@veria-ai

veria-ai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Security review

No open security issues remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

@mubashir1osmani
mubashir1osmani merged commit a86dc4c into litellm_internal_staging Jul 3, 2026
122 checks passed
@mubashir1osmani
mubashir1osmani deleted the litellm_remove_gateway_config branch July 3, 2026 02:22
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.

2 participants