Skip to content

Commit 7516eb0

Browse files
fix(ci): add missing Postgres service container to the test job
DATABASE_URL was set to a postgresql+asyncpg://localhost:5432 DSN with no `services:` block provisioning that server, so test_forward_then_rollback_restores_baseline (which runs for real rather than skipping, since CI does set DATABASE_URL) always failed on connection refused -- previously masked by the sync/async engine bug fixed earlier in this pass, which failed before ever reaching the network. Added a postgres:16 service container with a pg_isready health check, matching the test/test/test credentials already baked into DATABASE_URL. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent c0b4cdb commit 7516eb0

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ jobs:
4545
test:
4646
timeout-minutes: 30
4747
runs-on: ubuntu-latest
48+
# db/tests/test_schema.py::test_forward_then_rollback_restores_baseline runs
49+
# a live migration round-trip against DATABASE_URL instead of skipping, so
50+
# this job needs an actual Postgres server for that DSN to resolve.
51+
services:
52+
postgres:
53+
image: postgres:16
54+
env:
55+
POSTGRES_USER: test
56+
POSTGRES_PASSWORD: test
57+
POSTGRES_DB: test
58+
ports:
59+
- 5432:5432
60+
options: >-
61+
--health-cmd="pg_isready -U test"
62+
--health-interval=5s
63+
--health-timeout=5s
64+
--health-retries=10
4865
env:
4966
DATABASE_URL: "postgresql+asyncpg://test:test@localhost:5432/test"
5067
QDRANT_URL: "http://localhost:6333"

0 commit comments

Comments
 (0)