From 2df28d9a724b8d7cfc7ea593ce3be1034fa3d461 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Jul 2026 10:33:43 +0000 Subject: [PATCH] Gate postgres install to the sharded test_postgres_backend job Re-apply the postgres-server install step in dev's new per-file sharded test-parallel structure, conditioned on the shard whose matrix.test.path is the postgres backend test so other shards skip the apt install. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019YHSjZM6TstSAMN2PhgfUg --- .github/workflows/test-parallel.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test-parallel.yml b/.github/workflows/test-parallel.yml index 29cdbb13..b344e630 100644 --- a/.github/workflows/test-parallel.yml +++ b/.github/workflows/test-parallel.yml @@ -120,6 +120,14 @@ jobs: fi uv sync --locked --dev "${extra_args[@]}" + - name: Install PostgreSQL server binaries + if: contains(matrix.test.path, 'test_postgres_backend') + run: | + set -Eeuo pipefail + if ! ls /usr/lib/postgresql/*/bin/initdb >/dev/null 2>&1 && ! command -v initdb >/dev/null 2>&1; then + sudo apt-get update && sudo apt-get install -y postgresql + fi + - name: Run ${{ matrix.test.name }} env: TEST_PATH: ${{ matrix.test.path }}