Skip to content

fix: check queryable flag in waitUntilSearchIndexIsQueryable to prevent premature auto-embed queries#1050

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-autoembed-text-query-test
Draft

fix: check queryable flag in waitUntilSearchIndexIsQueryable to prevent premature auto-embed queries#1050
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-autoembed-text-query-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

  • Identify root cause: after queryable: true, Voyage AI embeddings may not be applied yet on cold start; second test passes because Voyage API is already warm from the first test's setup
  • Previous fix: check queryable flag in waitUntilSearchIndexIsQueryable
  • Add waitUntilSearchIndexHasResults helper that probes actual $vectorSearch results via direct MongoDB query
  • Use it in the auto-embed test beforeEach after waitUntilSearchIndexIsQueryable
  • TypeScript and ESLint checks pass; unit tests all pass

Copilot AI requested a review from gagik April 14, 2026 11:31
@github-actions
Copy link
Copy Markdown
Contributor

This PR has gone 30 days without any activity and meets the project's definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants