Skip to content

Conversation

@ldematte
Copy link
Contributor

In #137126 we refactored GPUSupport to use static initialization. Some IT tests were fixed to support this, but we did not notice that GPUIndexIT needed attention too.
GPUIndexIT uses the real (builtin) CuVSProvider, and thus does not need to provide a mock.

This PR changes the Test CuVSProvider to "bypass" itself when we do no specify a mock, so that in those cases we use the builtin provider.

@ldematte ldematte added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged :Search Relevance/Vectors Vector search branch:9.2 labels Nov 17, 2025
@elasticsearchmachine elasticsearchmachine added v9.3.0 v9.2.2 Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed branch:9.2 labels Nov 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@ldematte ldematte added the test-gpu Run tests using a GPU label Nov 17, 2025
Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ldematte ldematte removed the test-gpu Run tests using a GPU label Nov 17, 2025
@ldematte ldematte enabled auto-merge (squash) November 17, 2025 21:03
@ldematte ldematte merged commit f86f58f into elastic:main Nov 18, 2025
34 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.2

ldematte added a commit to ldematte/elasticsearch that referenced this pull request Nov 18, 2025
…Tests (elastic#138155)

In elastic#137126 we refactored GPUSupport to use static initialization. Some IT tests were fixed to support this, but we did not notice that GPUIndexIT needed attention too.
GPUIndexIT uses the real (builtin) CuVSProvider, and thus does not need to provide a mock.

This PR changes the Test CuVSProvider to "bypass" itself when we do no specify a mock, so that in those cases we use the builtin provider.
elasticsearchmachine pushed a commit that referenced this pull request Nov 18, 2025
…Tests (#138155) (#138215)

In #137126 we refactored GPUSupport to use static initialization. Some IT tests were fixed to support this, but we did not notice that GPUIndexIT needed attention too.
GPUIndexIT uses the real (builtin) CuVSProvider, and thus does not need to provide a mock.

This PR changes the Test CuVSProvider to "bypass" itself when we do no specify a mock, so that in those cases we use the builtin provider.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.2.2 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants