From 26eedcc4f219c084ddc2829179e3b3042d64ec35 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sun, 26 Apr 2026 00:54:11 +0200 Subject: [PATCH] debug(ci): add connection diagnostics before migrate --- .gitea/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 1a9c62b..c44ff87 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -52,6 +52,15 @@ jobs: - name: Install dependencies run: npm install --ignore-scripts && deno install + - name: Debug connection + run: | + echo "--- pg_hba.conf ---" + sudo cat /etc/postgresql/*/main/pg_hba.conf | grep -v "^#" | grep -v "^$" + echo "--- listening ports ---" + sudo ss -tlnp | grep 5432 || echo "nothing on 5432" + echo "--- test connection ---" + PGPASSWORD=test psql -h localhost -U test -d polympr_test -c "SELECT 1" || echo "connection failed" + - name: Apply migrations env: POSTGRES_HOST: localhost