The .env.test file was being loaded in CI and overriding the CI-provided DATABASE_URL, causing tests to try connecting to localhost:5432 instead of the postgres:5432 service. Fix: Only load .env.test when NOT in CI (check for CI or WOODPECKER env vars). Co-Authored-By: Claude Opus 4.6 <[email protected]>