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

Flaky Test RestMLGuardrailsIT #2383

Open
mingshl opened this issue Apr 30, 2024 · 1 comment
Open

Flaky Test RestMLGuardrailsIT #2383

mingshl opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
flaky-test Flaky build or test issue

Comments

@mingshl
Copy link
Collaborator

mingshl commented Apr 30, 2024

What is the bug?
RestMLGuardrailsIT.testPredictRemoteModelSuccess failed in #2380

How can one reproduce the bug?

    REPRODUCE WITH: gradlew ':opensearch-ml-plugin:integTest' --tests "org.opensearch.ml.rest.RestMLGuardrailsIT.testPredictRemoteModelSuccess" -Dtests.seed=3BAA4A652C7FFA21 -Dtests.security.manager=false -Dtests.locale=cs-CZ -Dtests.timezone=America/Buenos_Aires -Druntime.java=21



Suite: Test class org.opensearch.ml.rest.RestMLGuardrailsIT
org.opensearch.ml.rest.RestMLGuardrailsIT > testPredictRemoteModelSuccess FAILED
  2> REPRODUCE WITH: gradlew ':opensearch-ml-plugin:integTest' --tests "org.opensearch.ml.rest.RestMLGuardrailsIT.testPredictRemoteModelSuccess" -Dtests.seed=3BAA4A652C7FFA21 -Dtests.security.manager=false -Dtests.locale=cs-CZ -Dtests.timezone=America/Buenos_Aires -Druntime.java=21
    org.opensearch.client.ResponseException: method [POST], host [http://127.0.0.1:50733/], URI [/_plugins/_ml/models/hKDXMI8BN7KL5ERvDCOU/_predict], status line [HTTP/1.1 401 Unauthorized]
  2> org.opensearch.client.ResponseException: method [POST], host [http://127.0.0.1:50733/], URI [/_plugins/_ml/models/hKDXMI8BN7KL5ERvDCOU/_predict], status line [HTTP/1.1 401 Unauthorized]
    {"error":{"root_cause":[{"type":"status_exception","reason":"Error from remote service: {\n    \"error\": {\n        \"message\": \"You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from [https://platform.openai.com/account/api-keys.\](https://platform.openai.com/account/api-keys./)",\n        \"type\": \"invalid_request_error\",\n        \"param\": null,\n        \"code\": null\n    }\n}\n"}],"type":"status_exception","reason":"Error from remote service: {\n    \"error\": {\n        \"message\": \"You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from [https://platform.openai.com/account/api-keys.\](https://platform.openai.com/account/api-keys./)",\n        \"type\": \"invalid_request_error\",\n        \"param\": null,\n        \"code\": null\n    }\n}\n"},"status":401}
    {"error":{"root_cause":[{"type":"status_exception","reason":"Error from remote service: {\n    \"error\": {\n        \"message\": \"You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from [https://platform.openai.com/account/api-keys.\](https://platform.openai.com/account/api-keys./)",\n        \"type\": \"invalid_request_error\",\n        \"param\": null,\n        \"code\": null\n    }\n}\n"}],"type":"status_exception","reason":"Error from remote service: {\n    \"error\": {\n        \"message\": \"You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from [https://platform.openai.com/account/api-keys.\](https://platform.openai.com/account/api-keys./)",\n        \"type\": \"invalid_request_error\",\n        \"param\": null,\n        \"code\": null\n    }\n}\n"},"status":401}
        at __randomizedtesting.SeedInfo.seed([3BAA4A652C7FFA21:AB434FFAEBBBB9D1]:0)
        at app//org.opensearch.client.RestClient.convertResponse(RestClient.java:376)
        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:346)
        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:321)
        at app//org.opensearch.ml.utils.TestHelper.makeRequest(TestHelper.java:181)
        at app//org.opensearch.ml.utils.TestHelper.makeRequest(TestHelper.java:154)
        at app//org.opensearch.ml.utils.TestHelper.makeRequest(TestHelper.java:143)
        at app//org.opensearch.ml.rest.RestMLGuardrailsIT.predictRemoteModel(RestMLGuardrailsIT.java:230)
        at app//org.opensearch.ml.rest.RestMLGuardrailsIT.testPredictRemoteModelSuccess(RestMLGuardrailsIT.java:97)

@mingshl mingshl added bug Something isn't working untriaged labels Apr 30, 2024
@dhrubo-os
Copy link
Collaborator

This is a Flaky test.

@dhrubo-os dhrubo-os moved this to In Progress in ml-commons projects May 7, 2024
@dhrubo-os dhrubo-os added flaky-test Flaky build or test issue and removed bug Something isn't working untriaged labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Flaky build or test issue
Projects
Status: In Progress
Development

No branches or pull requests

3 participants