Repository navigation
ci: pin PostgreSQL client tools to the service version in API tests - #4
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 whicheverpg_dump/pg_restoreare onPATH, and the runner image's default client is now newer than the service containers, so the restore step fails.Evidence
finalthrough 1 Nov and now fails deterministically, including on a re-run.backup-drill.yml(which already pinspostgresql-client-16) against the samefinalcode passes: 27 tables restored identically from a 4.3 MB backup.Change
In the
backendjob, installpostgresql-client-${{ matrix.postgres }}from the PGDG repository and exportPG_BIN, mirroring the existing step inbackup-drill.yml. CI configuration only; no application or test code changes.