From 8b0172b4f01c77d5d1df3027739772dbb83dddde Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 May 2026 11:12:28 +0000 Subject: [PATCH 1/2] fix(tests): fix postgres connection URL scheme and upgrade postgres image - Change tcp:// to postgres:// in test connection strings (api.js, api.ts, postgresConnectionUrl.js) - Upgrade postgres service image from 9.6-alpine to 16-alpine in CI workflow --- .github/workflows/ci.yml | 2 +- test/api.js | 2 +- test/api.ts | 2 +- test/postgresConnectionUrl.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a1128f..969f119 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: services: postgres: - image: postgres:9.6-alpine + image: postgres:16-alpine env: POSTGRES_USER: postgrator POSTGRES_PASSWORD: postgrator diff --git a/test/api.js b/test/api.js index 317603f..898bac8 100644 --- a/test/api.js +++ b/test/api.js @@ -4,7 +4,7 @@ const Postgrator = require('../postgrator') const path = require('path') const migrationDirectory = path.join(__dirname, 'migrations') -const pgUrl = 'tcp://postgrator:postgrator@localhost:5432/postgrator' +const pgUrl = 'postgres://postgrator:postgrator@localhost:5432/postgrator' describe('API', function() { const postgrator = new Postgrator({ diff --git a/test/api.ts b/test/api.ts index 1921024..be8e39f 100644 --- a/test/api.ts +++ b/test/api.ts @@ -3,7 +3,7 @@ import * as Postgrator from '../' import * as path from 'path' const migrationDirectory = path.join(__dirname, 'migrations') -const pgUrl = 'tcp://postgrator:postgrator@localhost:5432/postgrator' +const pgUrl = 'postgres://postgrator:postgrator@localhost:5432/postgrator' describe('TypeScript:API', function() { const postgrator = new Postgrator({ diff --git a/test/postgresConnectionUrl.js b/test/postgresConnectionUrl.js index e28f1a6..ed84b5b 100644 --- a/test/postgresConnectionUrl.js +++ b/test/postgresConnectionUrl.js @@ -4,7 +4,7 @@ const Postgrator = require('../postgrator') const path = require('path') const migrationDirectory = path.join(__dirname, 'migrations') -const pgUrl = 'tcp://postgrator:postgrator@localhost:5432/postgrator' +const pgUrl = 'postgres://postgrator:postgrator@localhost:5432/postgrator' describe('Postgres connection url', function() { const postgrator = new Postgrator({ From 88ec874dc7660c8a14b0249eabf08f41c26c79c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 May 2026 12:10:36 +0000 Subject: [PATCH 2/2] fix(ci): set POSTGRES_HOST_AUTH_METHOD=md5 for pg@7 SCRAM compatibility --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 969f119..2e012d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: POSTGRES_USER: postgrator POSTGRES_PASSWORD: postgrator POSTGRES_DB: postgrator + POSTGRES_HOST_AUTH_METHOD: md5 ports: - 5432:5432 options: >-