Skip to content
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

Expanding and refactoring the vector rolling upgrade tests #107020

Merged

Conversation

benwtrent
Copy link
Member

This commit removes the legacy yaml rolling upgrade tests for vectors to the new rolling upgrade package.

Also, it adds rolling upgrade tests for int8_hnsw.

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests test-full-bwc Trigger full BWC version matrix tests :Search Relevance/Vectors Vector search v8.14.0 labels Apr 2, 2024
@benwtrent benwtrent requested a review from a team as a code owner April 2, 2024 20:44
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Apr 2, 2024
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

LGTM

@benwtrent benwtrent requested a review from pmpailis April 8, 2024 15:26
"Float vector search is not supported on this version",
getOldClusterTestVersion().onOrAfter(FLOAT_VECTOR_SEARCH_VERSION)
);
if (isOldCluster()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

One silly question as I'm not really familiar with this new framework. Will this be invoked during all steps in a strict order (old cluster / mixed / upgraded) so with this check here we ensure that the index creation will only run once?

"type": "dense_vector",
"dims": 3,
"element_type": "byte",
"index": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add a byte-flat test case?

response = search(searchRequest);
assertThat(extractValue(response, "hits.total.value"), equalTo(2));
hits = extractValue(response, "hits.hits");
assertThat(hits.get(0).get("_id"), equalTo("2"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it'd be useful to add a small comment on why the first result is different and/or set explicit similarity (as that could be subject to change in-between releases) ? Or do we want to use the defaults ?

@pmpailis
Copy link
Contributor

pmpailis commented Apr 8, 2024

Thanks @benwtrent ! Added some comments, mostly for my understanding! :)

Copy link
Contributor

@pmpailis pmpailis left a comment

Choose a reason for hiding this comment

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

LGTM!

@benwtrent
Copy link
Member Author

@elasticmachine update branch

@benwtrent benwtrent merged commit 9e502aa into elastic:main Apr 10, 2024
14 checks passed
@benwtrent benwtrent deleted the test/move-and-expand-vector-bwc-tests branch April 10, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search Relevance/Vectors Vector search Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests test-full-bwc Trigger full BWC version matrix tests v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants