opensearch-project / ml-commons

ml-commons provides a set of common machine learning algorithms, e.g. k-means, or linear regression, to help developers build ML related features within OpenSearch.
Apache License 2.0
86 stars 120 forks source link

[BUG] Flaky integration test #2565

Open zane-neo opened 3 weeks ago

zane-neo commented 3 weeks ago

What is the bug? The below IT is flaky: https://github.com/opensearch-project/ml-commons/actions/runs/9540553655/job/26297294535?pr=2500#step:6:2743, need to fix this.

How can one reproduce the bug? Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What is the expected behavior? A clear and concise description of what you expected to happen.

What is your host/environment?

Do you have any screenshots? If applicable, add screenshots to help explain your problem.

Do you have any additional context? Add any other context about the problem.

rbhavna commented 3 weeks ago

Below is the error we are seeing:


    org.opensearch.client.ResponseException: method [POST], host [http://[::1]:40201], URI [/_plugins/_ml/models/null/_deploy], status line [HTTP/1.1 404 Not Found]
    {"error":{"root_cause":[{"type":"status_exception","reason":"Failed to find model"}],"type":"status_exception","reason":"Failed to find model"},"status":404}
        at __randomizedtesting.SeedInfo.seed([1710F9F105660AC2:A819478207165E21]:0)
        at app//org.opensearch.client.RestClient.convertResponse(RestClient.java:385)
        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:355)
        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:330)
        at app//org.opensearch.ml.utils.TestHelper.makeRequest(TestHelper.java:179)
        at app//org.opensearch.ml.utils.TestHelper.makeRequest(TestHelper.java:152)
        at app//org.opensearch.ml.utils.TestHelper.makeRequest(TestHelper.java:141)
        at app//org.opensearch.ml.rest.RestMLRemoteInferenceIT.deployRemoteModel(RestMLRemoteInferenceIT.java:1043)
        at app//org.opensearch.ml.rest.MLCommonsRestTestCase.registerRemoteModel(MLCommonsRestTestCase.java:1010)
        at app//org.opensearch.ml.rest.RestMLInferenceIngestProcessorIT.setup(RestMLInferenceIngestProcessorIT.java:116)`
dblock commented 4 days ago

[Catch All Triage, attendees 1, 2, 3, 4, 5, 6, 7]