-
Couldn't load subscription status.
- Fork 2.3k
fix flaky CopyProcessorTests #19074
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
fix flaky CopyProcessorTests #19074
Conversation
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
|
❌ 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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for identifying & fixing this!
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:
|
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>
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
(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>
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
…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>
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.