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

Issue 374793002: Refactor of record_wpr.py (Closed)

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

Description

Refactor of record_wpr.py * Breaks major steps out into functions * Adds additional tests * Adds support for command line flags defined in benchmarks * Calls the PageTest RunPage directly, rather than kinda sorta reimplementing parts ourselves * Fixes running benchmarks with record_wpr.py (crbug.com/378064) * Page sets are referenced via class name on the command line, rather than by filename. Other minor changes: * Output will be different for failed pages at the end, using the default results PrintSummary() rather than a separate implementation (in this case GTestTestResults). BUG=378064, 367292 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285490

Patch Set 1 #

Patch Set 2 : add tests #

Patch Set 3 : more tests #

Total comments: 13

Patch Set 4 : address (most) comments #

Patch Set 5 : #

Patch Set 6 : pagesets referenced by class name #

Patch Set 7 : #

Patch Set 8 : git rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -138 lines) Patch
M tools/telemetry/telemetry/page/record_wpr.py View 1 2 3 4 5 6 7 3 chunks +142 lines, -95 lines 0 comments Download
M tools/telemetry/telemetry/page/record_wpr_unittest.py View 1 2 3 4 5 1 chunk +171 lines, -38 lines 0 comments Download
A + tools/telemetry/unittest_data/page_measurements/__init__.py View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + tools/telemetry/unittest_data/page_measurements/page_measurement1.py View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
A + tools/telemetry/unittest_data/page_measurements/page_measurement2.py View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
A + tools/telemetry/unittest_data/page_measurements/page_measurement3.py View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ariblue
6 years, 5 months ago (2014-07-16 22:58:44 UTC) #1
chrishenry
https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py File tools/telemetry/telemetry/page/record_wpr.py (right): https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py#newcode33 tools/telemetry/telemetry/page/record_wpr.py:33: page.file_path.startswith(util.GetUnittestDataDir())) The unit test should start a HTTP server ...
6 years, 5 months ago (2014-07-16 23:41:30 UTC) #2
ariblue
https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py File tools/telemetry/telemetry/page/record_wpr.py (right): https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py#newcode70 tools/telemetry/telemetry/page/record_wpr.py:70: # dummy PageMeasurementResults that implements the functions we use. ...
6 years, 5 months ago (2014-07-17 01:27:26 UTC) #3
ariblue
https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py File tools/telemetry/telemetry/page/record_wpr.py (right): https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py#newcode33 tools/telemetry/telemetry/page/record_wpr.py:33: page.file_path.startswith(util.GetUnittestDataDir())) On 2014/07/16 23:41:30, chrishenry wrote: > The unit ...
6 years, 5 months ago (2014-07-17 22:13:22 UTC) #4
chrishenry
lgtm, but you'll still need either dtu/tonyg's lgtm too. https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py File tools/telemetry/telemetry/page/record_wpr.py (right): https://codereview.chromium.org/374793002/diff/60001/tools/telemetry/telemetry/page/record_wpr.py#newcode92 tools/telemetry/telemetry/page/record_wpr.py:92: ...
6 years, 5 months ago (2014-07-18 00:11:28 UTC) #5
tonyg
lgtm++ Wow, this is so much better and thanks for the much needed unittesting. ps. ...
6 years, 5 months ago (2014-07-24 16:28:36 UTC) #6
ariblue
The CQ bit was checked by ariblue@google.com
6 years, 5 months ago (2014-07-24 18:56:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ariblue@google.com/374793002/220001
6 years, 5 months ago (2014-07-24 18:58:42 UTC) #8
ariblue
The CQ bit was checked by ariblue@google.com
6 years, 5 months ago (2014-07-24 19:36:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ariblue@google.com/374793002/240001
6 years, 5 months ago (2014-07-24 19:38:21 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-24 23:46:51 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 05:44:18 UTC) #12
Message was sent while issue was closed.
Change committed as 285490

Powered by Google App Engine
This is Rietveld 408576698