From a19fc9935aac45553dc60ed4c504cd693d610330 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sat, 17 Oct 2026 10:15:35 +0000 Subject: [PATCH] test(dbbackup): discover tests write backups to a temp dir, never ~/Backups/diskpush The sandbox set sqliteRoots but not backupDir, so every local run left fake dev2-app / dev2-crawlproof dumps in the real backup folder, where a nightly fleet backup then copied them off-box. Co-Authored-By: Claude Opus 5.5 --- packages/plugin-dbbackup/src/discover.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-dbbackup/src/discover.test.ts b/packages/plugin-dbbackup/src/discover.test.ts index 8068eb5..6c5d814 100644 --- a/packages/plugin-dbbackup/src/discover.test.ts +++ b/packages/plugin-dbbackup/src/discover.test.ts @@ -314,6 +314,8 @@ function sandbox() { registry.register(createDbBackupPlugin()) const settings = registry.settingsFor('dbbackup') void settings.set('sqliteRoots', root) + // Never the default ~/Backups/diskpush: a test must not leave fake dumps where real ones go. + void settings.set('backupDir', backups) const env = { PATH: `${bin}:/usr/bin:/bin`, HOME: process.env.HOME } const servers: ServerDirectory = { list: async () => [{ name: 'dev2', host: 'dev2.example', port: 22, username: 'root', keyPath: null, jumpHost: null, sshConfigAlias: null, passwordAuth: false }],