Skip to content

Conversation

@jonathan-buttner
Copy link
Contributor

This PR addresses this issue: #117208

The test is trying to download and deploy the elser model and it is also persisting an inference endpoint while doing that.

This fix tries to force the backing indices to be created by persisting a model before we try executing multiple elser requests.

@jonathan-buttner jonathan-buttner added >test Issues or PRs that are addressing/adding tests :ml Machine learning Team:ML Meta label for the ML team v9.3.0 labels Oct 24, 2025
@jonathan-buttner jonathan-buttner marked this pull request as ready for review October 24, 2025 19:28
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@jonathan-buttner jonathan-buttner changed the title [ML] Initialize backing indices before running integration tests [ML] Initialize backing indices before running integration test Oct 24, 2025
Comment on lines 197 to 200
public void testMultipleInferencesTriggeringDownloadAndDeploy() throws InterruptedException, IOException {
// Creating an inference endpoint to force the backing indices to be created to reduce the likelihood of the test failing
// because it's trying to interact with the indices while they're being created.
putModel("initial-model", mockCompletionServiceModelConfig(TaskType.SPARSE_EMBEDDING, "streaming_completion_test_service"));
Copy link
Contributor

Choose a reason for hiding this comment

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

If you delete this endpoint right after creating it, will the backing indices still exist? If so, it would be cleaner to create then delete the endpoint so that you don't need to account for an extra endpoint hanging around in other tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I'll give that a shot 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] DefaultEndPointsIT testMultipleInferencesTriggeringDownloadAndDeploy failing

3 participants