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

[TEST] Cover custom sorting and routing in randomized testing #120584

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

kkrik-es
Copy link
Contributor

Requires some refactoring due to the fact that, with routing on sort fields, ids are auto-generated. Since some tests compare base and contender results using doc ids, the auto-generated id from contender needs to be used when indexing docs on baseline side.

Related to #109334

@kkrik-es kkrik-es added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged Team:StorageEngine :StorageEngine/Logs You know, for Logs v8.18.0 labels Jan 22, 2025
@kkrik-es kkrik-es self-assigned this Jan 22, 2025
assertOK(response);
var responseBody = entityAsMap(response);
assertThat("errors in baseline bulk response:\n " + responseBody, responseBody.get("errors"), equalTo(false));
return responseBody;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All this logic feels out of place here, specific to tests using bulk indexing.. It probably belongs more to a sibling of ReindexChallengeRestIT, like BulkChallengeRestIT. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Went ahead with this refactoring, ptal.

@kkrik-es kkrik-es marked this pull request as ready for review January 22, 2025 11:34
@kkrik-es kkrik-es requested a review from lkts January 22, 2025 11:34
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

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 :StorageEngine/Logs You know, for Logs Team:StorageEngine >test Issues or PRs that are addressing/adding tests v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants