-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fix local build failure for RestMLInferenceIngestProcessorIT #2402
Conversation
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
@@ -115,6 +115,10 @@ public void testMLInferenceProcessorWithObjectFieldType() throws Exception { | |||
String index_name = "daily_index"; | |||
createPipelineProcessor(createPipelineRequestBody, "diary_embedding_pipeline"); | |||
createIndex(index_name, createIndexRequestBody); | |||
// Skip test if key is null | |||
if (OPENAI_KEY == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share the failure message ? Curious why OPENAI_KEY will be null. If this is null, then our IT will always fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens only in local environment, when we don't set the OPENAI_KEY
and it will be null and the IT will eventually fail. Same scenario for the OS 2.14 build I think as they don't have the OPENAI_KEY
in their environment, these test will fail : https://build.ci.opensearch.org/blue/rest/organizations/jenkins/pipelines/integ-test/runs/8248/nodes/118/steps/383/log/?start=0
(cherry picked from commit 950f864)
(cherry picked from commit 950f864)
…nsearch-project#2403) (cherry picked from commit 950f864) Co-authored-by: Mingshi Liu <mingshl@amazon.com>
Description
fix local build failure for RestMLInferenceIngestProcessorIT
when openai key is null, skip running predict
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.