litellm/.github/actions
paveln83 b4918c9a05
fix(proxy): start and serve the proxy with a database on Python 3.10 and prisma 0.13+ (#54416)
* fix(proxy): start the Prisma engine on Python 3.10 and pin prisma to the versions it supports

The port-owning query engine waited with asyncio.timeout, which only exists on Python 3.11+, so a proxy with a database could not start on 3.10. It now waits with asyncio.wait_for

The engine subclass imports prisma.builder, which prisma 0.13 removed, so extra_proxy now allows prisma>=0.11.0,<0.13. prisma 0.12.0 passes the engine tests on 3.10

A fake query engine executable covers the connect, silent, and early-exit paths, and a new prisma-engine-python-310 CI shard runs those tests on Python 3.10 whenever the engine code changes

* fix(proxy): run the Prisma engine on prisma 0.13+ and fix Python 3.10 chat with a database

Drop the prisma<0.13 cap and make the engine subclass work on prisma 0.11 through 0.15. OVERWRITE_DATASOURCES is built with json.dumps instead of the removed prisma.builder, and the client's HTTP options reach the engine as http_config when its constructor takes it

Build CallContext without the subscripted alias, which raised TypeError on Python 3.10 for every chat call with a database

Move the engine tests that start a real process to tests/integration/database, and have the Python 3.10 CI shard install prisma 0.15.0 and run the dispatcher tests too

* fix(proxy): set the Prisma client engine through its setter so prisma 0.15 connects

* test(proxy): run the query engine spawn path in-process on Python 3.10

* fix(proxy): keep TimeoutError as the cause of the query engine connect timeout

The connect timeout EngineConnectionError chains the TimeoutError again, as on the merge base, so the startup traceback keeps its direct cause block

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-26 00:09:17 +00:00
..
build-rust-bridge Revert "ci: reuse Rust bridge builds across PR pushes and refresh the Cargo cache (#52718)" (#52770) 2026-11-18 23:07:25 -08:00
cache-cargo-build Revert "ci: reuse Rust bridge builds across PR pushes and refresh the Cargo cache (#52718)" (#52770) 2026-11-18 23:07:25 -08:00
cache-go-build ci: stop PR runs from thrashing the Actions cache and stop smoke compiling from source (#51343) 2026-11-11 23:52:32 -08:00
cache-prisma-binaries test(ci): repair stale tests and flaky CI infrastructure (#43983) 2026-10-01 17:46:43 +00:00
cache-uv-downloads test(ci): repair stale tests and flaky CI infrastructure (#43983) 2026-10-01 17:46:43 +00:00
detect-changes fix(proxy): start and serve the proxy with a database on Python 3.10 and prisma 0.13+ (#54416) 2026-11-26 00:09:17 +00:00
restore-rust-bridge Revert "ci: reuse Rust bridge builds across PR pushes and refresh the Cargo cache (#52718)" (#52770) 2026-11-18 23:07:25 -08:00
rust-bridge ci: split slow unit shards and build the Rust bridge once per run (#44622) 2026-10-05 23:43:01 +00:00
setup-uv-with-retries chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00