Fix failing IT - #4657
Conversation
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
|
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-12-18T16:02:36.322ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (2)
📝 WalkthroughWalkthroughThis change fixes a flaky test in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
|
OpenSearch added stricter checking in this PR https://github.com/opensearch-project/OpenSearch/pull/20518/changes |
Description
fix faling test
testMLInferenceProcessorRemoteModelRewriteQueryTypeI crossed verify in ml playground, we can still run range query on keyword field. and it's comparing in lexical order as expected. I am 100% sure it's not related to range query running on a keyword field. But I change the range query to search on an integer field to roll out this assumption that it might impact the test,.
There might be recently changes to local model. because I was using post-processing function that would convert to a local model output format, and it throw exception in the range query. After I removed it, the tests passed. I will fix the IT for now but we might need more investigation on why the post processing function with a local model format failed recently.
./gradlew ':opensearch-ml-plugin:integTest' --tests 'org.opensearch.ml.rest.RestMLInferenceSearchRequestProcessorIT.testMLInferenceProcessorRemoteModelRewriteQueryType' -Dtests.seed=6C875EAF50A5877 -Dtests.security.manager=false -Dtests.locale=fr-MF -Dtests.timezone=IST -Druntime.java=21
Related Issues
Resolves #4650
Check List
--signoff.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.