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

Add successfulSearchShardIndices in searchRequestContext #15967

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

dzane17
Copy link
Contributor

@dzane17 dzane17 commented Sep 18, 2024

Description

Add successfulSearchShardIndices in searchRequestContext

This list of indices will be used in the Query-Insights plugin for query shape generation.

Related Issues

Related RFC: opensearch-project/query-insights#69

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.

@dzane17 dzane17 added the backport 2.x Backport to 2.x branch label Sep 18, 2024
Copy link
Contributor

✅ Gradle check result for 98adaf3: SUCCESS

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 71.93%. Comparing base (1bc81d3) to head (795e507).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...opensearch/action/search/SearchRequestContext.java 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15967      +/-   ##
============================================
- Coverage     71.96%   71.93%   -0.04%     
+ Complexity    64391    64347      -44     
============================================
  Files          5280     5280              
  Lines        300866   300871       +5     
  Branches      43474    43474              
============================================
- Hits         216510   216420      -90     
- Misses        66639    66711      +72     
- Partials      17717    17740      +23     

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

Copy link
Contributor

❌ Gradle check result for 2c5ceae: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 0888e7b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: David Zane <davizane@amazon.com>
Copy link
Contributor

❌ Gradle check result for 637d339: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Ankit Jain <akjain@amazon.com>
Copy link
Contributor

✅ Gradle check result for 795e507: SUCCESS

@jainankitk jainankitk merged commit b369611 into opensearch-project:main Sep 19, 2024
34 of 35 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-15967-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b3696116965ab45b675731af04e6defc34602f83
# Push it to GitHub
git push --set-upstream origin backport/backport-15967-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-15967-to-2.x.

@dzane17 dzane17 deleted the target-indices branch September 19, 2024 23:23
dzane17 added a commit to dzane17/OpenSearch that referenced this pull request Sep 19, 2024
…uestEnd (opensearch-project#15967)

Signed-off-by: David Zane <davizane@amazon.com>
Signed-off-by: Ankit Jain <akjain@amazon.com>
Co-authored-by: Ankit Jain <akjain@amazon.com>
(cherry picked from commit b369611)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch backport-failed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants