Skip to content

Conversation

@mch2
Copy link
Member

@mch2 mch2 commented Aug 7, 2025

Description

This test breaks with a repeatable seed because we randomly set shard count above 1 which changes doc count per segment and therefore scoring. Fixing it by setting shard count to 1. We could also resolve this by using dfs searchType, but seems the precedent in our yml tests is to fix the shard count.

Related Issues

Resolves #18881

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

This test breaks with a repeatable seed because we randomly
set shard count above 1 which will impact scoring.  Fixing it
by setting shard count to 1 instead of using dfs query then fetch.

Signed-off-by: Marc Handalian <[email protected]>
@mch2 mch2 requested a review from a team as a code owner August 7, 2025 18:13
@github-actions github-actions bot added bug Something isn't working Search Search query, autocomplete ...etc labels Aug 7, 2025
@prudhvigodithi
Copy link
Member

Thanks @mch2 seen a failure in past https://build.ci.opensearch.org/job/gradle-check/61541/testReport/.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

✅ Gradle check result for 5785859: SUCCESS

@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.96%. Comparing base (c01ff89) to head (5785859).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18971      +/-   ##
============================================
+ Coverage     72.89%   72.96%   +0.07%     
- Complexity    69318    69348      +30     
============================================
  Files          5642     5642              
  Lines        318636   318636              
  Branches      46107    46107              
============================================
+ Hits         232254   232495     +241     
+ Misses        67540    67317     -223     
+ Partials      18842    18824      -18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@prudhvigodithi prudhvigodithi merged commit 292a2c5 into opensearch-project:main Aug 7, 2025
36 of 37 checks passed
@mch2 mch2 deleted the 18881 branch August 7, 2025 21:12
RajatGupta02 pushed a commit to RajatGupta02/OpenSearch that referenced this pull request Aug 18, 2025
This test breaks with a repeatable seed because we randomly
set shard count above 1 which will impact scoring.  Fixing it
by setting shard count to 1 instead of using dfs query then fetch.

Signed-off-by: Marc Handalian <[email protected]>
kh3ra pushed a commit to kh3ra/OpenSearch that referenced this pull request Sep 5, 2025
This test breaks with a repeatable seed because we randomly
set shard count above 1 which will impact scoring.  Fixing it
by setting shard count to 1 instead of using dfs query then fetch.

Signed-off-by: Marc Handalian <[email protected]>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Sep 26, 2025
This test breaks with a repeatable seed because we randomly
set shard count above 1 which will impact scoring.  Fixing it
by setting shard count to 1 instead of using dfs query then fetch.

Signed-off-by: Marc Handalian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Search Search query, autocomplete ...etc skip-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Test failure related to combined_fields

2 participants