fix flaky CopyProcessorTests#19074
Merged
andrross merged 1 commit intoopensearch-project:mainfrom Aug 14, 2025
Merged
Conversation
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
Contributor
|
❌ Gradle check result for e944575: 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? |
sandeshkr419
approved these changes
Aug 14, 2025
Member
sandeshkr419
left a comment
There was a problem hiding this comment.
Thanks for identifying & fixing this!
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19074 +/- ##
============================================
- Coverage 73.02% 72.96% -0.07%
+ Complexity 69548 69469 -79
============================================
Files 5647 5647
Lines 319106 319106
Branches 46163 46163
============================================
- Hits 233034 232820 -214
- Misses 67232 67401 +169
- Partials 18840 18885 +45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andrross
approved these changes
Aug 14, 2025
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Aug 14, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com> (cherry picked from commit 82ebf3b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
RajatGupta02
pushed a commit
to RajatGupta02/OpenSearch
that referenced
this pull request
Aug 18, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
karenyrx
pushed a commit
to karenyrx/OpenSearch
that referenced
this pull request
Aug 21, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
atris
pushed a commit
to atris/OpenSearch
that referenced
this pull request
Aug 28, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
andrross
pushed a commit
that referenced
this pull request
Aug 29, 2025
(cherry picked from commit 82ebf3b) Signed-off-by: guojialiang <guojialiang.2012@bytedance.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kh3ra
pushed a commit
to kh3ra/OpenSearch
that referenced
this pull request
Sep 5, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
vinaykpud
pushed a commit
to vinaykpud/OpenSearch
that referenced
this pull request
Sep 26, 2025
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
sokdak
pushed a commit
to sokdak/OpenSearch
that referenced
this pull request
Oct 15, 2025
…roject#19078) (cherry picked from commit 82ebf3b) Signed-off-by: guojialiang <guojialiang.2012@bytedance.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I reproduced this test locally. The exception information is as follows:
Reproduce
Running the following test will reproduce the problem consistently.
Analysis
The problem occurred in the above assert.
If we use
RandomDocumentPicks.randomFieldName, we cannot guarantee that randomly generatedtargetFieldNamewill definitely not be included iningestDocument's fieldNames.Solve
Use
RandomDocumentPicks.randomNonExistingFieldNameinstead ofRandomDocumentPicks.randomFieldName.After the fix, running locally
1000times did not encounter any issues again.Related Issues
Resolves #19040
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.