Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix litellm_proxy_unit_testing

Ishaan Jaffer41953185bfbd
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 6e46d3fe33c..0a4d8ede878 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -673,16 +673,30 @@ jobs:
auth:
username: ${DOCKERHUB_USERNAME}
password: ${DOCKERHUB_PASSWORD}
+ environment:
+ DATABASE_URL: postgresql://postgres:postgres@localhost:5432/circle_test
+ - image: postgres:14
+ environment:
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: postgres
+ POSTGRES_DB: circle_test
working_directory: ~/project
steps:
- checkout
+ - setup_google_dns
- run:
- name: Install PostgreSQL
+ name: Wait for PostgreSQL to be ready
command: |
sudo apt-get update
- sudo apt-get install postgresql postgresql-contrib
- echo 'export PATH=/usr/lib/postgresql/*/bin:$PATH' >> $BASH_ENV
- - setup_google_dns
+ sudo apt-get install -y postgresql-client
+ for i in {1..30}; do
+ if pg_isready -h localhost -p 5432 -U postgres; then
+ echo "PostgreSQL is ready"
+ break
+ fi
+ echo "Waiting for PostgreSQL... ($i/30)"
+ sleep 2
+ done
- run:
name: Show git commit hash
command: |