From 1c49b3e03b3c6528a49dd133bc1211cdc9544704 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Tue, 7 Jul 2026 01:28:28 +0000 Subject: [PATCH] ci: tune Postgres durability in pg test jobs --- .github/workflows/run-tests.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 9ce7797a8..3035a0f5c 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -223,6 +223,11 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + # Durability is irrelevant for throwaway CI databases. Disabling fsync + # and synchronous commit avoids checkpoint I/O stalls on CI runners. + - name: Tune Postgres for CI (disable durability) + run: pnpm --filter pgpm exec node dist/index.js tune --yes + - name: Seed app_user run: | pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes @@ -331,6 +336,11 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + # Durability is irrelevant for throwaway CI databases. Disabling fsync + # and synchronous commit avoids checkpoint I/O stalls on CI runners. + - name: Tune Postgres for CI (disable durability) + run: pnpm --filter pgpm exec node dist/index.js tune --yes + - name: Seed app_user run: | pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes @@ -402,6 +412,11 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + # Durability is irrelevant for throwaway CI databases. Disabling fsync + # and synchronous commit avoids checkpoint I/O stalls on CI runners. + - name: Tune Postgres for CI (disable durability) + run: pnpm --filter pgpm exec node dist/index.js tune --yes + - name: Seed app_user run: | pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes