Skip to content

Commit c012a71

Browse files
rustyrussellcdecker
authored andcommitted
CI: suppress postgres vaccuuming.
``` [gw1] [ 98%] PASSED tests/test_wallet.py::test_hsmtool_dump_descriptors tests/test_wallet.py::test_fundchannel_listtransaction [gw0] [ 98%] PASSED tests/test_plugin.py::test_channel_opened_notification tests/test_wallet.py::test_hsmtool_generatehsm [gw0] [ 98%] PASSED tests/test_wallet.py::test_hsmtool_generatehsm tests/test_wallet.py::test_withdraw_nlocktime_fuzz [gw1] [ 98%] ERROR tests/test_wallet.py::test_fundchannel_listtransaction tests/test_wallet.py::test_fundchannel_listtransaction tests/test_wallet.py::test_withdraw_nlocktime_fuzz tests/test_wallet.py::test_fundchannel_listtransaction [gw0] [ 99%] ERROR tests/test_wallet.py::test_withdraw_nlocktime_fuzz tests/test_wallet.py::test_multiwithdraw_simple [gw1] [ 99%] ERROR tests/test_wallet.py::test_fundchannel_listtransaction tests/test_wallet.py::test_withdraw_nlocktime tests/test_wallet.py::test_multiwithdraw_simple tests/test_wallet.py::test_withdraw_nlocktime tests/test_wallet.py::test_multiwithdraw_simple tests/test_wallet.py::test_withdraw_nlocktime [gw0] [ 99%] ERROR tests/test_wallet.py::test_multiwithdraw_simple tests/test_wallet.py::test_repro_4258 [gw1] [ 99%] ERROR tests/test_wallet.py::test_withdraw_nlocktime ... 2021-10-12 06:36:09.203 UTC [224552] STATEMENT: SELECT version FROM version LIMIT 1 2021-10-12 06:36:09.566 UTC [224523] PANIC: could not write to file "pg_wal/xlogtemp.224523": No space left on device 2021-10-12 06:36:09.566 UTC [224523] STATEMENT: VACUUM FULL; Error vacuuming db: BEGIN command failed: PANIC: could not write to file "pg_wal/xlogtemp.224523": No space left on device server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. ```
1 parent da03985 commit c012a71

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/scripts/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export TEST_NETWORK=${NETWORK:-"regtest"}
1919
export TIMEOUT=900
2020
export VALGRIND=${VALGRIND:-0}
2121
export FUZZING=${FUZZING:-0}
22+
export LIGHTNINGD_POSTGRES_NO_VACUUM=1
2223

2324
pip3 install --user -U \
2425
-r requirements.lock

wallet/db_postgres.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,14 @@ static void db_postgres_teardown(struct db *db)
254254
static bool db_postgres_vacuum(struct db *db)
255255
{
256256
PGresult *res;
257+
258+
#if DEVELOPER
259+
/* This can use a lot of diskspacem breaking CI! */
260+
if (getenv("LIGHTNINGD_POSTGRES_NO_VACUUM")
261+
&& streq(getenv("LIGHTNINGD_POSTGRES_NO_VACUUM"), "1"))
262+
return true;
263+
#endif
264+
257265
res = PQexec(db->conn, "VACUUM FULL;");
258266
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
259267
db->error = tal_fmt(db, "BEGIN command failed: %s",

0 commit comments

Comments
 (0)