Files
aevolution/tools/prepare-postgres.sh
T
dingoandClaude Opus 5.5 a33755c60d
Foundation / checks (ecs) (push) Successful in 5m55s
Foundation / checks (deploy) (push) Successful in 6m56s
Foundation / checks (tsan) (push) Successful in 9m35s
Foundation / checks (client) (push) Successful in 20m0s
Foundation / checks (network) (push) Successful in 22m38s
Foundation / checks (checks) (push) Successful in 44m57s
Foundation / checks (postgres) (push) Successful in 48m59s
Foundation / server-image (push) Successful in 40s
Foundation / image (push) Successful in 3m11s
Foundation / postgres-tools (push) Successful in 4m26s
Cut PostgreSQL CI time: parallel builds and split qualification
Compile the PostgreSQL stages with PG_BUILD_JOBS=6 (was 2), including
PostgreSQL itself. postgres-check.sh gains --full (release),
--sanitizer (ASan: C++ suite plus backup/DR/upgrade process checks that
run the instrumented binaries) and --suite-only (clang-tidy build), so
SQL-only checks run once. Each run prints per-phase timings, and the
postgres job logs runner CPU, memory and disk headroom.

Also refresh the dev REGION_SESSION_WINDOW.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 08:38:26 -04:00

21 lines
772 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Explicit preparation only; never downloaded by CMake configure.
root="$(cd "$(dirname "$0")/.." && pwd)"
cache="$root/.cache/postgres"
mkdir -p "$cache"
cd "$cache"
archive=postgresql-18.6.tar.bz2
if [ ! -f "$archive" ]; then
curl --fail --location --proto '=https' --tlsv1.2 \
"https://ftp.postgresql.org/pub/source/v18.6/$archive" -o "$archive"
fi
echo "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f $archive" | sha256sum --check -
if [ ! -d postgresql-18.6 ]; then tar -xjf "$archive"; fi
mkdir -p build
cd build
../postgresql-18.6/configure --prefix="$cache/install" --without-readline --without-icu --with-ssl=openssl
make -j"${PG_BUILD_JOBS:-6}"
make install
"$cache/install/bin/pg_config" --version