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

Issue 2687773003: [Telemetry] Switch clients to new JavaScript API (batch 5) (Closed)

Created:
3 years, 10 months ago by perezju
Modified:
3 years, 10 months ago
Reviewers:
nednguyen
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Telemetry] Switch clients to new JavaScript API (batch 5) Clients are switched to use EvaluateJavaScript2, ExecuteJavaScript2, and WaitForJavaScriptCondition2. Several cases of unsafe interpolation are fixed in the process. Also adds the option to interpolate a list of *args. BUG=catapult:#3028 Review-Url: https://codereview.chromium.org/2687773003 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/21c13dbde78ea46c452de6fc8d583e3a88be9780

Patch Set 1 #

Patch Set 2 : fix typos #

Total comments: 1

Patch Set 3 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -243 lines) Patch
M telemetry/examples/browser_tests/simple_browser_test.py View 2 chunks +8 lines, -7 lines 0 comments Download
M telemetry/telemetry/core/local_server_unittest.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/core/memory_cache_http_server_unittest.py View 1 2 chunks +10 lines, -9 lines 0 comments Download
M telemetry/telemetry/core/tracing_controller_unittest.py View 1 chunk +2 lines, -4 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/chrome_browser_backend.py View 3 chunks +7 lines, -9 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/cros_test_case.py View 2 chunks +4 lines, -6 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/cros_unittest.py View 2 chunks +15 lines, -17 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/ios_browser_finder.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/backends/chrome/oobe.py View 1 6 chunks +27 lines, -33 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/devtools_client_backend.py View 1 chunk +6 lines, -5 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/inspector_console_unittest.py View 1 chunk +2 lines, -2 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/inspector_memory_unittest.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/inspector_page_unittest.py View 1 chunk +5 lines, -5 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/inspector_runtime_unittest.py View 5 chunks +11 lines, -12 lines 0 comments Download
M telemetry/telemetry/internal/backends/form_based_credentials_backend.py View 2 chunks +15 lines, -14 lines 0 comments Download
M telemetry/telemetry/internal/backends/form_based_credentials_backend_unittest_base.py View 1 2 2 chunks +13 lines, -10 lines 0 comments Download
M telemetry/telemetry/internal/browser/browser.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/browser/browser_info.py View 1 chunk +2 lines, -2 lines 0 comments Download
M telemetry/telemetry/internal/browser/extension_unittest.py View 5 chunks +10 lines, -10 lines 0 comments Download
M telemetry/telemetry/internal/browser/tab.py View 3 chunks +35 lines, -35 lines 0 comments Download
M telemetry/telemetry/internal/browser/tab_unittest.py View 5 chunks +11 lines, -11 lines 0 comments Download
M telemetry/telemetry/internal/browser/user_agent_unittest.py View 3 chunks +3 lines, -3 lines 0 comments Download
M telemetry/telemetry/internal/platform/profiler/tcmalloc_heap_profiler.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/tracing_agent/chrome_tracing_agent.py View 2 chunks +7 lines, -8 lines 0 comments Download
M telemetry/telemetry/page/cache_temperature.py View 1 chunk +10 lines, -16 lines 0 comments Download
M telemetry/telemetry/page/legacy_page_test.py View 2 chunks +2 lines, -2 lines 0 comments Download
M telemetry/telemetry/page/page_run_end_to_end_unittest.py View 2 chunks +3 lines, -2 lines 0 comments Download
M telemetry/telemetry/page/page_test_unittest.py View 3 chunks +3 lines, -3 lines 0 comments Download
M telemetry/telemetry/util/js_template.py View 3 chunks +13 lines, -6 lines 0 comments Download
M telemetry/telemetry/util/js_template_unittest.py View 1 chunk +6 lines, -0 lines 0 comments Download
M telemetry/telemetry/value/histogram_util.py View 1 chunk +3 lines, -4 lines 0 comments Download
M telemetry/telemetry/web_perf/timeline_based_page_test_unittest.py View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
perezju
And this should be the final batch! https://codereview.chromium.org/2687773003/diff/20001/telemetry/telemetry/util/js_template.py File telemetry/telemetry/util/js_template.py (right): https://codereview.chromium.org/2687773003/diff/20001/telemetry/telemetry/util/js_template.py#newcode26 telemetry/telemetry/util/js_template.py:26: commas. I'm ...
3 years, 10 months ago (2017-02-09 15:29:10 UTC) #2
nednguyen
lgtm
3 years, 10 months ago (2017-02-09 17:08:08 UTC) #3
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/2687773003/20001
3 years, 10 months ago (2017-02-10 10:34:57 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Linux Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Linux%20Tryserver/builds/6551)
3 years, 10 months ago (2017-02-10 10:46:27 UTC) #7
perezju
Just hacked enough the tests for the (deprecated) form_based_credentials_backend to pass.
3 years, 10 months ago (2017-02-10 12:19:14 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/2687773003/40001
3 years, 10 months ago (2017-02-10 12:19:27 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/21c13dbde78ea46c452de6fc8d583e3a88be9780
3 years, 10 months ago (2017-02-10 12:40:55 UTC) #14
sullivan
3 years, 10 months ago (2017-02-12 19:01:05 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2692763002/ by sullivan@chromium.org.

The reason for reverting is: Broke telemetry_perf_unittests. See
https://github.com/catapult-project/catapult/issues/3208.

Powered by Google App Engine
This is Rietveld 408576698