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

Issue 1271053002: [PasswordManager] Fix Flaky BrowserTest related to dynamically created (Closed)

Created:
5 years, 4 months ago by xunlu
Modified:
4 years, 6 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[PasswordManager] Fix Flaky BrowserTest related to dynamically created password form For browserTests that dynamically create password form, add PasswordStoreObserve to wait for response from PasswordStore before submitting the form. BUG=301547

Patch Set 1 : #

Total comments: 16

Patch Set 2 : comments #

Patch Set 3 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -12 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 chunks +32 lines, -12 lines 1 comment Download
M chrome/browser/password_manager/password_manager_test_base.h View 1 2 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_manager_test_base.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
xunlu
5 years, 4 months ago (2015-08-04 22:27:11 UTC) #6
vabr (Chromium)
Thanks, Xunlu, for fixing the broken tests! Your CL LGTM, as long as you are ...
5 years, 4 months ago (2015-08-05 08:37:35 UTC) #8
xunlu
https://codereview.chromium.org/1271053002/diff/80001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/1271053002/diff/80001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode237 chrome/browser/password_manager/password_manager_browsertest.cc:237: // Create password form. On 2015/08/05 08:37:35, vabr (Chromium) ...
5 years, 4 months ago (2015-08-05 18:37:13 UTC) #10
vabr (Chromium)
LGTM, thanks for addressing all my comments! Vaclav
5 years, 4 months ago (2015-08-06 08:12:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271053002/120001
5 years, 4 months ago (2015-08-06 17:18:19 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_10.10_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_10.10_rel_ng/builds/2720)
5 years, 4 months ago (2015-08-06 17:22:09 UTC) #15
xunlu
On 2015/08/06 08:12:11, vabr (Chromium) wrote: > LGTM, thanks for addressing all my comments! > ...
5 years, 4 months ago (2015-08-06 23:55:24 UTC) #16
vabr (Chromium)
On 2015/08/06 23:55:24, xunlu wrote: > On 2015/08/06 08:12:11, vabr (Chromium) wrote: > > LGTM, ...
5 years, 4 months ago (2015-08-07 07:47:53 UTC) #17
vabr (Chromium)
https://codereview.chromium.org/1271053002/diff/140001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/1271053002/diff/140001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode260 chrome/browser/password_manager/password_manager_browsertest.cc:260: Would inserting base::RunLoop run_loop; run_loop.RunUntilIdle(); help with the flakes ...
5 years, 4 months ago (2015-08-07 07:47:59 UTC) #18
xunlu
On 2015/08/07 07:47:59, vabr (Chromium) wrote: > https://codereview.chromium.org/1271053002/diff/140001/chrome/browser/password_manager/password_manager_browsertest.cc > File chrome/browser/password_manager/password_manager_browsertest.cc (right): > > https://codereview.chromium.org/1271053002/diff/140001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode260 ...
5 years, 4 months ago (2015-08-14 22:40:30 UTC) #19
vabr (Chromium)
On 2015/08/14 22:40:30, xunlu wrote: > On 2015/08/07 07:47:59, vabr (Chromium) wrote: > > > ...
5 years, 4 months ago (2015-08-17 08:17:52 UTC) #20
vabr (Chromium)
4 years, 6 months ago (2016-05-30 08:43:11 UTC) #21
On 2015/08/17 08:17:52, vabr (Chromium) wrote:
> On 2015/08/14 22:40:30, xunlu wrote:
> > On 2015/08/07 07:47:59, vabr (Chromium) wrote:
> > >
> >
>
https://codereview.chromium.org/1271053002/diff/140001/chrome/browser/passwor...
> > > File chrome/browser/password_manager/password_manager_browsertest.cc
> (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/1271053002/diff/140001/chrome/browser/passwor...
> > > chrome/browser/password_manager/password_manager_browsertest.cc:260: 
> > > Would inserting
> > >   base::RunLoop run_loop;
> > >   run_loop.RunUntilIdle();
> > > help with the flakes you observe locally?
> > 
> > This didn't seem to help. Still seeing 1 or 2 failures in 1000 runs.
> 
> Thanks for checking, Xun.
> 
> In that case you can either try to land and be prepared to disable the tests
if
> they flake again (as recommended in
> https://codereview.chromium.org/1271053002/#msg17), or you can try to trace
down
> the issue further, by seeing whether in the failing cases the message
> AutofillHostMsg_PasswordFormsParsed (sent for the dynamically created form) is
> received by the browser code after DummyStoreConsumer::RequestLoginsAndWait is
> called. If that's the case, there should be a way to wait with using the dummy
> store consumer after the message is received, and that should fix the
failures.
> If it is not the case, then I'm not sure what happens.
> 
> Cheers,
> Vaclav

Hi Xun,

Unless you plan to work on this, would you mind closing the CL and noting the CL
URL in the bug, so that we know which ideas have been tried out the next time we
have a look at that issue?

Cheers,
Vaclav

Powered by Google App Engine
This is Rietveld 408576698