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

Issue 2618333006: [tools/perf] Fix JavaScript interpolation in action_runner calls (Closed)

Created:
3 years, 11 months ago by perezju
Modified:
3 years, 11 months ago
Reviewers:
nednguyen, hjd
CC:
chromium-reviews, telemetry-reviews_chromium.org, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tools/perf] Fix JavaScript interpolation in action_runner calls The API on action_runner to run JavaScript now supports safe and simple interpolation of values into code templates. This CL fixes and cleans up many of the callers which weren't using robust methods for quoting such values. BUG=catapult:#3028 Review-Url: https://codereview.chromium.org/2618333006 Cr-Commit-Position: refs/heads/master@{#443194} Committed: https://chromium.googlesource.com/chromium/src/+/80aedca1fd5f6a735391ee96f7dbe24220d05782

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix a few more interpolations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -71 lines) Patch
M tools/perf/page_sets/blob_workshop.py View 2 chunks +3 lines, -4 lines 0 comments Download
M tools/perf/page_sets/google_pages.py View 1 3 chunks +5 lines, -4 lines 0 comments Download
M tools/perf/page_sets/indexeddb_endure_page.py View 1 chunk +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/key_silk_cases.py View 3 chunks +10 lines, -10 lines 0 comments Download
M tools/perf/page_sets/login_helpers/dropbox_login.py View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/perf/page_sets/login_helpers/google_login.py View 1 chunk +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/login_helpers/login_utils.py View 1 chunk +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/polymer.py View 4 chunks +16 lines, -17 lines 0 comments Download
M tools/perf/page_sets/repaint_helpers.py View 2 chunks +8 lines, -7 lines 0 comments Download
M tools/perf/page_sets/system_health/browsing_stories.py View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/perf/page_sets/system_health/loading_stories.py View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/perf/page_sets/system_health/media_stories.py View 1 2 chunks +5 lines, -7 lines 0 comments Download
M tools/perf/page_sets/todomvc.py View 1 3 chunks +5 lines, -4 lines 0 comments Download
M tools/perf/page_sets/top_7_stress.py View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
perezju
I tried to be as careful as possible (not to fall again by something like ...
3 years, 11 months ago (2017-01-10 14:20:13 UTC) #4
nednguyen
lgtm https://codereview.chromium.org/2618333006/diff/1/tools/perf/page_sets/google_pages.py File tools/perf/page_sets/google_pages.py (right): https://codereview.chromium.org/2618333006/diff/1/tools/perf/page_sets/google_pages.py#newcode71 tools/perf/page_sets/google_pages.py:71: 'console.time("%s");' % INTERACTION_NAME) also change it here for ...
3 years, 11 months ago (2017-01-10 14:42:24 UTC) #5
perezju
https://codereview.chromium.org/2618333006/diff/1/tools/perf/page_sets/google_pages.py File tools/perf/page_sets/google_pages.py (right): https://codereview.chromium.org/2618333006/diff/1/tools/perf/page_sets/google_pages.py#newcode71 tools/perf/page_sets/google_pages.py:71: 'console.time("%s");' % INTERACTION_NAME) On 2017/01/10 14:42:23, nednguyen wrote: > ...
3 years, 11 months ago (2017-01-10 14:53:01 UTC) #6
hjd
lgtm
3 years, 11 months ago (2017-01-10 15:44:16 UTC) #7
perezju
On 2017/01/10 15:44:16, hjd wrote: > lgtm Thanks for the reviews! I'll hold this a ...
3 years, 11 months ago (2017-01-10 15:52:46 UTC) #8
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/2618333006/20001
3 years, 11 months ago (2017-01-11 13:37:47 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/98117)
3 years, 11 months ago (2017-01-11 15:16:27 UTC) #13
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/2618333006/20001
3 years, 11 months ago (2017-01-11 15:31:24 UTC) #15
perezju
On 2017/01/11 15:16:27, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-11 15:31:33 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/98226)
3 years, 11 months ago (2017-01-11 16:49:32 UTC) #18
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/2618333006/20001
3 years, 11 months ago (2017-01-12 09:27:30 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 10:03:50 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/80aedca1fd5f6a735391ee96f7db...

Powered by Google App Engine
This is Rietveld 408576698