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

Issue 19284009: Add option to output device status data in format for dashboard. (Closed)

Created:
7 years, 5 months ago by navabi
Modified:
7 years, 5 months ago
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

Add option to output device status data in format for dashboard and cleanup. Adds an option to print the device status information (i.e. online devices, offline devices and device battery levels). Example output: <*>RESULT OnlineDevices: OnlineDevices= 2 RESULT OfflineDevices: OfflineDevice= 0 RESULT DeviceBattery: 0149CC380F016011= 99 RESULT DeviceBattery: 014E378305007013= 60 Cleanup uses AndroidCommands for calling adb shell commands rather than its own GetCmdOutput function. BUG=254014 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212052

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed frankf's reviews. #

Total comments: 7

Patch Set 3 : Added Shutdown to android_commands.py #

Patch Set 4 : Added functions for querying device info to android_commands.py #

Total comments: 5

Patch Set 5 : Moved setup wizard status to android_commands.py. #

Patch Set 6 : Fixed nit. #

Patch Set 7 : Make dashboard printing block optional part of device_status_check step. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -22 lines) Patch
M build/android/device_status_check.py View 1 2 3 4 5 6 6 chunks +32 lines, -22 lines 0 comments Download
M build/android/pylib/android_commands.py View 1 2 3 4 4 chunks +57 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
navabi
This script will be directly called in the buildbot scripts (downstream and upstream) as a ...
7 years, 5 months ago (2013-07-16 17:19:44 UTC) #1
frankf
https://chromiumcodereview.appspot.com/19284009/diff/1/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/1/build/android/device_status_check.py#newcode208 build/android/device_status_check.py:208: print '<*>RESULT OnlineDevices: OnlineDevices= %s' % len(devices) You can ...
7 years, 5 months ago (2013-07-16 17:51:19 UTC) #2
navabi
https://chromiumcodereview.appspot.com/19284009/diff/1/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/1/build/android/device_status_check.py#newcode208 build/android/device_status_check.py:208: print '<*>RESULT OnlineDevices: OnlineDevices= %s' % len(devices) On 2013/07/16 ...
7 years, 5 months ago (2013-07-16 19:01:16 UTC) #3
frankf
https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py#newcode41 build/android/device_status_check.py:41: device_product_name = AdbShellCommand('getprop ro.product.name') There are existing methods in ...
7 years, 5 months ago (2013-07-16 19:12:54 UTC) #4
navabi
https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py#newcode41 build/android/device_status_check.py:41: device_product_name = AdbShellCommand('getprop ro.product.name') On 2013/07/16 19:12:54, frankf wrote: ...
7 years, 5 months ago (2013-07-16 21:48:57 UTC) #5
frankf
https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py#newcode41 build/android/device_status_check.py:41: device_product_name = AdbShellCommand('getprop ro.product.name') I meant these: https://code.google.com/p/chromium/codesearch#chromium/src/build/android/pylib/android_commands.py&q=android_commands&sq=package:chromium&type=cs&l=917 On ...
7 years, 5 months ago (2013-07-16 22:02:16 UTC) #6
navabi
https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/5002/build/android/device_status_check.py#newcode41 build/android/device_status_check.py:41: device_product_name = AdbShellCommand('getprop ro.product.name') On 2013/07/16 22:02:17, frankf wrote: ...
7 years, 5 months ago (2013-07-16 23:23:17 UTC) #7
navabi
https://chromiumcodereview.appspot.com/19284009/diff/14001/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/14001/build/android/device_status_check.py#newcode40 build/android/device_status_check.py:40: setup_wizard_disabled = device_adb.RunShellCommand( missed one. ill move this to ...
7 years, 5 months ago (2013-07-16 23:24:27 UTC) #8
frankf
lgtm w/ nit https://chromiumcodereview.appspot.com/19284009/diff/14001/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/14001/build/android/device_status_check.py#newcode189 build/android/device_status_check.py:189: parser.add_option('--device-status-dashboard', No blank line above https://chromiumcodereview.appspot.com/19284009/diff/14001/build/android/device_status_check.py#newcode206 ...
7 years, 5 months ago (2013-07-16 23:31:58 UTC) #9
navabi
Thanks Frank! https://chromiumcodereview.appspot.com/19284009/diff/14001/build/android/device_status_check.py File build/android/device_status_check.py (right): https://chromiumcodereview.appspot.com/19284009/diff/14001/build/android/device_status_check.py#newcode189 build/android/device_status_check.py:189: parser.add_option('--device-status-dashboard', On 2013/07/16 23:31:58, frankf wrote: > ...
7 years, 5 months ago (2013-07-16 23:36:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/19284009/24001
7 years, 5 months ago (2013-07-17 00:08:54 UTC) #11
commit-bot: I haz the power
7 years, 5 months ago (2013-07-17 15:41:09 UTC) #12
Message was sent while issue was closed.
Change committed as 212052

Powered by Google App Engine
This is Rietveld 408576698