From b0e823f9ebb1eb7e6c01aeb73afbcb7b4c994c1d Mon Sep 17 00:00:00 2001 From: Peter Ringelmann Date: Thu, 11 Jun 2026 20:47:12 +0200 Subject: [PATCH 1/3] test(playwright): fix local test server config for SQLite runs Signed-off-by: Peter Ringelmann --- tests/playwright/start-nextcloud-server.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/playwright/start-nextcloud-server.js b/tests/playwright/start-nextcloud-server.js index aa7212f6b5c62..b2a95fbe1c308 100644 --- a/tests/playwright/start-nextcloud-server.js +++ b/tests/playwright/start-nextcloud-server.js @@ -51,6 +51,13 @@ async function start() { process.stdout.write('\nApply custom configuration for Playwright tests\n') await runOcc(['config:system:set', 'appstoreenabled', '--value', 'false', '--type', 'boolean']) process.stdout.write('├─ Disabled app store\n') + // createRandomUser() generates short passwords that the policy would reject + await runOcc(['app:disable', 'password_policy']) + process.stdout.write('├─ Disabled password policy for random test users\n') + // PDO::ATTR_TIMEOUT (2) = SQLite busy timeout in seconds; without it parallel + // workers hit "database is locked" 500s on write collisions + await runOcc(['config:system:set', 'dbdriveroptions', '2', '--value', '5', '--type', 'integer']) + process.stdout.write('├─ Set SQLite busy timeout for parallel workers\n') await runExec(['php', '-r', '$db = new SQLite3("data/owncloud.db");$db->busyTimeout(5000);$db->exec("PRAGMA journal_mode = wal;");']) process.stdout.write('├─ Enabled SQLite WAL mode for better performance\n') process.stdout.write('├─ Initialize cron job...\n') From 5137f3030e9e4540207843516c3df293e14767d2 Mon Sep 17 00:00:00 2001 From: Peter Ringelmann Date: Thu, 11 Jun 2026 21:20:21 +0200 Subject: [PATCH 2/3] fix: remove uneccessary dbconfig change Signed-off-by: Peter Ringelmann --- tests/playwright/start-nextcloud-server.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/playwright/start-nextcloud-server.js b/tests/playwright/start-nextcloud-server.js index b2a95fbe1c308..2c0ec9f870151 100644 --- a/tests/playwright/start-nextcloud-server.js +++ b/tests/playwright/start-nextcloud-server.js @@ -54,9 +54,6 @@ async function start() { // createRandomUser() generates short passwords that the policy would reject await runOcc(['app:disable', 'password_policy']) process.stdout.write('├─ Disabled password policy for random test users\n') - // PDO::ATTR_TIMEOUT (2) = SQLite busy timeout in seconds; without it parallel - // workers hit "database is locked" 500s on write collisions - await runOcc(['config:system:set', 'dbdriveroptions', '2', '--value', '5', '--type', 'integer']) process.stdout.write('├─ Set SQLite busy timeout for parallel workers\n') await runExec(['php', '-r', '$db = new SQLite3("data/owncloud.db");$db->busyTimeout(5000);$db->exec("PRAGMA journal_mode = wal;");']) process.stdout.write('├─ Enabled SQLite WAL mode for better performance\n') From a51d520c0474cd82d4157bcf09a8d0bfce18e8ef Mon Sep 17 00:00:00 2001 From: Peter Ringelmann Date: Thu, 11 Jun 2026 23:08:51 +0200 Subject: [PATCH 3/3] fix: remove sql line Signed-off-by: Peter Ringelmann --- tests/playwright/start-nextcloud-server.js | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/playwright/start-nextcloud-server.js b/tests/playwright/start-nextcloud-server.js index 2c0ec9f870151..ac81788f692b8 100644 --- a/tests/playwright/start-nextcloud-server.js +++ b/tests/playwright/start-nextcloud-server.js @@ -54,7 +54,6 @@ async function start() { // createRandomUser() generates short passwords that the policy would reject await runOcc(['app:disable', 'password_policy']) process.stdout.write('├─ Disabled password policy for random test users\n') - process.stdout.write('├─ Set SQLite busy timeout for parallel workers\n') await runExec(['php', '-r', '$db = new SQLite3("data/owncloud.db");$db->busyTimeout(5000);$db->exec("PRAGMA journal_mode = wal;");']) process.stdout.write('├─ Enabled SQLite WAL mode for better performance\n') process.stdout.write('├─ Initialize cron job...\n')