Fix flaky HybridQueryExplainIT explanation test via per-_id assertions - #1900
Conversation
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1900 +/- ##
============================================
- Coverage 83.46% 83.43% -0.03%
+ Complexity 3893 3892 -1
============================================
Files 291 291
Lines 13835 13835
Branches 2300 2300
============================================
- Hits 11547 11543 -4
- Misses 1455 1458 +3
- Partials 833 834 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
"Check Workflow Events" CI action will keep failing unless #1901 is merged, there is a bug in repo infra yaml file |
Description
Fixed flaky test for hybrid query explanation processor. Switched to new assert per-document explanation trees keyed by _id (routing is deterministic; only tied-hit order isn't), preserving all structure/score checks and dropping only the Lucene-internal child-count couplings.
Related Issues
#1899
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.