-
Notifications
You must be signed in to change notification settings - Fork 125
Fix flaky bundle tests. #547
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
@@ -65,6 +65,15 @@ std::string CreateTestBundle(Firestore* db) { | |||
return CreateBundle(db->app()->options().project_id()); | |||
} | |||
|
|||
void SetPromiseValueWhenUpdateIsFinal( | |||
LoadBundleTaskProgress progress, | |||
std::promise<void>& final_update_received) { |
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.
Is this a non-const reference? If so, make const or use a pointer: std::promise<void>& final_update_received
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.
Nit: please include <future>
(you might need to add a // NOLINT(build/c++11)
comment to it).
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.
It is already included, it is already used by one other test.
✅ Integration test succeeded!Requested by @wu-hui on commit 54849d0 |
Is this the issue that will be fixed in the next Android release? If so, we should revert this PR after that fix goes in (and we update to that dependency). |
@@ -65,6 +65,15 @@ std::string CreateTestBundle(Firestore* db) { | |||
return CreateBundle(db->app()->options().project_id()); | |||
} | |||
|
|||
void SetPromiseValueWhenUpdateIsFinal( | |||
LoadBundleTaskProgress progress, | |||
std::promise<void>& final_update_received) { |
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.
Nit: please include <future>
(you might need to add a // NOLINT(build/c++11)
comment to it).
We have not decided whether or not we will change Android yet..there are arguments against it. Will revert this PR if that is what we end up doing. |
They are flaky because Android SDK does not guarantee all progress callbacks are complete before the task resolves.
Whether or not it should guarantee this is another topic.