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

Issue 1306633002: Overhaul Android support and make Swarming bot use python-adb (Closed)

Created:
5 years, 4 months ago by M-A Ruel
Modified:
5 years, 4 months ago
Reviewers:
Vadim Sh.
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org, ghost stip (do not use)
Base URL:
git@github.com:luci/luci-py.git@master
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

Overhaul Android support and make Swarming bot use python-adb - Embed adb and its dependency libusb1. Remove all other dependencies. In particular, there is no dependency on the 'adb' executable, which is awesome. TODO(maruel): M2Crypto - Update os_utilities.py to report android devices. - Add tools/android/51-android.rules as a drop-in file to put in /etc/udev/rules.d/. R=vadimsh@chromium.org BUG= Committed: https://github.com/luci/luci-py/commit/43605c224e3aa1afa0f382200b4f46f51492987d

Patch Set 1 : . #

Total comments: 24

Patch Set 2 : Fixes for error conditions #

Total comments: 2

Patch Set 3 : Use devices instead of cmds #

Patch Set 4 : Use libusb1/ symlink, fix sys.path hacking #

Patch Set 5 : Packaged libusb1 as a relative package to fix import paths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -15 lines) Patch
M appengine/swarming/server/bot_archive.py View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
A appengine/swarming/swarming_bot/adb View 1 chunk +1 line, -0 lines 0 comments Download
M appengine/swarming/swarming_bot/os_utilities.py View 1 2 3 4 4 chunks +103 lines, -11 lines 0 comments Download
M appengine/swarming/swarming_bot/platforms/__init__.py View 1 1 chunk +1 line, -0 lines 0 comments Download
A appengine/swarming/swarming_bot/platforms/android.py View 1 2 3 1 chunk +310 lines, -0 lines 0 comments Download
A appengine/swarming/swarming_bot/python_libusb1 View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A appengine/swarming/tools/android/51-android.rules View 1 1 chunk +5 lines, -0 lines 0 comments Download
A appengine/swarming/tools/android/README.md View 1 chunk +18 lines, -0 lines 0 comments Download
M appengine/third_party/python-adb/PATCH.swarming View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M appengine/third_party/python-adb/README.swarming View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M appengine/third_party/python-adb/adb/common.py View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M appengine/third_party/python-adb/adb/filesync_protocol.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M appengine/third_party/python-libusb1/README.swarming View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + appengine/third_party/python-libusb1/__init__.py View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
M-A Ruel
5 years, 4 months ago (2015-08-20 22:13:55 UTC) #6
Vadim Sh.
this all looks very hacky :( os_utilities.py is on a path of being a big ...
5 years, 4 months ago (2015-08-20 22:40:09 UTC) #7
M-A Ruel
Code is live on chromium-swarm-android https://codereview.chromium.org/1306633002/diff/100001/appengine/swarming/swarming_bot/adb File appengine/swarming/swarming_bot/adb (right): https://codereview.chromium.org/1306633002/diff/100001/appengine/swarming/swarming_bot/adb#newcode1 appengine/swarming/swarming_bot/adb:1: ../../third_party/python-adb/adb On 2015/08/20 22:40:08, ...
5 years, 4 months ago (2015-08-21 23:37:39 UTC) #9
Vadim Sh.
lgtm https://codereview.chromium.org/1306633002/diff/140001/appengine/swarming/swarming_bot/os_utilities.py File appengine/swarming/swarming_bot/os_utilities.py (right): https://codereview.chromium.org/1306633002/diff/140001/appengine/swarming/swarming_bot/os_utilities.py#newcode728 appengine/swarming/swarming_bot/os_utilities.py:728: def get_dimensions_all_devices_android(cmds): what is "cmds"? Why not "devices"?
5 years, 4 months ago (2015-08-21 23:50:27 UTC) #10
M-A Ruel
https://codereview.chromium.org/1306633002/diff/140001/appengine/swarming/swarming_bot/os_utilities.py File appengine/swarming/swarming_bot/os_utilities.py (right): https://codereview.chromium.org/1306633002/diff/140001/appengine/swarming/swarming_bot/os_utilities.py#newcode728 appengine/swarming/swarming_bot/os_utilities.py:728: def get_dimensions_all_devices_android(cmds): On 2015/08/21 23:50:27, Vadim Sh. wrote: > ...
5 years, 4 months ago (2015-08-22 01:38:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306633002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306633002/160001
5 years, 4 months ago (2015-08-22 12:47:22 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-py%20Presubmit/builds/31)
5 years, 4 months ago (2015-08-22 12:50:55 UTC) #16
M-A Ruel
On 2015/08/22 12:50:55, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 4 months ago (2015-08-22 12:57:22 UTC) #17
M-A Ruel
Redid the layout so libusb1 is a relative import.
5 years, 4 months ago (2015-08-24 13:23:03 UTC) #18
M-A Ruel
On 2015/08/24 13:23:03, M-A Ruel wrote: > Redid the layout so libusb1 is a relative ...
5 years, 4 months ago (2015-08-24 20:58:51 UTC) #19
Vadim Sh.
lgtm
5 years, 4 months ago (2015-08-24 21:34:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306633002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306633002/200001
5 years, 4 months ago (2015-08-24 22:01:58 UTC) #22
commit-bot: I haz the power
5 years, 4 months ago (2015-08-24 22:03:38 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:200001) as
https://github.com/luci/luci-py/commit/43605c224e3aa1afa0f382200b4f46f51492987d

Powered by Google App Engine
This is Rietveld 408576698