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

Issue 522553002: Move remote platforms creation logic from android_browser_finder to platform (Closed)

Created:
6 years, 3 months ago by nednguyen
Modified:
6 years, 2 months ago
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move remote platforms creation logic from android_browser_finder to platform Previously, creation of platforms is done in browser_finder classes. This patch aims to detach the coupling between creating browsers from platform by moving such methods to platform. Also modify android_platform_backend so it owns the adb instance. SHERRIFS: reverting this patch will require reverting https://codereview.chromium.org/541693004/ first. BUG=413637 Committed: https://crrev.com/5289ba2d6a2c1eb3f429673ac0088f658d8aee5a Cr-Commit-Position: refs/heads/master@{#296310}

Patch Set 1 #

Patch Set 2 : Fix android_platform_backend_unittest, android_browser_finder_unittest #

Patch Set 3 : Add platform_finder_unittest #

Patch Set 4 : Remove platform_finders #

Patch Set 5 : Split cros changes to another patch #

Patch Set 6 : Rebase #

Total comments: 23

Patch Set 7 : Address review comments #

Total comments: 2

Patch Set 8 : Replace FromDevice with SupportsDevice + constructor #

Patch Set 9 : Fix android_browser_finder_unittest #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -222 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 2 3 4 5 6 11 chunks +30 lines, -27 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py View 1 2 3 4 5 6 7 8 chunks +32 lines, -72 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_finder_unittest.py View 1 2 3 4 5 6 7 8 4 chunks +23 lines, -31 lines 0 comments Download
M tools/telemetry/telemetry/core/exceptions.py View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 3 4 5 6 7 3 chunks +21 lines, -19 lines 1 comment Download
A tools/telemetry/telemetry/core/platform/android_device.py View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/android_device_unittest.py View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 2 3 4 5 6 7 4 chunks +41 lines, -10 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py View 1 2 3 4 5 6 7 2 chunks +9 lines, -41 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/cros_device.py View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/cros_platform_backend.py View 1 2 3 4 5 6 7 2 chunks +14 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/device.py View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 2 3 4 5 6 7 2 chunks +19 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper_unittest.py View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M tools/telemetry/telemetry/unittest/system_stub.py View 1 2 3 4 5 6 7 8 5 chunks +34 lines, -9 lines 0 comments Download

Messages

