Skip to content
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

[Backport 2.x] Fix SearchQueryIT to not depend on percentage #11243

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 3509500 from #11233.

The CommonTermsQuery tests in SearchQueryIT had one case that depended
on the default cutoff frequency percentage. A recent change for
concurrent search increased the number of deleted documents that could
be indexed in the "indexRandom" helper method, and it turns out the
cutoff percentage is calculated from a max docs value that includes
deleted docs. This change replaces the default percentage with an absolute
value (number of documents that must match) so it is no longer
susceptible to behavior change due to number of deleted documents.

Signed-off-by: Andrew Ross <andrross@amazon.com>
(cherry picked from commit 3509500)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change 05ef16b

Incompatible components

Incompatible components: [https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/performance-analyzer.git]

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer-rca.git]

Copy link
Contributor

✅ Gradle check result for 05ef16b: SUCCESS

Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (78cfce4) 70.90% compared to head (05ef16b) 70.94%.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #11243      +/-   ##
============================================
+ Coverage     70.90%   70.94%   +0.03%     
- Complexity    58956    58983      +27     
============================================
  Files          4867     4867              
  Lines        278455   278455              
  Branches      40810    40810              
============================================
+ Hits         197443   197544     +101     
+ Misses        64158    64092      -66     
+ Partials      16854    16819      -35     

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

@andrross andrross merged commit 3cc2e54 into 2.x Nov 17, 2023
43 of 69 checks passed
@andrross andrross deleted the backport/backport-11233-to-2.x branch November 17, 2023 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants