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

Issue 2868183002: Fix breakage when blink_perf benchmarks are run without --browser flag (Closed)

Created:
3 years, 7 months ago by nednguyen
Modified:
3 years, 7 months ago
Reviewers:
Xianzhu
CC:
chromium-reviews, telemetry-reviews_chromium.org, esprehn
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix breakage when blink_perf benchmarks are run without --browser flag Before this, running blink_perf benchmarks through Telemetry will raise exception if "--browser" flag isn't specified. This is because when browser_type isn't set, Telemetry will set a default value using the latest browser build, but this happens after CustomizeBrowserOptions method call. Therefore the check "if 'content-shell' in options.browser_type:"raises an exception because options.browser_type is still None at this point. This CL fixes it by moving the logic of augmenting '--expose-internals-for-testing' to SetOptions hooks, which is invoked after the default value of browser_type is already set. Review-Url: https://codereview.chromium.org/2868183002 Cr-Commit-Position: refs/heads/master@{#470617} Committed: https://chromium.googlesource.com/chromium/src/+/5acc8b0fec7834edf48f612f22274220f32669c3

Patch Set 1 #

Patch Set 2 : Fix BlinkPerf default value #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M tools/perf/benchmarks/blink_perf.py View 1 2 chunks +5 lines, -1 line 2 comments Download

Messages

Total messages: 19 (12 generated)
nednguyen
+Elliot: after this CL, running blink_perf without "--browser" flag will pick up the latest browser ...
3 years, 7 months ago (2017-05-10 00:48:30 UTC) #5
Xianzhu
Do we still have tests requiring content_shell and internals api? If not I'd suggest to ...
3 years, 7 months ago (2017-05-10 02:36:01 UTC) #9
nednguyen
https://codereview.chromium.org/2868183002/diff/20001/tools/perf/benchmarks/blink_perf.py File tools/perf/benchmarks/blink_perf.py (right): https://codereview.chromium.org/2868183002/diff/20001/tools/perf/benchmarks/blink_perf.py#newcode171 tools/perf/benchmarks/blink_perf.py:171: super(_BlinkPerfMeasurement, self).SetOptions(options) The logic of adding "--expose-internals-for-testing" when browser ...
3 years, 7 months ago (2017-05-10 09:54:47 UTC) #12
Xianzhu
https://codereview.chromium.org/2868183002/diff/20001/tools/perf/benchmarks/blink_perf.py File tools/perf/benchmarks/blink_perf.py (right): https://codereview.chromium.org/2868183002/diff/20001/tools/perf/benchmarks/blink_perf.py#newcode171 tools/perf/benchmarks/blink_perf.py:171: super(_BlinkPerfMeasurement, self).SetOptions(options) On 2017/05/10 09:54:47, nednguyen wrote: > The ...
3 years, 7 months ago (2017-05-10 15:48:34 UTC) #13
nednguyen
On 2017/05/10 15:48:34, Xianzhu wrote: > https://codereview.chromium.org/2868183002/diff/20001/tools/perf/benchmarks/blink_perf.py > File tools/perf/benchmarks/blink_perf.py (right): > > https://codereview.chromium.org/2868183002/diff/20001/tools/perf/benchmarks/blink_perf.py#newcode171 > ...
3 years, 7 months ago (2017-05-10 16:03:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2868183002/20001
3 years, 7 months ago (2017-05-10 16:04:07 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 17:02:11 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5acc8b0fec7834edf48f612f2227...

Powered by Google App Engine
This is Rietveld 408576698