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

Issue 884573004: Check the context type in StopChromeTracing (Closed)

Created:
5 years, 10 months ago by horo
Modified:
5 years, 10 months ago
CC:
chromium-reviews, yurys, paulirish+reviews_chromium.org, telemetry-reviews_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman, serviceworker-reviews, lafeenstra
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check the context type in StopChromeTracing DevToolsClientBackend.StopChromeTracing() tries to call console.time & console.timeEnd. But in ServiceWorker telemetry tests, ServiceWorker may have already stopped by itself. This is causing the test flakiness. So this cl add checking if the context type is 'iframe', 'page' or 'webview'. BUG=433943 TEST=./tools/perf/run_benchmark --browser-executable=~/chromium/src/out/Debug/chrome --also-run-disabled-tests service_worker.service_worker Committed: https://crrev.com/c8ad009e818cc08a36d5f6a4fe68c97ee3f88179 Cr-Commit-Position: refs/heads/master@{#317730}

Patch Set 1 #

Total comments: 2

Patch Set 2 : check the context type in StopChromeTracing #

Total comments: 4

Patch Set 3 : add test #

Total comments: 2

Patch Set 4 : use @decorators.Isolated #

Patch Set 5 : disable test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (7 generated)
horo
chrishenry@ Could you please review this?
5 years, 10 months ago (2015-02-12 09:37:23 UTC) #2
nednguyen
https://codereview.chromium.org/884573004/diff/1/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py File tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py (right): https://codereview.chromium.org/884573004/diff/1/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py#newcode110 tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py:110: Branching the core library just for a single use ...
5 years, 10 months ago (2015-02-12 20:52:49 UTC) #4
sullivan
https://codereview.chromium.org/884573004/diff/1/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py File tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py (right): https://codereview.chromium.org/884573004/diff/1/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py#newcode110 tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py:110: On 2015/02/12 20:52:48, nednguyen wrote: > Branching the core ...
5 years, 10 months ago (2015-02-12 21:02:45 UTC) #5
horo
On 2015/02/12 21:02:45, sullivan wrote: > https://codereview.chromium.org/884573004/diff/1/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py > File > tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py > (right): > > ...
5 years, 10 months ago (2015-02-13 01:39:46 UTC) #6
nednguyen
On 2015/02/13 01:39:46, horo wrote: > On 2015/02/12 21:02:45, sullivan wrote: > > > https://codereview.chromium.org/884573004/diff/1/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py ...
5 years, 10 months ago (2015-02-13 02:11:39 UTC) #7
nednguyen
On 2015/02/13 02:11:39, nednguyen wrote: > On 2015/02/13 01:39:46, horo wrote: > > On 2015/02/12 ...
5 years, 10 months ago (2015-02-13 02:13:41 UTC) #8
horo
> why does service_worker context terminated? ServiceWorker could be terminated in many reasons. 1. The ...
5 years, 10 months ago (2015-02-13 03:40:37 UTC) #9
nednguyen
On 2015/02/13 03:40:37, horo wrote: > > why does service_worker context terminated? > > ServiceWorker ...
5 years, 10 months ago (2015-02-13 18:43:12 UTC) #11
horo
> So is the flakiness cause by service_worker context terminated in between > GetUpdatedInspectableContexts() call ...
5 years, 10 months ago (2015-02-16 02:08:40 UTC) #12
nednguyen
Can you add unittest for StopChromeTracing. i.e: create a page that modify console.time/console.timeEnd & assert ...
5 years, 10 months ago (2015-02-16 15:56:16 UTC) #13
horo
> Can you add unittest for StopChromeTracing. i.e: create a page that modify > console.time/console.timeEnd ...
5 years, 10 months ago (2015-02-16 17:34:27 UTC) #14
nednguyen
On 2015/02/16 17:34:27, horo wrote: > > Can you add unittest for StopChromeTracing. i.e: create ...
5 years, 10 months ago (2015-02-16 19:11:47 UTC) #15
nednguyen
https://codereview.chromium.org/884573004/diff/20001/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py File tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py (right): https://codereview.chromium.org/884573004/diff/20001/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py#newcode137 tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py:137: if context['type'] != 'page': On 2015/02/16 17:34:27, horo wrote: ...
5 years, 10 months ago (2015-02-16 19:18:34 UTC) #16
horo
> There are example unittest in tracing_backend_unittest already. Thank you. I added tracing_controller_unittest.py https://codereview.chromium.org/884573004/diff/20001/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py File ...
5 years, 10 months ago (2015-02-17 01:21:02 UTC) #17
nednguyen
On 2015/02/17 01:21:02, horo wrote: > > There are example unittest in tracing_backend_unittest already. > ...
5 years, 10 months ago (2015-02-17 04:24:18 UTC) #18
nednguyen
+achuith on questions about Chrome App & Chrome extensions tracing support. lgtm on my part ...
5 years, 10 months ago (2015-02-17 04:25:13 UTC) #20
nednguyen
https://codereview.chromium.org/884573004/diff/40001/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py File tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py (right): https://codereview.chromium.org/884573004/diff/40001/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py#newcode10 tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py:10: def testModifiedConsoleTime(self): Looking at the win_chromium_rel_ng's failure, I think ...
5 years, 10 months ago (2015-02-17 04:29:20 UTC) #21
horo
Thank you very much for reviewing! https://codereview.chromium.org/884573004/diff/40001/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py File tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py (right): https://codereview.chromium.org/884573004/diff/40001/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py#newcode10 tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py:10: def testModifiedConsoleTime(self): On ...
5 years, 10 months ago (2015-02-17 05:18:36 UTC) #23
nednguyen
On 2015/02/17 05:18:36, horo wrote: > Thank you very much for reviewing! > > https://codereview.chromium.org/884573004/diff/40001/tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py ...
5 years, 10 months ago (2015-02-17 17:00:27 UTC) #24
horo
On 2015/02/17 17:00:27, nednguyen wrote: > On 2015/02/17 05:18:36, horo wrote: > > Thank you ...
5 years, 10 months ago (2015-02-18 09:39:21 UTC) #25
nednguyen
On 2015/02/18 09:39:21, horo wrote: > On 2015/02/17 17:00:27, nednguyen wrote: > > On 2015/02/17 ...
5 years, 10 months ago (2015-02-18 16:01:12 UTC) #26
horo
On 2015/02/18 16:01:12, nednguyen wrote: > On 2015/02/18 09:39:21, horo wrote: > > On 2015/02/17 ...
5 years, 10 months ago (2015-02-19 00:24:32 UTC) #27
horo
achuith@ Does telemetry test support Chrome Apps & Chrome Extensions? If so I have to ...
5 years, 10 months ago (2015-02-19 00:31:11 UTC) #29
horo
On 2015/02/19 00:31:11, horo wrote: > achuith@ > > Does telemetry test support Chrome Apps ...
5 years, 10 months ago (2015-02-23 04:59:17 UTC) #30
nednguyen
On 2015/02/23 04:59:17, horo wrote: > On 2015/02/19 00:31:11, horo wrote: > > achuith@ > ...
5 years, 10 months ago (2015-02-23 16:29:05 UTC) #31
achuithb
On 2015/02/23 16:29:05, nednguyen wrote: > On 2015/02/23 04:59:17, horo wrote: > > On 2015/02/19 ...
5 years, 10 months ago (2015-02-24 00:23:02 UTC) #32
horo
On 2015/02/24 00:23:02, achuithb wrote: > On 2015/02/23 16:29:05, nednguyen wrote: > > On 2015/02/23 ...
5 years, 10 months ago (2015-02-24 00:29:15 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/884573004/80001
5 years, 10 months ago (2015-02-24 00:30:36 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-24 01:48:33 UTC) #36
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 01:49:24 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c8ad009e818cc08a36d5f6a4fe68c97ee3f88179
Cr-Commit-Position: refs/heads/master@{#317730}

Powered by Google App Engine
This is Rietveld 408576698