New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 755985 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

RemoteSuggestionsDatabaseTest.SavePersist is flaky

Project Member Reported by maxmorin@chromium.org, Aug 16 2017

Issue description

Looks like it has been flaky for a long while, see https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=components_unittests&tests=RemoteSuggestionsDatabaseTest.SavePersist.

Example log:
[ RUN      ] RemoteSuggestionsDatabaseTest.SavePersist
[2598:19971:0812/000740.342654:885845925623:WARNING:leveldb_database.cc(81)] Unable to open /var/folders/9x/6c6sv3cj4j53wzpzthbp4ksm0000gm/T/.org.chromium.Chromium.HWzZNc/snippets: IO error: /var/folders/9x/6c6sv3cj4j53wzpzthbp4ksm0000gm/T/.org.chromium.Chromium.HWzZNc/snippets/LOCK: Lock file already locked. (ChromeMethodOnly: 15::LockFile)
../../components/ntp_snippets/remote/remote_suggestions_database_unittest.cc:205: Failure
Actual function call count doesn't match EXPECT_CALL(*this, OnImageLoaded(image_data))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
../../components/ntp_snippets/remote/remote_suggestions_database_unittest.cc:201: Failure
Actual function call count doesn't match EXPECT_CALL(*this, OnSnippetsLoadedImpl(ElementsAre(PointeeEq(snippet.get()))))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
[  FAILED  ] RemoteSuggestionsDatabaseTest.SavePersist (92 ms)

I'll go ahead and disable the test.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Aug 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6bf7d52ad80626d85d1f9b2c55055784ee8ed09e

commit 6bf7d52ad80626d85d1f9b2c55055784ee8ed09e
Author: Max Morin <maxmorin@chromium.org>
Date: Wed Aug 16 14:26:06 2017

Disable flaky RemoteSuggestionsDatabaseTest.SavePersist

NOTRY=true
TBR=treib
BUG= 755985 

Change-Id: Ifecc7bba34dc5b36b5d417909a79d885c45d24f7
Reviewed-on: https://chromium-review.googlesource.com/616737
Reviewed-by: Max Morin <maxmorin@chromium.org>
Commit-Queue: Max Morin <maxmorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#494771}
[modify] https://crrev.com/6bf7d52ad80626d85d1f9b2c55055784ee8ed09e/components/ntp_snippets/remote/remote_suggestions_database_unittest.cc

Comment 2 by treib@chromium.org, Aug 16 2017

Cc: jkrcal@chromium.org gaschler@chromium.org vitaliii@chromium.org
Components: UI>Browser>NewTabPage
Sigh, I guess that's what you get when you do disk I/O in a unit test :(

These tests should use a FakeDB instead of an actual ProtoDatabaseImpl.
CCing some more folks who might have cycles to take this over.
Labels: M-63 zine-triaged

Comment 4 by treib@chromium.org, Oct 13 2017

Status: Started (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Oct 17 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/34f124ce2d3050095f21fafd73da141d983d849d

commit 34f124ce2d3050095f21fafd73da141d983d849d
Author: Marc Treib <treib@chromium.org>
Date: Tue Oct 17 18:44:12 2017

Rewrite RemoteSuggestionsDatabaseTests to use FakeDB

Previously, these tests used real databases, including disk I/O. Better
to use fakes for unit tests.

Bug:  755985 
Change-Id: Icb9043593ff3bce6f54b9803294cf81a0944d4b3
Reviewed-on: https://chromium-review.googlesource.com/720810
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: vitaliii <vitaliii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509450}
[modify] https://crrev.com/34f124ce2d3050095f21fafd73da141d983d849d/components/ntp_snippets/remote/remote_suggestions_database.cc
[modify] https://crrev.com/34f124ce2d3050095f21fafd73da141d983d849d/components/ntp_snippets/remote/remote_suggestions_database.h
[modify] https://crrev.com/34f124ce2d3050095f21fafd73da141d983d849d/components/ntp_snippets/remote/remote_suggestions_database_unittest.cc

Comment 6 by treib@chromium.org, Oct 18 2017

Status: Fixed (was: Started)
That should do it.
Components: Tests>Disabled
Labels: Test-Disabled

Sign in to add a comment