chore(test-isolation): broaden runtime ignore list for live fusion app paths

Live fusion instances running on a shared HOME write to tasks/, messages/,
memory-insights.md, test-cache.json, HEARTBEAT.md, kb.db.backup-*, and
fusion.db.pre-* snapshots; none were in the runtime ignore list, so the
script flagged them as test-driven mutations and failed merge build
verification. Recursion in collectFusionSignature only filters via top-level
matches, so adding these top-level patterns short-circuits descent into
live-app dirs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-06 11:53:28 -07:00
parent d8fd83a921
commit 593b42ea79
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
---
"@runfusion/fusion": patch
---
Extend `scripts/check-test-isolation.mjs` runtime ignore list to cover live
fusion app paths that previously tripped the merge-time check when a fusion
instance was running on the same HOME during tests: `tasks/`, `messages/`,
`memory-insights.md`, `test-cache.json`, `HEARTBEAT.md`, `kb.db.backup-*`,
and `fusion.db.pre-*` snapshots. Tests still must not write to these paths;
the filter only suppresses noise from a concurrently-running app.

View File

@@ -67,13 +67,18 @@ const RUNTIME_IGNORE_PATTERNS = [
/^cache(?:[/\\]|$)/,
/^config\.json$/,
/^fusion-central\.db(?:-wal|-shm|-journal)?$/,
/^fusion\.db(?:-wal|-shm|-journal)?(?:\.backup-[\w-]+)?$/,
/^fusion\.db(?:-wal|-shm|-journal)?(?:\.backup-[\w-]+)?(?:\.pre-[\w-]+)?$/,
/^archive\.db(?:-wal|-shm|-journal)?(?:\.backup-[\w-]+)?$/,
/^kb\.db(?:-wal|-shm|-journal)?(?:\.backup-[\w-]+)?$/,
/^activity-log\.jsonl$/,
/^settings\.json$/,
/^logs(?:[/\\]|$)/,
/^tasks(?:[/\\]|$)/,
/^memory(?:[/\\]|$)/,
/^messages(?:[/\\]|$)/,
/^memory-insights\.md$/,
/^test-cache\.json$/,
/^HEARTBEAT\.md$/,
/^MEMORY\.md$/,
/^DREAMS\.md$/,
/^\d{4}-\d{2}-\d{2}\.md$/,