|
|
Created:
4 years, 3 months ago by please use gerrit instead Modified:
4 years, 3 months ago CC:
chromium-reviews, rouslan+autofill_chromium.org, estade+watch_chromium.org, vabr+watchlistautofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix Java PersonalDataManagerTest flake.
Initialization of the PersonalDataManager fires off a
PersonalDataChanged event. If a test is also changing autofill data and
listening for this event, then it may receive the event notification
from initialization instead of the event from its own action. This makes
the test flaky. This patch changes AutofillTestHelper to wait for the
initialization event before starting the test.
BUG=639138
Committed: https://crrev.com/33b61506dfd38f489950612a88451ab680bfe431
Cr-Commit-Position: refs/heads/master@{#416298}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Abort the test if not notified of data changes on init. #Patch Set 3 : Listen for init event #Patch Set 4 : Wait for init event only if not initialized yet. #
Messages
Total messages: 34 (22 generated)
The CQ bit was checked by rouslan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
rouslan@chromium.org changed reviewers: + dfalcantara@chromium.org
dfalcantara, ptal.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javat... File chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java (right): https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javat... chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java:345: // Intentionally ignore. What happens in this case? Does the test just fail?
https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javat... File chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java (right): https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javat... chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java:345: // Intentionally ignore. On 2016/08/30 21:38:53, dfalcantara wrote: > What happens in this case? Does the test just fail? The test does not fail immediately, but has the potential to fail. So... a flake. Should it fail instead?
lgtm https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javat... File chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java (right): https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javat... chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java:345: // Intentionally ignore. On 2016/08/30 21:45:56, rouslan wrote: > On 2016/08/30 21:38:53, dfalcantara wrote: > > What happens in this case? Does the test just fail? > > The test does not fail immediately, but has the potential to fail. So... a > flake. Should it fail instead? Yeah... I'd just force it to fail to make why it failed concrete.
The CQ bit was checked by rouslan@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dfalcantara@chromium.org Link to the patchset: https://codereview.chromium.org/2296943002/#ps20001 (title: "Abort the test if not notified of data changes on init.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
Description was changed from ========== Fix Java PersonalDataManagerTest flake. Initialization of the AutofillTestHelper fires off a PersonalDataChanged event. If a test is also changing autofill data and listening for this event, then it may receive the event notification from initialization instead of the event from its own action. This makes the test flaky. The solution is to wait for PersonalDataManager to completely initialize before starting the test. BUG=639138 ========== to ========== Fix Java PersonalDataManagerTest flake. Initialization of the PersonalDataManager fires off a PersonalDataChanged event. If a test is also changing autofill data and listening for this event, then it may receive the event notification from initialization instead of the event from its own action. This makes the test flaky. This patch changes AutofillTestHelper to ignore the PersonalDataChanged event from initialization. BUG=639138 ==========
The CQ bit was checked by rouslan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
On 2016/08/30 23:42:22, commit-bot: I haz the power wrote: > Try jobs failed on following builders: > linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, > https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...) bump - this is still mostly red on the bots.
Thanks for the reminder. This is surprisingly not straightforward, but I think I've found a good way to fix the flake. Stay tuned.
The CQ bit was checked by rouslan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Fix Java PersonalDataManagerTest flake. Initialization of the PersonalDataManager fires off a PersonalDataChanged event. If a test is also changing autofill data and listening for this event, then it may receive the event notification from initialization instead of the event from its own action. This makes the test flaky. This patch changes AutofillTestHelper to ignore the PersonalDataChanged event from initialization. BUG=639138 ========== to ========== Fix Java PersonalDataManagerTest flake. Initialization of the PersonalDataManager fires off a PersonalDataChanged event. If a test is also changing autofill data and listening for this event, then it may receive the event notification from initialization instead of the event from its own action. This makes the test flaky. This patch changes AutofillTestHelper to wait for the initialization event before starting the test. BUG=639138 ==========
rouslan@chromium.org changed reviewers: + estade@chromium.org
Going to TBR Evan for code in personal_data_manager_android.{h,cc}, so I can fix the flake before the long weekend.
The CQ bit was checked by rouslan@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dfalcantara@chromium.org Link to the patchset: https://codereview.chromium.org/2296943002/#ps60001 (title: "Wait for init even only if not initialized yet.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Fix Java PersonalDataManagerTest flake. Initialization of the PersonalDataManager fires off a PersonalDataChanged event. If a test is also changing autofill data and listening for this event, then it may receive the event notification from initialization instead of the event from its own action. This makes the test flaky. This patch changes AutofillTestHelper to wait for the initialization event before starting the test. BUG=639138 ========== to ========== Fix Java PersonalDataManagerTest flake. Initialization of the PersonalDataManager fires off a PersonalDataChanged event. If a test is also changing autofill data and listening for this event, then it may receive the event notification from initialization instead of the event from its own action. This makes the test flaky. This patch changes AutofillTestHelper to wait for the initialization event before starting the test. BUG=639138 Committed: https://crrev.com/33b61506dfd38f489950612a88451ab680bfe431 Cr-Commit-Position: refs/heads/master@{#416298} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/33b61506dfd38f489950612a88451ab680bfe431 Cr-Commit-Position: refs/heads/master@{#416298} |