Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Issue 2296943002: Fix Java PersonalDataManagerTest flake. (Closed)

Created:
4 years, 3 months ago by please use gerrit instead
Modified:
4 years, 3 months ago
Reviewers:
gone, Evan Stade
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.

Description

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}

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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -14 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java View 1 2 3 1 chunk +19 lines, -13 lines 0 comments Download
M chrome/browser/autofill/android/personal_data_manager_android.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/autofill/android/personal_data_manager_android.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (22 generated)
please use gerrit instead
dfalcantara, ptal.
4 years, 3 months ago (2016-08-30 20:13:17 UTC) #4
gone
https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java File chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java (right): https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java#newcode345 chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java:345: // Intentionally ignore. What happens in this case? Does ...
4 years, 3 months ago (2016-08-30 21:38:53 UTC) #7
please use gerrit instead
https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java File chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java (right): https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java#newcode345 chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java:345: // Intentionally ignore. On 2016/08/30 21:38:53, dfalcantara wrote: > ...
4 years, 3 months ago (2016-08-30 21:45:56 UTC) #8
gone
lgtm https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java File chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java (right): https://chromiumcodereview.appspot.com/2296943002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java#newcode345 chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTestHelper.java:345: // Intentionally ignore. On 2016/08/30 21:45:56, rouslan wrote: ...
4 years, 3 months ago (2016-08-30 21:50:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2296943002/20001
4 years, 3 months ago (2016-08-30 22:03:56 UTC) #12
commit-bot: I haz the power
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_android_rel_ng/builds/133325)
4 years, 3 months ago (2016-08-30 23:42:22 UTC) #14
agrieve
On 2016/08/30 23:42:22, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-02 15:49:29 UTC) #20
please use gerrit instead
Thanks for the reminder. This is surprisingly not straightforward, but I think I've found a ...
4 years, 3 months ago (2016-09-02 16:10:04 UTC) #21
please use gerrit instead
Going to TBR Evan for code in personal_data_manager_android.{h,cc}, so I can fix the flake before ...
4 years, 3 months ago (2016-09-02 17:52:57 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2296943002/60001
4 years, 3 months ago (2016-09-02 17:53:33 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-02 17:58:13 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 18:01:26 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/33b61506dfd38f489950612a88451ab680bfe431
Cr-Commit-Position: refs/heads/master@{#416298}

Powered by Google App Engine
This is Rietveld 408576698