|
|
Chromium Code Reviews|
Created:
3 years, 10 months ago by Marijn Kruisselbrink Modified:
3 years, 9 months ago Reviewers:
dmurph CC:
chromium-reviews, darin-cc_chromium.org, jam Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix flaky MojoDOMStorageBrowserTest
Rather than waiting for a connection to the database after the first part
of the test runs, make sure we're connected before starting the test.
This should make sure that all changes are actually flushed before the
browser shuts down.
BUG=692885
Review-Url: https://codereview.chromium.org/2700003002
Cr-Commit-Position: refs/heads/master@{#453745}
Committed: https://chromium.googlesource.com/chromium/src/+/8a7d571a3c9fbe2bac5d02a79848d2c188a264c0
Patch Set 1 #Patch Set 2 : slightly nicer #Patch Set 3 : slightly nicer #Messages
Total messages: 21 (17 generated)
The CQ bit was checked by mek@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: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
The CQ bit was checked by mek@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 ========== WIP try to fix test flakyness BUG=692885 ========== to ========== Fix flaky MojoDOMStorageBrowserTest Rather than waiting for a connection to the database after the first part of the test runs, make sure we're connected before starting the test. This should make sure that all changes are actually flushed before the browser shuts down. BUG=692885 ==========
The CQ bit was checked by mek@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...
mek@chromium.org changed reviewers: + dmurph@chromium.org
dmurph: want to review this? For background, if the first localstorage operation that is done during the lifetime of a browser is a "clear()" (as is the case in this browser test), it is possible for the javascript to write stuff to localstorage, and think it's done, while the browser process isn't actually connected to leveldb yet. In such a case if the browser shuts down there is a high likelihood of data getting lost. This shouldn't effect real world situations really, as it's unlikely the only origin using localstorage started out by doing clear(), and on top of that the browser is immediately quit after javascript is done writing to storage. So adding special code in the test like this to make sure things are actually written seems a reasonable compromise. (and this CL changes the special test logic to try to flush things from not just waiting after the javascript code runs, but instead making sure the connection from the browserprocess to leveldb exists before javascript code even runs, thereby making sure that the flush at the end actually always flushes everything).
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by dmurph@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1488321535167890,
"parent_rev": "e4ac2e9a324a943abe94c8161273904c53bc02b3", "commit_rev":
"8a7d571a3c9fbe2bac5d02a79848d2c188a264c0"}
Message was sent while issue was closed.
Description was changed from ========== Fix flaky MojoDOMStorageBrowserTest Rather than waiting for a connection to the database after the first part of the test runs, make sure we're connected before starting the test. This should make sure that all changes are actually flushed before the browser shuts down. BUG=692885 ========== to ========== Fix flaky MojoDOMStorageBrowserTest Rather than waiting for a connection to the database after the first part of the test runs, make sure we're connected before starting the test. This should make sure that all changes are actually flushed before the browser shuts down. BUG=692885 Review-Url: https://codereview.chromium.org/2700003002 Cr-Commit-Position: refs/heads/master@{#453745} Committed: https://chromium.googlesource.com/chromium/src/+/8a7d571a3c9fbe2bac5d02a79848... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/8a7d571a3c9fbe2bac5d02a79848... |
