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

Issue 760653002: Telemetry --device (Closed)

Created:
6 years ago by Zhen Wang
Modified:
5 years, 10 months ago
CC:
fmeawad, chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Telemetry --device Enable Telemetry to discover devices and find browsers for each device. BUG=435723 Committed: https://crrev.com/d5f6ea98506d437a71afca8ea937c3fc380d1532 Cr-Commit-Position: refs/heads/master@{#314420}

Patch Set 1 #

Total comments: 4

Patch Set 2 : --device=list #

Patch Set 3 : --browser=list hierarchical output #

Patch Set 4 : browser selection #

Total comments: 4

Patch Set 5 : 3rd version #

Total comments: 3

Patch Set 6 : 4th version #

Total comments: 10

Patch Set 7 : review fix #

Total comments: 9

Patch Set 8 : nit #

Total comments: 2

Patch Set 9 : rebase #

Patch Set 10 : review fix #

Patch Set 11 : tests #

Total comments: 4

Patch Set 12 : review fix #

Total comments: 15

Patch Set 13 : review fix #

Total comments: 4

Patch Set 14 : review fix #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -90 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -18 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder_unittest.py View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/ios_browser_finder.py View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -12 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/ios_browser_finder_unittest.py View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/backends/remote/trybot_browser_finder.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/webdriver/webdriver_desktop_browser_finder.py View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/browser_finder.py View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +45 lines, -14 lines 0 comments Download
M tools/telemetry/telemetry/core/browser_options.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +35 lines, -10 lines 0 comments Download
A tools/telemetry/telemetry/core/device_finder.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +45 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_device.py View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +39 lines, -26 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_device_unittest.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +42 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/cros_device.py View 1 2 3 4 5 6 7 8 9 2 chunks +26 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/desktop_device.py View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/ios_device.py View 1 2 3 4 5 6 7 8 9 1 chunk +40 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/trybot_device.py View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (7 generated)
Zhen Wang
Given Nat's comment at https://code.google.com/p/chromium/issues/detail?id=435723#c7, I agree that Platform and Device have different life cycle. ...
6 years ago (2014-11-25 19:50:01 UTC) #2
tonyg
This is awesome. A couple of nits/questions -- other than that, I think this is ...
6 years ago (2014-12-04 02:29:15 UTC) #4
nednguyen
https://codereview.chromium.org/760653002/diff/1/tools/telemetry/telemetry/core/platform/device.py File tools/telemetry/telemetry/core/platform/device.py (right): https://codereview.chromium.org/760653002/diff/1/tools/telemetry/telemetry/core/platform/device.py#newcode34 tools/telemetry/telemetry/core/platform/device.py:34: def FindAllAvailableBrowsers(self, options): Why is this is a Device ...
6 years ago (2014-12-04 02:48:35 UTC) #6
tonyg
On 2014/12/04 02:48:35, nednguyen wrote: > https://codereview.chromium.org/760653002/diff/1/tools/telemetry/telemetry/core/platform/device.py > File tools/telemetry/telemetry/core/platform/device.py (right): > > https://codereview.chromium.org/760653002/diff/1/tools/telemetry/telemetry/core/platform/device.py#newcode34 > ...
6 years ago (2014-12-04 02:50:32 UTC) #7
nednguyen
On 2014/12/04 02:50:32, tonyg wrote: > On 2014/12/04 02:48:35, nednguyen wrote: > > > https://codereview.chromium.org/760653002/diff/1/tools/telemetry/telemetry/core/platform/device.py ...
6 years ago (2014-12-04 03:10:51 UTC) #8
tonyg
On 2014/12/04 03:10:51, nednguyen wrote: > On 2014/12/04 02:50:32, tonyg wrote: > > On 2014/12/04 ...
6 years ago (2014-12-04 03:27:37 UTC) #9
Zhen Wang
> I see that, I just don't see why it's a device's method. The device ...
6 years ago (2014-12-04 16:33:06 UTC) #10
nednguyen
On 2014/12/04 16:33:06, Zhen Wang wrote: > > I see that, I just don't see ...
6 years ago (2014-12-04 17:10:42 UTC) #11
Zhen Wang
On 2014/12/04 17:10:42, nednguyen wrote: > On 2014/12/04 16:33:06, Zhen Wang wrote: > > > ...
6 years ago (2014-12-04 17:45:11 UTC) #12
nednguyen
On 2014/12/04 17:45:11, Zhen Wang wrote: > On 2014/12/04 17:10:42, nednguyen wrote: > > On ...
6 years ago (2014-12-04 17:54:44 UTC) #13
Zhen Wang
> > I don't think the API is extended. It is shifted from > > ...
6 years ago (2014-12-04 18:19:29 UTC) #14
nednguyen
On 2014/12/04 18:19:29, Zhen Wang wrote: > > > I don't think the API is ...
6 years ago (2014-12-04 18:34:31 UTC) #15
Zhen Wang
I have re-implemented the code (patch 2 to 4). The new version minimizes the changes ...
5 years, 11 months ago (2015-01-07 01:58:04 UTC) #16
nednguyen
Relying on browser_finders_* and add the 'device_id' field to possible_browser/possible_app find devices seems like a ...
5 years, 11 months ago (2015-01-07 18:18:10 UTC) #17
Zhen Wang
On 2015/01/07 18:18:10, nednguyen wrote: > Relying on browser_finders_* and add the 'device_id' field to ...
5 years, 11 months ago (2015-01-07 18:28:47 UTC) #18
nednguyen
On 2015/01/07 18:28:47, Zhen Wang wrote: > On 2015/01/07 18:18:10, nednguyen wrote: > > Relying ...
5 years, 11 months ago (2015-01-07 18:42:36 UTC) #19
Zhen Wang
The 3rd version. ptal.
5 years, 11 months ago (2015-01-08 02:13:59 UTC) #20
nednguyen
Why do the possible_browser* classes have the device_name & device_id? https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py File tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py (right): https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py#newcode40 ...
5 years, 11 months ago (2015-01-08 22:18:11 UTC) #21
nednguyen
https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/browser_options.py#newcode175 tools/telemetry/telemetry/core/browser_options.py:175: if device.guid == browser.device_id] Nah, don't do it this ...
5 years, 11 months ago (2015-01-08 22:21:27 UTC) #22
dtu
https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/browser_options.py#newcode175 tools/telemetry/telemetry/core/browser_options.py:175: if device.guid == browser.device_id] On 2015/01/08 22:21:27, nednguyen wrote: ...
5 years, 11 months ago (2015-01-08 22:27:36 UTC) #23
nednguyen
On 2015/01/08 22:27:36, dtu wrote: > https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/browser_options.py > File tools/telemetry/telemetry/core/browser_options.py (right): > > https://codereview.chromium.org/760653002/diff/80001/tools/telemetry/telemetry/core/browser_options.py#newcode175 > ...
5 years, 11 months ago (2015-01-08 22:28:51 UTC) #24
Zhen Wang
> > Agreed, GetAllAvailableBrowsers should find the correct browser finder(s) > given > > the ...
5 years, 11 months ago (2015-01-08 23:03:48 UTC) #25
nednguyen
On 2015/01/08 23:03:48, Zhen Wang wrote: > > > Agreed, GetAllAvailableBrowsers should find the correct ...
5 years, 11 months ago (2015-01-08 23:41:31 UTC) #26
dtu
On 2015/01/08 23:03:48, Zhen Wang wrote: > > > Agreed, GetAllAvailableBrowsers should find the correct ...
5 years, 11 months ago (2015-01-08 23:43:01 UTC) #27
Zhen Wang
Some browser finders get the platform by platform.GetPlatformForDevice(device), and then the platform will be passed ...
5 years, 11 months ago (2015-01-08 23:57:09 UTC) #28
nednguyen
On 2015/01/08 23:57:09, Zhen Wang wrote: > Some browser finders get the platform by platform.GetPlatformForDevice(device), ...
5 years, 11 months ago (2015-01-09 05:21:40 UTC) #29
Zhen Wang
ptal. This version still passes device to browser_finder instead of platform: browser_finder.GetAllAvailableBrowsers(device)
5 years, 11 months ago (2015-01-21 21:40:48 UTC) #30
nednguyen
This looks quite solid to me. https://codereview.chromium.org/760653002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py File tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py (right): https://codereview.chromium.org/760653002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py#newcode19 tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py:19: def Type(): This ...
5 years, 11 months ago (2015-01-23 04:31:15 UTC) #31
nednguyen
On 2015/01/23 04:31:15, nednguyen wrote: > This looks quite solid to me. > > https://codereview.chromium.org/760653002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py ...
5 years, 11 months ago (2015-01-23 16:42:31 UTC) #32
Zhen Wang
This CL adds "--device=list" and use a hierarchical view for "--browser=list". It does not change ...
5 years, 11 months ago (2015-01-23 18:57:10 UTC) #33
nednguyen
https://codereview.chromium.org/760653002/diff/100001/tools/telemetry/telemetry/core/platform/desktop_device.py File tools/telemetry/telemetry/core/platform/desktop_device.py (right): https://codereview.chromium.org/760653002/diff/100001/tools/telemetry/telemetry/core/platform/desktop_device.py#newcode21 tools/telemetry/telemetry/core/platform/desktop_device.py:21: if platform.GetHostPlatform().GetOSName() == 'chromeos': On 2015/01/23 18:57:10, Zhen Wang ...
5 years, 11 months ago (2015-01-23 19:30:36 UTC) #34
nednguyen
https://codereview.chromium.org/760653002/diff/140001/tools/telemetry/telemetry/core/device_finder.py File tools/telemetry/telemetry/core/device_finder.py (right): https://codereview.chromium.org/760653002/diff/140001/tools/telemetry/telemetry/core/device_finder.py#newcode33 tools/telemetry/telemetry/core/device_finder.py:33: def GetAllAvailableDeviceNames(options): This method should not need to take ...
5 years, 11 months ago (2015-01-23 19:32:16 UTC) #35
Zhen Wang
https://codereview.chromium.org/760653002/diff/100001/tools/telemetry/telemetry/core/platform/desktop_device.py File tools/telemetry/telemetry/core/platform/desktop_device.py (right): https://codereview.chromium.org/760653002/diff/100001/tools/telemetry/telemetry/core/platform/desktop_device.py#newcode21 tools/telemetry/telemetry/core/platform/desktop_device.py:21: if platform.GetHostPlatform().GetOSName() == 'chromeos': On 2015/01/23 19:30:36, nednguyen wrote: ...
5 years, 11 months ago (2015-01-26 20:10:43 UTC) #37
nednguyen
lgtm Can you check with Achuith to make sure that your change doesn't break cros?
5 years, 11 months ago (2015-01-26 22:09:39 UTC) #38
nednguyen
https://codereview.chromium.org/760653002/diff/200001/tools/telemetry/telemetry/core/browser_finder.py File tools/telemetry/telemetry/core/browser_finder.py (right): https://codereview.chromium.org/760653002/diff/200001/tools/telemetry/telemetry/core/browser_finder.py#newcode136 tools/telemetry/telemetry/core/browser_finder.py:136: def GetAllAvailableBrowsers(options, device): Who call this? https://codereview.chromium.org/760653002/diff/200001/tools/telemetry/telemetry/core/browser_finder.py#newcode154 tools/telemetry/telemetry/core/browser_finder.py:154: return ...
5 years, 11 months ago (2015-01-26 22:14:08 UTC) #39
Zhen Wang
Hi Achuith, can you take a look at the Chrome OS cases? https://codereview.chromium.org/760653002/diff/200001/tools/telemetry/telemetry/core/browser_finder.py File tools/telemetry/telemetry/core/browser_finder.py ...
5 years, 11 months ago (2015-01-26 22:40:55 UTC) #40
achuithb
I'd actually like to try this CL out on cros, please give me a few ...
5 years, 11 months ago (2015-01-26 22:53:00 UTC) #41
Zhen Wang
OK. Thanks! Take your time. I will also need to try it on Mac this ...
5 years, 11 months ago (2015-01-26 22:55:10 UTC) #42
dtu
https://codereview.chromium.org/760653002/diff/220001/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/760653002/diff/220001/tools/telemetry/telemetry/core/browser_options.py#newcode165 tools/telemetry/telemetry/core/browser_options.py:165: sys.stdout.write('Available devices:\n') nit: print 'Available devices:' https://codereview.chromium.org/760653002/diff/220001/tools/telemetry/telemetry/core/browser_options.py#newcode166 tools/telemetry/telemetry/core/browser_options.py:166: sys.stdout.write(' ...
5 years, 11 months ago (2015-01-26 23:44:22 UTC) #43
Zhen Wang
https://codereview.chromium.org/760653002/diff/220001/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/760653002/diff/220001/tools/telemetry/telemetry/core/browser_options.py#newcode165 tools/telemetry/telemetry/core/browser_options.py:165: sys.stdout.write('Available devices:\n') On 2015/01/26 23:44:21, dtu wrote: > nit: ...
5 years, 11 months ago (2015-01-27 04:37:32 UTC) #44
dtu
lgtm with nits https://codereview.chromium.org/760653002/diff/220001/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/760653002/diff/220001/tools/telemetry/telemetry/core/browser_options.py#newcode165 tools/telemetry/telemetry/core/browser_options.py:165: sys.stdout.write('Available devices:\n') On 2015/01/27 04:37:32, Zhen ...
5 years, 11 months ago (2015-01-27 23:37:14 UTC) #45
Zhen Wang
https://codereview.chromium.org/760653002/diff/240001/tools/telemetry/telemetry/core/browser_options.py File tools/telemetry/telemetry/core/browser_options.py (right): https://codereview.chromium.org/760653002/diff/240001/tools/telemetry/telemetry/core/browser_options.py#newcode190 tools/telemetry/telemetry/core/browser_options.py:190: sys.stdout.write('Available browsers:\n') On 2015/01/27 23:37:14, dtu wrote: > nit: ...
5 years, 11 months ago (2015-01-27 23:46:46 UTC) #46
Zhen Wang
Hi Achuith, can you check on Chrome OS? Thanks!
5 years, 10 months ago (2015-01-31 00:11:00 UTC) #47
Zhen Wang
On 2015/01/31 00:11:00, Zhen Wang wrote: > Hi Achuith, can you check on Chrome OS? ...
5 years, 10 months ago (2015-02-03 15:29:48 UTC) #48
nednguyen
5 years, 10 months ago (2015-02-03 16:02:45 UTC) #50
nednguyen
On 2015/02/03 16:02:45, nednguyen wrote: +Laurens: Zhen's effort to add CQ bot for android devices ...
5 years, 10 months ago (2015-02-03 16:03:46 UTC) #51
achuithb
On 2015/02/03 16:03:46, nednguyen wrote: > On 2015/02/03 16:02:45, nednguyen wrote: > > +Laurens: Zhen's ...
5 years, 10 months ago (2015-02-03 17:59:41 UTC) #52
achuithb
lgtm. This works on cros. Thanks for your patience
5 years, 10 months ago (2015-02-03 20:32:22 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760653002/270001
5 years, 10 months ago (2015-02-03 22:20:09 UTC) #56
commit-bot: I haz the power
Committed patchset #15 (id:270001)
5 years, 10 months ago (2015-02-03 22:26:15 UTC) #57
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 22:27:19 UTC) #58
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/d5f6ea98506d437a71afca8ea937c3fc380d1532
Cr-Commit-Position: refs/heads/master@{#314420}

Powered by Google App Engine
This is Rietveld 408576698