Skip to content

Real testcontainers tests for OpenSearch (fixes reconnect) — #829 - #847

Merged
AmitoVrito merged 2 commits into
mainfrom
feat/issue-829-testcontainers-opensearch
Jul 21, 2026
Merged

AmitoVrito merged 2 commits into
mainfrom
feat/issue-829-testcontainers-opensearch

Conversation

@AmitoVrito

Copy link
Copy Markdown
Collaborator

Next in epic #829: OpenSearch. Async and k-NN mapping were already correct (nmslib works on OpenSearch 2.17); the one bug was reconnect persistence (#846) — a fresh instance returned []. Now returns [] only on a genuine NotFoundError. 8/8 pass against real opensearchproject/opensearch:2.17 (real k-NN ranking, metadata filter, reconnect, async contract), wired into the CI integration job. Part of #829.

…nnect (#846)

Only MagicMock-tested, which hid that search() returned [] whenever it had no
cached dimension — so a reconnected instance never found already-indexed vectors.
Drop the guard; _search_sync returns [] on NotFoundError (covers search-before-add
and reconnect). Adds real opensearch testcontainers tests and removes the MagicMock
test. (Async and the k-NN mapping were already correct on real OpenSearch 2.17.)

Part of #829. Closes #846.
@AmitoVrito
AmitoVrito merged commit 77683f3 into main Jul 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant