Skip to content

Commit d99fc9f

Browse files
dmealingclaude
andcommitted
chore(ci): point the postgres health checks at the database they create
`pg_isready -U <user>` defaults the database to the username, so every 10s probe against a sidecar whose POSTGRES_DB is `<user>_test` logged `FATAL: database "<user>" does not exist`. The probe still reports the server up, so this was pure noise — but it is noise that reads like a provisioning failure in the container log and cost a wrong hypothesis while diagnosing the red release-tag runs. Name the real database in the probe. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 2d8f4c1 commit d99fc9f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
ports:
4747
- 5432:5432
4848
options: >-
49-
--health-cmd "pg_isready -U metaobjects"
49+
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
5050
--health-interval 10s
5151
--health-timeout 5s
5252
--health-retries 5
@@ -130,7 +130,7 @@ jobs:
130130
ports:
131131
- 5432:5432
132132
options: >-
133-
--health-cmd "pg_isready -U migrate"
133+
--health-cmd "pg_isready -U migrate -d migrate_test"
134134
--health-interval 10s
135135
--health-timeout 5s
136136
--health-retries 5

.github/workflows/local-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
ports:
131131
- 5432 # dynamic host port — no fixed-port collision
132132
options: >-
133-
--health-cmd "pg_isready -U metaobjects"
133+
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
134134
--health-interval 10s
135135
--health-timeout 5s
136136
--health-retries 5
@@ -172,7 +172,7 @@ jobs:
172172
ports:
173173
- 5432
174174
options: >-
175-
--health-cmd "pg_isready -U metaobjects"
175+
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
176176
--health-interval 10s
177177
--health-timeout 5s
178178
--health-retries 5
@@ -199,7 +199,7 @@ jobs:
199199
ports:
200200
- 5432
201201
options: >-
202-
--health-cmd "pg_isready -U metaobjects"
202+
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
203203
--health-interval 10s
204204
--health-timeout 5s
205205
--health-retries 5
@@ -226,7 +226,7 @@ jobs:
226226
ports:
227227
- 5432
228228
options: >-
229-
--health-cmd "pg_isready -U metaobjects"
229+
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
230230
--health-interval 10s
231231
--health-timeout 5s
232232
--health-retries 5

0 commit comments

Comments
 (0)