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

Issue 1062393002: bluetooth: Use sequential_promise_test to stop test from running in parallel. (Closed)

Created:
5 years, 8 months ago by ortuno
Modified:
5 years, 8 months ago
CC:
blink-reviews, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

bluetooth: Use sequential_promise_test to stop test from running in parallel. Each test calls setBluetoothMockDataSet() which sets a global variable in the bluetooth dispatcher. Since async_tests run in parallel the calls to setBluetoothMockDataSet() where interleaving causing tests to be flaky. This patch uses sequential_promise_test to ensure that tests don't interfere with each other. BUG=420284, 470307 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193657

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -23 lines) Patch
M LayoutTests/bluetooth/requestDevice.html View 1 2 3 4 5 6 1 chunk +36 lines, -23 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
ortuno
Please review @jyasskin, @scheib
5 years, 8 months ago (2015-04-07 23:24:58 UTC) #2
Jeffrey Yasskin
+Elliott since he replied about async_test.
5 years, 8 months ago (2015-04-07 23:30:01 UTC) #4
Jeffrey Yasskin
https://codereview.chromium.org/1062393002/diff/20001/LayoutTests/bluetooth/requestDevice.html File LayoutTests/bluetooth/requestDevice.html (right): https://codereview.chromium.org/1062393002/diff/20001/LayoutTests/bluetooth/requestDevice.html#newcode20 LayoutTests/bluetooth/requestDevice.html:20: nextTest(); Probably use `Promise.resolve().then(nextTest)` or `setTimeout(nextTest, 0)` to avoid ...
5 years, 8 months ago (2015-04-07 23:46:38 UTC) #5
esprehn
This feels like we're hacking around the test framework, we should make the framework either ...
5 years, 8 months ago (2015-04-08 00:05:44 UTC) #7
Jeffrey Yasskin
On 2015/04/08 00:05:44, esprehn wrote: > This feels like we're hacking around the test framework, ...
5 years, 8 months ago (2015-04-08 00:07:46 UTC) #8
esprehn
I think you can do this simpler like: var sequence = Promise.resolve(); function wait(fn) { ...
5 years, 8 months ago (2015-04-08 00:10:29 UTC) #9
esprehn
On 2015/04/08 at 00:07:46, jyasskin wrote: > On 2015/04/08 00:05:44, esprehn wrote: > > This ...
5 years, 8 months ago (2015-04-08 00:11:22 UTC) #10
Dirk Pranke
On 2015/04/08 00:11:22, esprehn wrote: > On 2015/04/08 at 00:07:46, jyasskin wrote: > > On ...
5 years, 8 months ago (2015-04-08 00:13:45 UTC) #11
ortuno
On 2015/04/08 at 00:13:45, dpranke wrote: > On 2015/04/08 00:11:22, esprehn wrote: > > On ...
5 years, 8 months ago (2015-04-10 16:46:43 UTC) #12
Dirk Pranke
On 2015/04/10 16:46:43, ortuno wrote: > @dpranke I submitted a pull request: > https://github.com/w3c/testharness.js/pull/115 but ...
5 years, 8 months ago (2015-04-10 20:38:03 UTC) #13
Jeffrey Yasskin
LGTM, but give Dirk/Elliott until Monday to chime in. https://codereview.chromium.org/1062393002/diff/60001/LayoutTests/bluetooth/requestDevice.html File LayoutTests/bluetooth/requestDevice.html (right): https://codereview.chromium.org/1062393002/diff/60001/LayoutTests/bluetooth/requestDevice.html#newcode7 LayoutTests/bluetooth/requestDevice.html:7: ...
5 years, 8 months ago (2015-04-10 23:56:13 UTC) #14
ortuno
On 2015/04/10 at 23:56:13, jyasskin wrote: > LGTM, but give Dirk/Elliott until Monday to chime ...
5 years, 8 months ago (2015-04-10 23:59:06 UTC) #15
Dirk Pranke
looks plausible to me, but my knowledge of writing promise-based tests is not strong. I ...
5 years, 8 months ago (2015-04-11 00:26:14 UTC) #16
esprehn
Seems reasonable, lgtm https://codereview.chromium.org/1062393002/diff/80001/LayoutTests/bluetooth/requestDevice.html File LayoutTests/bluetooth/requestDevice.html (right): https://codereview.chromium.org/1062393002/diff/80001/LayoutTests/bluetooth/requestDevice.html#newcode15 LayoutTests/bluetooth/requestDevice.html:15: function() { I think we usually ...
5 years, 8 months ago (2015-04-11 00:45:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062393002/120001
5 years, 8 months ago (2015-04-13 15:33:42 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/58971)
5 years, 8 months ago (2015-04-13 16:52:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062393002/120001
5 years, 8 months ago (2015-04-13 19:03:33 UTC) #24
scheib
LGTM
5 years, 8 months ago (2015-04-13 22:33:11 UTC) #25
commit-bot: I haz the power
5 years, 8 months ago (2015-04-13 23:16:49 UTC) #26
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193657

Powered by Google App Engine
This is Rietveld 408576698