Skip to content

ci: pin PostgreSQL client tools to the service version in API tests - #4

Merged
Divyakush2006 merged 1 commit into
finalfrom
ci/match-postgres-client-tools
Nov 16, 2026
Merged

Divyakush2006 merged 1 commit into
finalfrom
ci/match-postgres-client-tools

Conversation

@Divyakush2006

Copy link
Copy Markdown
Owner

Problem

The API tests jobs (PostgreSQL 15 and 16) started failing in backup_drill.test.js → restores every table with the same rows and content. The drill uses whichever pg_dump / pg_restore are on PATH, and the runner image's default client is now newer than the service containers, so the restore step fails.

Evidence

  • The suite passed on final through 1 Nov and now fails deterministically, including on a re-run.
  • Running backup-drill.yml (which already pins postgresql-client-16) against the same final code passes: 27 tables restored identically from a 4.3 MB backup.

Change

In the backend job, install postgresql-client-${{ matrix.postgres }} from the PGDG repository and export PG_BIN, mirroring the existing step in backup-drill.yml. CI configuration only; no application or test code changes.

The backup-restore drill test uses whatever pg_dump and pg_restore are on
PATH. The runner image's default client is now newer than the PostgreSQL 15
and 16 services, and the restore fails. Install the client matching each
matrix version and point PG_BIN at it, the same way backup-drill.yml already
does. The drill itself passes unchanged with matching tools.
@Divyakush2006
Divyakush2006 merged commit c87814e into final Nov 16, 2026
6 checks passed
@Divyakush2006
Divyakush2006 deleted the ci/match-postgres-client-tools branch November 16, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant