From 7d1f1485168e4fd8118fbc1284207f0b26ab2660 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Mon, 28 Sep 2026 21:51:36 -0700 Subject: [PATCH] fix(knowledge): shrink the member lifecycle budget tests so they stop timing out in CI --- .../member-document-lifecycle.integration.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/sim/lib/knowledge/__integration__/member-document-lifecycle.integration.ts b/apps/sim/lib/knowledge/__integration__/member-document-lifecycle.integration.ts index d231b378c92..d4ed76522d1 100644 --- a/apps/sim/lib/knowledge/__integration__/member-document-lifecycle.integration.ts +++ b/apps/sim/lib/knowledge/__integration__/member-document-lifecycle.integration.ts @@ -42,6 +42,15 @@ import { stillHoldsMemberSyncLock, } from '@/lib/knowledge/connectors/sync-lock' +/** + * A three-page budget keeps the budget-boundary tests near two thousand documents; the production + * budget made them seed over ten thousand and run past the timeout on slower CI Postgres. + */ +vi.mock('@/lib/knowledge/connectors/sync-limits', async (importOriginal) => ({ + ...(await importOriginal>()), + MEMBER_TOMBSTONE_RECONCILE_PAGES_PER_RUN: 3, +})) + describe('member document lifecycle in PostgreSQL', () => { let ids: ReturnType let members: Awaited>