Skip to content

Commit 093d139

Browse files
fix: remove schema parameter from cache-db DATABASE_URL for E2E
The tj-actions/pg-dump and pg-restore actions pass the DATABASE_URL directly to libpq, which doesn't support Prisma's ?schema= parameter. This was causing the cache step to fail with 'invalid connection option schema' on cache misses. This fix passes a clean DATABASE_URL (without schema parameter) to the cache-db action for pg_dump/pg_restore operations. The db-seed step will still use the job-level DATABASE_URL environment variable which includes the schema parameter, so Prisma operations work correctly. Each E2E shard still has a unique cache path to prevent collisions. Co-Authored-By: Volnei Munhoz <[email protected]>
1 parent fcb95eb commit 093d139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
- uses: ./.github/actions/cache-db
9797
with:
9898
path: backups/e2e-shard-${{ matrix.shard }}.sql
99-
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}?schema=shard_${{ matrix.shard }}
99+
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}
100100
- uses: ./.github/actions/cache-build
101101

102102
- name: Run Tests

0 commit comments

Comments
 (0)