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

Issue 721443005: [Telemetry] Move test.DidRunTest call to shared_page_state.TearDown(). (Closed)

Created:
6 years, 1 month ago by nednguyen
Modified:
6 years, 1 month ago
Reviewers:
dtu, chrishenry, tonyg
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Move test.DidRunTest call to shared_page_state.TearDown(). The main motivation is to remove the usage of browser instance in page_runner (along with https://codereview.chromium.org/737463002/). One behavior change to notice is that the original implementation calls DidRunTest exactly once, but this patch may make DidRunTest called multiple times. There are 3 perf tests that overrides page_test.DidRunTest: dom_perf.DidRunTest: which doesn't touch browser. peacekeeper.DidRunTest: which doesn't touch browser. page_cycler.DidRunTest: use browser to get the IO metric. The reason why page test has DidRunTest hook is that it provides the way to summarize statistics for a *single browser instance* across many tests. If TearDown is called the second time, the browser must be restarted hence makes the DidRunTest's computation meaningless. This scenario does create test failures, so the dashboard should be adjusted to ignore the summary metrics in case this failure happens. BUG=418278 Committed: https://crrev.com/e32e9ce39e8d2f7c077f38591a1ca0175540faa0 Cr-Commit-Position: refs/heads/master@{#304515}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address Chris's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M tools/telemetry/telemetry/page/page_runner.py View 1 3 chunks +3 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/page/shared_page_state.py View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
nednguyen
6 years, 1 month ago (2014-11-17 18:35:06 UTC) #2
chrishenry
lgtm We chatted offline about this and Ned convinced me that there are no other ...
6 years, 1 month ago (2014-11-17 19:41:35 UTC) #3
nednguyen
https://codereview.chromium.org/721443005/diff/1/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (left): https://codereview.chromium.org/721443005/diff/1/tools/telemetry/telemetry/page/page_runner.py#oldcode225 tools/telemetry/telemetry/page/page_runner.py:225: test.DidRunTest(state.browser, results) On 2014/11/17 19:41:34, chrishenry wrote: > Maybe ...
6 years, 1 month ago (2014-11-17 22:06:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/721443005/20001
6 years, 1 month ago (2014-11-17 22:08:08 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-17 23:29:10 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 23:29:48 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e32e9ce39e8d2f7c077f38591a1ca0175540faa0
Cr-Commit-Position: refs/heads/master@{#304515}

Powered by Google App Engine
This is Rietveld 408576698