From 26152a1b0927d10b373854e6c0a01a6128c9a187 Mon Sep 17 00:00:00 2001 From: Christopher Bartz Date: Thu, 4 Jun 2026 09:23:21 +0000 Subject: [PATCH] ci: back postgres test data dir with tmpfs to avoid test timeout --- .github/workflows/go-tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 12b55452d..6262de926 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -95,11 +95,17 @@ jobs: POSTGRES_DB: garm ports: - 5432:5432 + # Back the data directory with tmpfs (RAM). The test suite creates a + # fresh schema and runs the full migration for every test case, so the + # default disk-backed, fsync-on container makes the run slow enough to + # hit the test timeout. This database is ephemeral, so trading + # durability for speed is safe. options: >- --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + --tmpfs /var/lib/postgresql/data steps: - name: Install dependencies