From 0a343485008d07bd08068447936084329ac02bef Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 14 Oct 2026 11:01:10 +0200 Subject: [PATCH] ci: put the newest pg_dump first on PATH for backend tests (#11757) Co-authored-by: Claude Opus 5.5 --- .github/workflows/backend-test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index 7a045ad70a..b01e99a696 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -85,11 +85,14 @@ jobs: working-directory: / - name: Install PowerShell, mold, clang and the latest pg_dump # PGDG's `postgresql-client` is its newest major, Ubuntu's is not: the `postgres` service - # image floats, and pg_dump refuses a server newer than itself. + # image floats, and pg_dump refuses a server newer than itself. `/usr/bin/pg_dump` picks + # the version of the runner's own preinstalled cluster, so the newest bin dir goes first. run: | sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y sudo apt-get update && sudo apt-get install -y powershell mold clang libcurl4-openssl-dev postgresql-client - pg_dump --version + PG_BIN="/usr/lib/postgresql/$(ls /usr/lib/postgresql | sort -n | tail -1)/bin" + echo "$PG_BIN" >> "$GITHUB_PATH" + "$PG_BIN/pg_dump" --version working-directory: / - uses: actions-rust-lang/setup-rust-toolchain@v1 with: