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

Issue 1263293003: [Telemetry] Change the way host port for android_browser_backend is created (Closed)

Created:
5 years, 4 months ago by nednguyen
Modified:
5 years, 4 months ago
Reviewers:
sullivan, jbudorick
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Change the way host port for android_browser_backend is created Based on https://code.google.com/p/chromium/codesearch#chromium/src/build/android/pylib/ports.py&l=40 AllocateTestServerPort used a lock file for storing tried port & create a range limit for ports. Telemetry doesn't need this scheme for finding a local port for these reasons: 1) There is no reason the local port has to be in the range 10201 & 30000 (there is a TODO to get rid of it here: https://code.google.com/p/chromium/codesearch#chromium/src/build/android/pyli...) 2) When the tried_port saved in lock file reaches the limit TEST_SERVER_PORT_LAST, it creates the assertion failure in crbug.com/495715 3) The lock file make it any less flaky. Implementation of GetUnreservedAvailableLocalPort() is guaranteed to return an unused port number at the time of request. Telemetry has been using this way for allocating port for desktop testing just fine. BUG=495715 Committed: https://crrev.com/a0e2e45b82acfc5ea63ecc1cee12b0cc1e86e557 Cr-Commit-Position: refs/heads/master@{#341546}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M tools/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py View 2 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
nednguyen
5 years, 4 months ago (2015-08-03 15:09:32 UTC) #2
jbudorick
"telemetry doesn't need this scheme for finding a local port" -- why?
5 years, 4 months ago (2015-08-03 15:11:06 UTC) #3
nednguyen
On 2015/08/03 15:11:06, jbudorick wrote: > "telemetry doesn't need this scheme for finding a local ...
5 years, 4 months ago (2015-08-03 15:30:42 UTC) #4
jbudorick
On 2015/08/03 at 15:30:42, nednguyen wrote: > On 2015/08/03 15:11:06, jbudorick wrote: > > "telemetry ...
5 years, 4 months ago (2015-08-03 15:32:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263293003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263293003/1
5 years, 4 months ago (2015-08-03 15:34:17 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 4 months ago (2015-08-03 18:01:20 UTC) #8
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 18:01:57 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a0e2e45b82acfc5ea63ecc1cee12b0cc1e86e557
Cr-Commit-Position: refs/heads/master@{#341546}

Powered by Google App Engine
This is Rietveld 408576698