-
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
Fix for Flaky test for issue 384 #559
Fix for Flaky test for issue 384 #559
Conversation
Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #559 +/- ##
=========================================
Coverage 84.39% 84.39%
Complexity 535 535
=========================================
Files 40 40
Lines 1570 1570
Branches 245 245
=========================================
Hits 1325 1325
Misses 133 133
Partials 112 112 ☔ View full report in Codecov by Sentry. |
One BWC check is failing, please check if that's not for the same reason as we're trying to fix here |
src/test/java/org/opensearch/neuralsearch/processor/NeuralQueryEnricherProcessorIT.java
Outdated
Show resolved
Hide resolved
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.
I think we're missing one piece in this - we're not using that model id that we read in setUp section. I see that in tests like this one we're reading model id: https://github.com/vibrantvarun/neural-search/blob/Flaky_test_384/src/test/java/org/opensearch/neuralsearch/processor/NormalizationProcessorIT.java#L94. We need to use that id we get in setUp method instead
src/test/java/org/opensearch/neuralsearch/processor/NeuralQueryEnricherProcessorIT.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opensearch/neuralsearch/processor/ScoreCombinationIT.java
Show resolved
Hide resolved
No it is not. It is due to sometimes when we push multiple commits back to back then due to resources sometimes tests fails. |
Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
src/test/java/org/opensearch/neuralsearch/processor/NeuralQueryEnricherProcessorIT.java
Outdated
Show resolved
Hide resolved
@vibrantvarun what is pending on this PR? |
Signed-off-by: Varun Jain <[email protected]>
@navneet1v @heemin32 advised to add finally block in adding wipeoftestResources. Therefore I added it and now raised a revision. |
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.
Nice rework for tests Varun
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-559-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d298e2ba7f436f1cea2392de34d54cfc093fe435
# Push it to GitHub
git push --set-upstream origin backport/backport-559-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 |
Description
Currently, we are facing falkiness in the integ test behaviour of neural search because of following reasons.
This PR address all the above issues.
Issues Resolved
384
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.