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

Issue 640133002: [Telemetry] Properly chose an available device port. (Closed)

Created:
6 years, 2 months ago by tonyg
Modified:
6 years, 2 months ago
Reviewers:
slamm_google, dtu, vmiura, slamm
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@port
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Properly chose an available device port. Previously, we'd start WPR on an available host port and then just assume that the same port was free on the device -- oops. Now, we pass 0 to the forwarder for the device port so that it chooses an available port, and then read back the port that it chose to use for the mapping. I believe this fixes a major case of device forwarder flake. BUG=421599 TBR=slamm@chromium.org Committed: https://crrev.com/6aa01dbdfbce3a03522f8bc0b59916529de54a93 Cr-Commit-Position: refs/heads/master@{#299319}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix desktop #

Patch Set 3 : Fix test #

Patch Set 4 : Fix device port unmapping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -10 lines) Patch
M tools/telemetry/telemetry/core/forwarders/__init__.py View 1 2 chunks +7 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/forwarders/android_forwarder.py View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/wpr_server.py View 2 chunks +5 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/core/wpr_server_unittest.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
tonyg
6 years, 2 months ago (2014-10-09 00:17:04 UTC) #2
tonyg
6 years, 2 months ago (2014-10-09 01:03:34 UTC) #4
slamm
Telemetry's handling of local and remote ports needs to be rethought. This change shows how ...
6 years, 2 months ago (2014-10-09 16:59:59 UTC) #5
slamm
For Android, could you always use 80 and 443 on the device? Those should not ...
6 years, 2 months ago (2014-10-09 21:47:43 UTC) #6
tonyg
On 2014/10/09 16:59:59, slamm wrote: > Telemetry's handling of local and remote ports needs to ...
6 years, 2 months ago (2014-10-11 00:45:34 UTC) #7
tonyg
https://codereview.chromium.org/640133002/diff/1/tools/telemetry/telemetry/core/forwarders/android_forwarder.py File tools/telemetry/telemetry/core/forwarders/android_forwarder.py (right): https://codereview.chromium.org/640133002/diff/1/tools/telemetry/telemetry/core/forwarders/android_forwarder.py#newcode62 tools/telemetry/telemetry/core/forwarders/android_forwarder.py:62: forwarder.Forwarder.DevicePortForHostPort(p.local_port)) On 2014/10/09 16:59:59, slamm wrote: > In the ...
6 years, 2 months ago (2014-10-11 00:45:42 UTC) #8
slamm_google
On 2014/10/11 00:45:42, tonyg wrote: > https://codereview.chromium.org/640133002/diff/1/tools/telemetry/telemetry/core/forwarders/android_forwarder.py > File tools/telemetry/telemetry/core/forwarders/android_forwarder.py (right): > > https://codereview.chromium.org/640133002/diff/1/tools/telemetry/telemetry/core/forwarders/android_forwarder.py#newcode62 > ...
6 years, 2 months ago (2014-10-13 16:42:54 UTC) #9
tonyg
On 2014/10/13 16:42:54, slamm_google wrote: > On 2014/10/11 00:45:42, tonyg wrote: > > > https://codereview.chromium.org/640133002/diff/1/tools/telemetry/telemetry/core/forwarders/android_forwarder.py ...
6 years, 2 months ago (2014-10-13 17:18:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640133002/530001
6 years, 2 months ago (2014-10-13 17:19:46 UTC) #12
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 2 months ago (2014-10-13 17:19:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640133002/530001
6 years, 2 months ago (2014-10-13 17:22:25 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:530001)
6 years, 2 months ago (2014-10-13 17:48:19 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-13 17:48:49 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6aa01dbdfbce3a03522f8bc0b59916529de54a93
Cr-Commit-Position: refs/heads/master@{#299319}

Powered by Google App Engine
This is Rietveld 408576698