Total messages: 39 (8 generated)
nednguyen
nednguyen@google.com changed reviewers: + nduca@chromium.org, tonyg@chromium.org
6 years, 3 months ago (2014-08-29 03:23:15 UTC) #1
nednguyen
6 years, 3 months ago (2014-08-29 03:23:15 UTC) #2
nednguyen
nednguyen@google.com changed reviewers: + dtu@chromium.org
6 years, 3 months ago (2014-08-29 03:30:50 UTC) #3
nednguyen
6 years, 3 months ago (2014-08-29 03:30:50 UTC) #4
nednguyen
6 years, 3 months ago (2014-09-02 15:32:37 UTC) #5
nednguyen
On 2014/09/02 15:32:37, nednguyen wrote: Discussed with Nat offline, I will make some further changes ...
6 years, 3 months ago (2014-09-02 16:21:16 UTC) #6
nduca
per chat, how about abstract class Device, Android and Cros being two subclasses. staticmethod Device.FindAllConnected(), ...
6 years, 3 months ago (2014-09-02 16:33:31 UTC) #7
nednguyen
+achuith for changes to cros
6 years, 3 months ago (2014-09-03 18:10:14 UTC) #9
nednguyen
On 2014/09/03 18:10:14, nednguyen wrote: > +achuith for changes to cros PTAL
6 years, 3 months ago (2014-09-04 00:39:28 UTC) #13
achuithb
On 2014/09/04 00:39:28, nednguyen wrote: > On 2014/09/03 18:10:14, nednguyen wrote: > > +achuith for ...
6 years, 3 months ago (2014-09-04 14:08:51 UTC) #14
achuithb
Overall this looks ok. Is there a way to split this CL up? It would ...
6 years, 3 months ago (2014-09-04 14:17:06 UTC) #15
nednguyen
On 2014/09/04 14:17:06, achuithb wrote: > Overall this looks ok. > > Is there a ...
6 years, 3 months ago (2014-09-04 15:56:44 UTC) #16
nednguyen
PTAL again
6 years, 3 months ago (2014-09-16 05:03:48 UTC) #18
chrishenry
https://codereview.chromium.org/522553002/diff/180001/tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py (left): https://codereview.chromium.org/522553002/diff/180001/tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py#oldcode277 tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py:277: return [] Where is this logic to return [] ...
6 years, 3 months ago (2014-09-22 16:16:41 UTC) #19
nednguyen
https://codereview.chromium.org/522553002/diff/180001/tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py (left): https://codereview.chromium.org/522553002/diff/180001/tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py#oldcode277 tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py:277: return [] On 2014/09/22 16:16:41, chrishenry wrote: > Where ...
6 years, 3 months ago (2014-09-23 16:43:13 UTC) #20
chrishenry
lgtm https://codereview.chromium.org/522553002/diff/180001/tools/telemetry/telemetry/core/platform/android_platform_backend.py File tools/telemetry/telemetry/core/platform/android_platform_backend.py (right): https://codereview.chromium.org/522553002/diff/180001/tools/telemetry/telemetry/core/platform/android_platform_backend.py#newcode44 tools/telemetry/telemetry/core/platform/android_platform_backend.py:44: self._adb.EnableAdbRoot() On 2014/09/23 16:43:13, nednguyen wrote: > On ...
6 years, 3 months ago (2014-09-23 17:46:32 UTC) #22
nduca
lgtm but please make the change noted below. i suggested this before, there's a clean ...
6 years, 3 months ago (2014-09-23 18:50:10 UTC) #23
nduca
(eg its ambiguous whether FromDevice should raise if its given an unsupported thing, but you ...
6 years, 3 months ago (2014-09-23 18:50:54 UTC) #24
nednguyen
https://codereview.chromium.org/522553002/diff/200001/tools/telemetry/telemetry/core/platform/platform_backend.py File tools/telemetry/telemetry/core/platform/platform_backend.py (right): https://codereview.chromium.org/522553002/diff/200001/tools/telemetry/telemetry/core/platform/platform_backend.py#newcode57 tools/telemetry/telemetry/core/platform/platform_backend.py:57: """ Returns an instance of PlatformBackend from this device ...
6 years, 3 months ago (2014-09-23 21:30:40 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/522553002/240001
6 years, 3 months ago (2014-09-23 21:31:48 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/522553002/260001
6 years, 3 months ago (2014-09-23 22:25:24 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:260001) as 701560076257bafbb68ce2b147f44a8968fc8685
6 years, 3 months ago (2014-09-24 00:11:17 UTC) #30
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/5289ba2d6a2c1eb3f429673ac0088f658d8aee5a Cr-Commit-Position: refs/heads/master@{#296310}
6 years, 3 months ago (2014-09-24 00:12:00 UTC) #31
Lei Zhang
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/15903 <-- bot turned red.
6 years, 3 months ago (2014-09-24 09:11:05 UTC) #32
achuithb
On 2014/09/24 09:11:05, Lei Zhang wrote: > http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/15903 > <-- bot turned red. cros bot ...
6 years, 3 months ago (2014-09-24 10:59:17 UTC) #33
achuithb
On 2014/09/24 10:59:17, achuithb wrote: > On 2014/09/24 09:11:05, Lei Zhang wrote: > > > ...
6 years, 3 months ago (2014-09-24 11:00:38 UTC) #34
achuithb
https://codereview.chromium.org/522553002/diff/260001/tools/telemetry/telemetry/core/platform/__init__.py File tools/telemetry/telemetry/core/platform/__init__.py (right): https://codereview.chromium.org/522553002/diff/260001/tools/telemetry/telemetry/core/platform/__init__.py#newcode38 tools/telemetry/telemetry/core/platform/__init__.py:38: backend = cros_platform_backend.CrosPlatformBackend() This takes a CrOSDevice.
6 years, 3 months ago (2014-09-24 11:05:41 UTC) #35
achuithb
Filed http://crbug.com/417224
6 years, 3 months ago (2014-09-24 11:07:08 UTC) #36
nednguyen
A revert of this CL (patchset #9 id:260001) has been created in https://codereview.chromium.org/640813002/ by nednguyen@google.com. ...
6 years, 2 months ago (2014-10-08 18:05:15 UTC) #37
chromium-reviews
As we discussed earlier, probably better not to land the revert (especially given how many ...
6 years, 2 months ago (2014-10-09 00:49:12 UTC) #38
chromium-reviews
6 years, 2 months ago (2014-10-09 01:43:32 UTC) #39
Even better, the bug reporter thinks that the cause of 15% regression is
likely not due to this patch but because the devices in the lab have
changed: https://code.google.com/p/chromium/issues/detail?id=419901

On Wed, Oct 8, 2014 at 5:48 PM, Chris Henry <chrishenry@google.com> wrote:

> As we discussed earlier, probably better not to land the revert
> (especially given how many patches have gone in since then).
>
>
> Chris~
>
> On Wed, Oct 8, 2014 at 11:05 AM, <nednguyen@google.com> wrote:
>
>> A revert of this CL (patchset #9 id:260001) has been created in
>> https://codereview.chromium.org/640813002/ by nednguyen@google.com.
>>
>> The reason for reverting is: Speculative revert due to regression.
>>
>> BUG=419901.
>>
>> https://codereview.chromium.org/522553002/
>>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698