From 7e572d0829bbb2ab2d640f1f996a6d0c2a5327db Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Sat, 6 Jun 2026 03:42:34 +0000 Subject: [PATCH] ci: fix pg_isready health check to use -U postgres Docker health checks run as root inside the container. pg_isready without -U defaults to the OS username (root), causing FATAL: role "root" does not exist every 10s in CI logs. --- .github/workflows/ci.yml | 2 +- .github/workflows/integration-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e34cf74d..b9eb5b16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: POSTGRES_USER: postgres POSTGRES_PASSWORD: password options: >- - --health-cmd pg_isready + --health-cmd "pg_isready -U postgres" --health-interval 10s --health-timeout 5s --health-retries 5 diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index e27de843..58f859b1 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -24,7 +24,7 @@ jobs: POSTGRES_USER: postgres POSTGRES_PASSWORD: password options: >- - --health-cmd pg_isready + --health-cmd "pg_isready -U postgres" --health-interval 10s --health-timeout 5s --health-retries 5