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: postgresql auth_ui_unit_tests

Ishaan Jaffer8c4ca82235a8
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 0a4d8ede878..0d1e6b6ea97 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -404,11 +404,31 @@ 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: Wait for PostgreSQL to be ready
+ command: |
+ sudo apt-get update
+ 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: Install Dependencies
command: |