-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix flaky tests in GoogleCloudStorageBlobStoreRepositoryTests, S3BlobStoreRepositoryTests, AzureBlobStoreRepositoryTests #18290
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
Conversation
…StoreRepositoryTests, AzureBlobStoreRepositoryTests Signed-off-by: kkewwei <kewei.11@bytedance.com> Signed-off-by: kkewwei <kkewwei@163.com>
❌ Gradle check result for 8c42ae9: 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? |
This is great @kkewwei, thank you! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18290 +/- ##
============================================
+ Coverage 72.48% 72.60% +0.11%
- Complexity 67357 67432 +75
============================================
Files 5488 5488
Lines 311023 311023
Branches 45217 45217
============================================
+ Hits 225444 225809 +365
+ Misses 67282 66829 -453
- Partials 18297 18385 +88 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
A couple thoughts here for posterity:
|
…StoreRepositoryTests, AzureBlobStoreRepositoryTests (#18290) (#18298) (cherry picked from commit bde7db5) Signed-off-by: kkewwei <kewei.11@bytedance.com> Signed-off-by: kkewwei <kkewwei@163.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 run test with
tests.seed=9D496123288AF73F
inS3BlobStoreRepositoryTests. testSnapshotAndRestore
, and find that every request will retry 3 times, andsleep
withbackoff policy
, it will cost too much time, which will lead to flaky tests.Request is as follows:
GET /bucket?list-type=2&delimiter=%2F&prefix=index-
PUT /bucket/r10011100011010/indices/Hfd8LcIaQmu_nAtfzC7YJg/5/__Qf9SKHinSJWqsxDYO2Qrpw
Related Issues
Resolves #14291 #14299 #11493
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.