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

Issue 2250583004: [telemetry] Wire TsProxy through telemetry's network stack. (Closed)

Created:
4 years, 4 months ago by nednguyen
Modified:
4 years, 4 months ago
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org, kouhei (in TOK), petrcermak, perezju
Base URL:
https://github.com/catapult-project/catapult@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[telemetry] Wire TsProxy through telemetry's network stack. *** NOTE *** please do not revert this CL as it's causing failure on Windows in the catapult roll. I am looking into fixing the failure. This patch makes all the network access of Chrome browser under test go through the ts_proxy server. When a platform instance in telemetry is initiated, we set up a ts_proxy_server for that platform & forward the ts_proxy's port when the platform is remote platform. For any newly created instance of WPR, we route the ts_proxy_server' outbounds to that WPR server's ports. Traffic between Chrome & static local server will also go through ts_proxy_server but doesn't require any extra code for routing because ts_proxy automatically routes "localhost://*" url to the right host. Any Chrome instance to be started will be routed to either ts_proxy_server' port or its corresponding forwarded port. ts_proxy_server is only killed when telemetry process ends. BUG=catapult:#2584 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/9fcccf0b65703994c9541273f00a993806a95356

Patch Set 1 #

Total comments: 1

Patch Set 2 : Set host address for ts_proxy_server #

Patch Set 3 : Rebase #

Patch Set 4 : More tests passing #

Patch Set 5 : Fixed tests #

Total comments: 1

Patch Set 6 : CrOS fix? #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -606 lines) Patch
M telemetry/telemetry/core/local_server.py View 2 chunks +10 lines, -8 lines 0 comments Download
M telemetry/telemetry/core/network_controller.py View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/chrome_browser_backend.py View 1 2 1 chunk +3 lines, -11 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/chrome_browser_backend_unittest.py View 1 2 3 4 3 chunks +10 lines, -11 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M telemetry/telemetry/internal/forwarders/__init__.py View 3 chunks +9 lines, -30 lines 0 comments Download
M telemetry/telemetry/internal/forwarders/android_forwarder.py View 2 chunks +12 lines, -15 lines 0 comments Download
M telemetry/telemetry/internal/forwarders/cros_forwarder.py View 2 chunks +13 lines, -11 lines 1 comment Download
M telemetry/telemetry/internal/forwarders/cros_forwarder_unittest.py View 1 chunk +5 lines, -12 lines 0 comments Download
M telemetry/telemetry/internal/forwarders/do_nothing_forwarder.py View 2 chunks +19 lines, -33 lines 0 comments Download
M telemetry/telemetry/internal/forwarders/do_nothing_forwarder_unittest.py View 1 2 3 4 1 chunk +7 lines, -30 lines 0 comments Download
M telemetry/telemetry/internal/platform/android_platform_backend.py View 2 chunks +4 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/platform/cros_platform_backend.py View 1 2 3 4 5 2 chunks +0 lines, -12 lines 0 comments Download
M telemetry/telemetry/internal/platform/network_controller_backend.py View 1 2 3 4 7 chunks +46 lines, -25 lines 0 comments Download
D telemetry/telemetry/internal/platform/network_controller_backend_unittest.py View 1 2 3 4 1 chunk +0 lines, -390 lines 0 comments Download
M telemetry/telemetry/internal/platform/platform_backend.py View 2 chunks +3 lines, -7 lines 0 comments Download
M telemetry/telemetry/internal/util/ts_proxy_server.py View 1 3 chunks +7 lines, -4 lines 0 comments Download
M telemetry/telemetry/internal/util/ts_proxy_server_unittest.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/util/wpr_server.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/page/shared_page_state.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M telemetry/telemetry/testing/browser_test_case.py View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M telemetry/telemetry/testing/fakes/__init__.py View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (24 generated)
nednguyen
Patching this in chromium/src/third_party/catapult is still failing. I am wonder whether the dynamically mapping outbound ...
4 years, 4 months ago (2016-08-16 18:52:55 UTC) #3
nednguyen
On 2016/08/16 18:52:55, nednguyen wrote: > Patching this in chromium/src/third_party/catapult is still failing. I am ...
4 years, 4 months ago (2016-08-17 12:39:07 UTC) #5
nednguyen
On 2016/08/17 12:39:07, nednguyen wrote: > On 2016/08/16 18:52:55, nednguyen wrote: > > Patching this ...
4 years, 4 months ago (2016-08-17 12:41:05 UTC) #7
Pat Meenan
lgtm When this lands make sure the perf sheriffs are aware in case the page ...
4 years, 4 months ago (2016-08-17 12:59:10 UTC) #8
bccheng
On 2016/08/17 12:41:05, nednguyen wrote: > On 2016/08/17 12:39:07, nednguyen wrote: > > On 2016/08/16 ...
4 years, 4 months ago (2016-08-17 13:08:37 UTC) #9
nednguyen
On 2016/08/17 13:08:37, bccheng wrote: > On 2016/08/17 12:41:05, nednguyen wrote: > > On 2016/08/17 ...
4 years, 4 months ago (2016-08-17 13:22:07 UTC) #10
nednguyen
https://codereview.chromium.org/2250583004/diff/100001/telemetry/telemetry/internal/platform/network_controller_backend_unittest.py File telemetry/telemetry/internal/platform/network_controller_backend_unittest.py (left): https://codereview.chromium.org/2250583004/diff/100001/telemetry/telemetry/internal/platform/network_controller_backend_unittest.py#oldcode1 telemetry/telemetry/internal/platform/network_controller_backend_unittest.py:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
4 years, 4 months ago (2016-08-17 19:12:25 UTC) #27
bccheng
Test failed on Samus: [ FAILED ] video.html?src=crowd.wav&type=audio (5302 ms) Traceback (most recent call last): ...
4 years, 4 months ago (2016-08-18 08:11:41 UTC) #28
nednguyen
Thanks Ben. Can you try the tests again with the latest patch?
4 years, 4 months ago (2016-08-18 12:46:22 UTC) #29
nednguyen
https://codereview.chromium.org/2250583004/diff/120001/telemetry/telemetry/internal/forwarders/cros_forwarder.py File telemetry/telemetry/internal/forwarders/cros_forwarder.py (right): https://codereview.chromium.org/2250583004/diff/120001/telemetry/telemetry/internal/forwarders/cros_forwarder.py#newcode20 telemetry/telemetry/internal/forwarders/cros_forwarder.py:20: def Create(self, port_pair, use_remote_port_forwarding=True): +Achuith, Ben: can you review ...
4 years, 4 months ago (2016-08-18 12:48:08 UTC) #30
bccheng
lgtm The latest patch passes on Chromebook now.
4 years, 4 months ago (2016-08-19 09:19:53 UTC) #31
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/2250583004/120001
4 years, 4 months ago (2016-08-19 10:26:24 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 10:53:24 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698