From 1d4cd27c73060945f489d928bb408f63f3eeb3aa Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Thu, 23 Jul 2026 22:09:51 -0700 Subject: [PATCH] fix(tests): give PG-harness plugin suites the 15s timeout the golden-template harness budgets for MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shared pg-test-harness pays the golden schema-template cold start inside the first PG test of each vitest invocation and is budgeted against core's 15s testTimeout, but the six PG-consuming plugin packages ran at vitest's 5s default — on saturated CI runners the first PG test (e.g. whatsapp-chat persistence.pg) timed out before its assertions ran. Propagate the 15s budget to all six plugin configs. Co-Authored-By: Claude Fable 5 --- .../fusion-plugin-cli-printing-press/vitest.config.ts | 10 ++++++++++ .../vitest.config.ts | 10 ++++++++++ .../vitest.config.ts | 10 ++++++++++ plugins/fusion-plugin-reports/vitest.config.ts | 10 ++++++++++ plugins/fusion-plugin-roadmap/vitest.config.ts | 10 ++++++++++ plugins/fusion-plugin-whatsapp-chat/vitest.config.ts | 9 +++++++++ 6 files changed, 59 insertions(+) diff --git a/plugins/fusion-plugin-cli-printing-press/vitest.config.ts b/plugins/fusion-plugin-cli-printing-press/vitest.config.ts index 64c7e31025..0712c1116e 100644 --- a/plugins/fusion-plugin-cli-printing-press/vitest.config.ts +++ b/plugins/fusion-plugin-cli-printing-press/vitest.config.ts @@ -41,5 +41,15 @@ export default defineConfig({ pool: "threads", maxWorkers, minWorkers: 1, + /* + FNXC:PluginPgTestTimeout 2026-07-23-22:15: + The shared PG test harness (packages/core/src/__test-utils__/pg-test-harness.ts) pays its + golden-schema-template cold start inside the FIRST pg test of a vitest invocation, which is + budgeted for the 15s testTimeout its home package (@fusion/core) configures. Plugin packages + ran at vitest's 5s default, so the whatsapp-chat persistence.pg.test.ts timed out on loaded + CI runners (full-suite shard 4, 2026-07-24). Align every pg-harness-consuming plugin with + core's budget. + */ + testTimeout: 15_000, }, }); diff --git a/plugins/fusion-plugin-compound-engineering/vitest.config.ts b/plugins/fusion-plugin-compound-engineering/vitest.config.ts index ac39cc7f7a..33cf21b46e 100644 --- a/plugins/fusion-plugin-compound-engineering/vitest.config.ts +++ b/plugins/fusion-plugin-compound-engineering/vitest.config.ts @@ -66,6 +66,16 @@ export default defineConfig({ pool: "threads", maxWorkers, minWorkers: 1, + /* + FNXC:PluginPgTestTimeout 2026-07-23-22:15: + The shared PG test harness (packages/core/src/__test-utils__/pg-test-harness.ts) pays its + golden-schema-template cold start inside the FIRST pg test of a vitest invocation, which is + budgeted for the 15s testTimeout its home package (@fusion/core) configures. Plugin packages + ran at vitest's 5s default, so the whatsapp-chat persistence.pg.test.ts timed out on loaded + CI runners (full-suite shard 4, 2026-07-24). Align every pg-harness-consuming plugin with + core's budget. + */ + testTimeout: 15_000, projects: [ { extends: true, diff --git a/plugins/fusion-plugin-even-realities-glasses/vitest.config.ts b/plugins/fusion-plugin-even-realities-glasses/vitest.config.ts index 0ce6bd3a96..018c32c2d4 100644 --- a/plugins/fusion-plugin-even-realities-glasses/vitest.config.ts +++ b/plugins/fusion-plugin-even-realities-glasses/vitest.config.ts @@ -19,5 +19,15 @@ export default defineConfig({ pool: "threads", maxWorkers, minWorkers: 1, + /* + FNXC:PluginPgTestTimeout 2026-07-23-22:15: + The shared PG test harness (packages/core/src/__test-utils__/pg-test-harness.ts) pays its + golden-schema-template cold start inside the FIRST pg test of a vitest invocation, which is + budgeted for the 15s testTimeout its home package (@fusion/core) configures. Plugin packages + ran at vitest's 5s default, so the whatsapp-chat persistence.pg.test.ts timed out on loaded + CI runners (full-suite shard 4, 2026-07-24). Align every pg-harness-consuming plugin with + core's budget. + */ + testTimeout: 15_000, }, }); diff --git a/plugins/fusion-plugin-reports/vitest.config.ts b/plugins/fusion-plugin-reports/vitest.config.ts index 959c2c7198..8d252eafec 100644 --- a/plugins/fusion-plugin-reports/vitest.config.ts +++ b/plugins/fusion-plugin-reports/vitest.config.ts @@ -39,6 +39,16 @@ export default defineConfig({ pool: "threads", maxWorkers, minWorkers: 1, + /* + FNXC:PluginPgTestTimeout 2026-07-23-22:15: + The shared PG test harness (packages/core/src/__test-utils__/pg-test-harness.ts) pays its + golden-schema-template cold start inside the FIRST pg test of a vitest invocation, which is + budgeted for the 15s testTimeout its home package (@fusion/core) configures. Plugin packages + ran at vitest's 5s default, so the whatsapp-chat persistence.pg.test.ts timed out on loaded + CI runners (full-suite shard 4, 2026-07-24). Align every pg-harness-consuming plugin with + core's budget. + */ + testTimeout: 15_000, projects: [ { extends: true, diff --git a/plugins/fusion-plugin-roadmap/vitest.config.ts b/plugins/fusion-plugin-roadmap/vitest.config.ts index d31d84b32e..b7982e41d6 100644 --- a/plugins/fusion-plugin-roadmap/vitest.config.ts +++ b/plugins/fusion-plugin-roadmap/vitest.config.ts @@ -28,6 +28,16 @@ export default defineConfig({ pool: "threads", maxWorkers, minWorkers: 1, + /* + FNXC:PluginPgTestTimeout 2026-07-23-22:15: + The shared PG test harness (packages/core/src/__test-utils__/pg-test-harness.ts) pays its + golden-schema-template cold start inside the FIRST pg test of a vitest invocation, which is + budgeted for the 15s testTimeout its home package (@fusion/core) configures. Plugin packages + ran at vitest's 5s default, so the whatsapp-chat persistence.pg.test.ts timed out on loaded + CI runners (full-suite shard 4, 2026-07-24). Align every pg-harness-consuming plugin with + core's budget. + */ + testTimeout: 15_000, projects: [ { extends: true, diff --git a/plugins/fusion-plugin-whatsapp-chat/vitest.config.ts b/plugins/fusion-plugin-whatsapp-chat/vitest.config.ts index 0ce6bd3a96..5d8d57466d 100644 --- a/plugins/fusion-plugin-whatsapp-chat/vitest.config.ts +++ b/plugins/fusion-plugin-whatsapp-chat/vitest.config.ts @@ -19,5 +19,14 @@ export default defineConfig({ pool: "threads", maxWorkers, minWorkers: 1, + /* + FNXC:PluginPgTestTimeout 2026-07-23-22:15: + The shared PG test harness (packages/core/src/__test-utils__/pg-test-harness.ts) pays its + golden-schema-template cold start inside the FIRST pg test of a vitest invocation, which is + budgeted for the 15s testTimeout its home package (@fusion/core) configures. Plugin packages + ran at vitest's 5s default, so persistence.pg.test.ts timed out on loaded CI runners + (full-suite shard 4, 2026-07-24). Align every pg-harness-consuming plugin with core's budget. + */ + testTimeout: 15_000, }, });