From 34b978607646bd077281e7aac26a63c5874c303e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 8 Jun 2023 09:56:30 +0930 Subject: [PATCH] CI: suppress Postgres vacuuming during tests. build.sh did this, but we didn't carry it across to the new test matrix, leading to spurious CI failures: ``` lightningd-1 2023-06-06T16:15:34.931Z DEBUG plugin-bookkeeper: Setting up database at ***localhost:39061/accounts_0_7ccmg745 lightningd-1 2023-06-06T16:15:34.931Z INFO plugin-bookkeeper: Creating database lightningd-1 2023-06-06T16:15:34.931Z **BROKEN** plugin-bookkeeper: Error vacuuming db: VACUUM command failed: ERROR: deadlock detected\nDETAIL: Process 77248 waits for AccessShareLock on relation 1260 of database 0; blocked by process 77414.\nProcess 77414 waits for RowExclusiveLock on relation 1214 of database 0; blocked by process 77248.\nHINT: See server log for query details.\n lightningd-1 2023-06-06T16:15:34.931Z INFO plugin-bookkeeper: Killing plugin: exited before replying to init lightningd-1 2023-06-06T16:15:34.931Z **BROKEN** plugin-bookkeeper: Plugin marked as important, shutting down lightningd! ``` Signed-off-by: Rusty Russell --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eec3ee1a6..a2dcae9e9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -321,6 +321,7 @@ jobs: TEST_DEBUG: 1 TEST_DB_PROVIDER: ${{ matrix.TEST_DB_PROVIDER }} TEST_NETWORK: ${{ matrix.TEST_NETWORK }} + LIGHTNINGD_POSTGRES_NO_VACUUM: 1 run: | tar -xaf cln-${CFG}.tar.bz2 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}