Skip to content

Mock embedding model to address flaky vector tests #1822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

miguelgrinberg
Copy link
Collaborator

The recent vector tests download a model from hugging face. This PR mocks the model to prevent these random failures.

@miguelgrinberg miguelgrinberg force-pushed the mock-embeddings-in-tests branch from aa9bae6 to 5d39598 Compare May 10, 2024 17:53
@miguelgrinberg
Copy link
Collaborator Author

Merging this, very low risk.

@miguelgrinberg miguelgrinberg merged commit b5435a8 into elastic:main May 10, 2024
15 checks passed
@miguelgrinberg miguelgrinberg deleted the mock-embeddings-in-tests branch May 10, 2024 18:03
@miguelgrinberg miguelgrinberg added the backport 8.x Backport to 8.x label May 10, 2024
github-actions bot pushed a commit that referenced this pull request May 10, 2024
miguelgrinberg added a commit that referenced this pull request May 10, 2024
(cherry picked from commit b5435a8)

Co-authored-by: Miguel Grinberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 8.x Backport to 8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant