From 3e44723627abd0989644ad4d414f3d55592ecc3d Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Thu, 11 Jun 2026 21:58:03 -0400 Subject: [PATCH] [CI] test-migration: raise PG lock limit (same _process_end OOM as enriched) --- .github/workflows/test-migration.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test-migration.yml b/.github/workflows/test-migration.yml index 0bde5f306eb0..6db341109f7d 100644 --- a/.github/workflows/test-migration.yml +++ b/.github/workflows/test-migration.yml @@ -53,6 +53,13 @@ jobs: run: sleep 10s - name: Install PostgreSQL client and wget run: sudo apt-get update && sudo apt-get install -y postgresql-client wget + - name: Raise Postgres lock limit + # the _process_end unlink sweep exhausts the default 64 + # max_locks_per_transaction (same as the enriched gate) + run: | + psql -d postgres -c "ALTER SYSTEM SET max_locks_per_transaction = 1024" + docker restart ${{ job.services.postgres.id }} + until pg_isready -h localhost -U odoo; do sleep 1; done - name: DB Creation run: createdb $DB - name: DB Restore