chore(storage): Fix flaky test list_object_context - #35000
chore(storage): Fix flaky test list_object_context#35000shubhangi-google wants to merge 9 commits into
Conversation
b0e1a46 to
ebf8067
Compare
8e814cb to
66769c0
Compare
|
@shubhangi-google I already started working on this. #34844 |
@aandreassa saw your PR this PR addresses another flaky bug related to list object contexts |
90fb666 to
edc72d7
Compare
There was a problem hiding this comment.
can we do this at a lesser interval, does it take 5s for consistency? This high wait time could add up eventually and lead to very high test execution time, try 0.2 10 times?
| out = nil | ||
| 10.times do | ||
| out, _err = capture_io do | ||
| list_object_contexts bucket_name: bucket.name, custom_context_key: custom_context_key1 |
There was a problem hiding this comment.
We are setting the same context key in other tests as well, if its possible that list can return those files then this test could still fail. It would be better to use keys with some random part to reliably run this test.
PR Fixes following sample failure: