fix(ci): add prisma generate step to matrix CI workflow#21436
Merged
Conversation
tests/proxy_unit_tests/test_key_generate_prisma.py imports PrismaClient at module level, which triggers a Prisma binary check. Without running prisma generate first, all tests in that file ERROR at collection time with "Unable to find Prisma binaries. Please run 'prisma generate' first." Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryThis PR adds a
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| .github/workflows/test-litellm-matrix.yml | Adds a prisma generate step after dependency installation and before test execution. The command and schema path are correct and consistent with other CI configurations in the repo. |
Flowchart
flowchart TD
A[Checkout Code] --> B[Setup Python 3.12]
B --> C[Install Poetry]
C --> D[Cache Dependencies]
D --> E[Install Dependencies<br/>poetry install --with dev,proxy-dev]
E --> F[Setup litellm-enterprise]
F --> G[Generate Prisma Client<br/>poetry run prisma generate<br/>--schema litellm/proxy/schema.prisma]
G --> H[Run Tests<br/>poetry run pytest ...]
style G fill:#90EE90,stroke:#333,stroke-width:2px
Last reviewed commit: 58f23cb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/proxy_unit_tests/test_key_generate_prisma.pyimportsPrismaClientat module level, which triggers a Prisma binary check at collection timeprismaPython package (viaproxy-devextras) but never runsprisma generateUnable to find Prisma binaries. Please run 'prisma generate' first.Generate Prisma clientstep after dependency installation, using the existing schema atlitellm/proxy/schema.prismaTest plan
proxy-unit-aCI job no longer errors ontest_key_generate_prisma.pytests🤖 Generated with Claude Code