-
Notifications
You must be signed in to change notification settings - Fork 72
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
Optimizing integ tests for less model upload calls #683
Optimizing integ tests for less model upload calls #683
Conversation
5e25a0b
to
072c50c
Compare
Rolling tests BWC are failing for Linux due to some issue in Lucene/core that is unrelated to this change. Currently same issue exists for
|
Signed-off-by: Martin Gaievski <[email protected]>
072c50c
to
bbfbb27
Compare
Signed-off-by: Martin Gaievski <[email protected]>
Signed-off-by: Martin Gaievski <[email protected]>
First of all, Great work @martin-gaievski. Awesome job on optimization. |
Overall looks good to me.
cc: @martin-gaievski |
For 1 - it makes sense, just I think readme file will work better than changelog. Will push commit for this. |
Signed-off-by: Martin Gaievski <[email protected]>
Created new issue for a long term fix (switching from model per test case to a shared models strategy) #689 |
src/test/java/org/opensearch/neuralsearch/processor/NormalizationProcessorIT.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Martin Gaievski <[email protected]>
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.
LGTM! This eliminates a major release blocker for release owners. For my understanding, the long term fix is so that we don't accidentally trigger the circuit breaker by adding more tests in the future right?
For long term we're still deciding what should be the fix, idea is to switch from "one model per test case" to global models concept, so once deployed one type of model can be used for all tests that needs that model type. It should be possible as we only have 3 model types and models are immutable, so no need in sync of the state between tests |
7106d20
into
opensearch-project:main
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-683-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7106d205a05404ab134beba595bb9da90592ba7b
# Push it to GitHub
git push --set-upstream origin backport/backport-683-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
…t#683) * Optimizing tests for less model upload calls Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit 7106d20)
…t#683) * Optimizing tests for less model upload calls Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit 7106d20) Signed-off-by: Martin Gaievski <[email protected]>
* Optimizing tests for less model upload calls (cherry picked from commit 7106d20) Signed-off-by: Martin Gaievski <[email protected]>
Description
Refactored integration tests to minimize number of local model uploads/deployments. This is a first step in attempt to solve test failures in distribution build pipeline. With multiple model redeployments at some point we're reaching the state when memory circuit breaker on ml-commons side opens and next model upload call is failing.
There is a separate issue opened for
ml-commons
for possible long term fix on their side opensearch-project/ml-commons#2308. As of now there are no plans to work on it, as per their suggestions I'm trying to optimize tests onneural-search
side.In this PR I'm doing following:
Tested in copy of infra environment, tests are passing:
Issues Resolved
#667
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.