fix(knowledge): retry a projection fill page after an index lock or statement timeout instead of ending the chain - #8137
Conversation
…tatement timeout instead of ending the chain
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
…n statement timeouts
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Type of Change
Testing
packages/db:vitest run script-migrations/0021_embedding_search_connector.test.ts— 13 passed. New cases: a 55P03 page and a 57014 page are each retried and the cursor is bound to the last committed page on every retry; the run fails once a page times out more than the limit in a row; a non-timeout error propagates without retry; a page still failing at the budget returnsdone: falsewith the last committed cursor. Verified the four new cases go red with the retry removedapps/sim:vitest run lib/knowledge/search/projection-source-acl-backfill.test.ts— 21 passedbun run type-checkinpackages/dbandapps/sim,bun run lintat the root,bun run check:migrations origin/staging(no new migrations)Checklist