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

Issue 1828143004: [Battor] Add python wrapper for communicating with battor_agent_binary (Closed)

Created:
4 years, 9 months ago by rnephew (Reviews Here)
Modified:
4 years, 8 months ago
CC:
catapult-reviews_chromium.org
Base URL:
git@github.com:catapult-project/catapult@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 36

Patch Set 3 : #

Total comments: 24

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Split StopTracing and collection of results #

Total comments: 1

Patch Set 6 : Make StopTracing not wait for results. #

Patch Set 7 : Fix small bug in GetBattor... #

Patch Set 8 : dependencies #

Total comments: 2

Patch Set 9 : rename tests #

Patch Set 10 : move to common #

Total comments: 29

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : default timeout is how long trace ran #

Total comments: 6

Patch Set 14 : #

Total comments: 8

Patch Set 15 : alexs script landed #

Total comments: 10

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, --1 lines) Patch
A + common/battor/battor/__init__.py View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A common/battor/battor/battor_binary_dependencies.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +27 lines, -0 lines 0 comments Download
A common/battor/battor/battor_wrapper.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +167 lines, -0 lines 0 comments Download
A common/battor/battor/battor_wrapper_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +166 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (7 generated)
rnephew (Reviews Here)
Note: This CL requires https://codereview.chromium.org/1823193002/ to finish.
4 years, 9 months ago (2016-03-24 18:14:41 UTC) #2
rnephew (Reviews Here)
4 years, 9 months ago (2016-03-24 18:15:51 UTC) #4
nednguyen
lgtm with some comments https://codereview.chromium.org/1828143004/diff/1/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/1/tools/battor/battor/battor_wrapper.py#newcode23 tools/battor/battor/battor_wrapper.py:23: if config: No need to ...
4 years, 9 months ago (2016-03-24 20:34:59 UTC) #5
rnephew (Reviews Here)
I also made some changes to how you pass it the platform and device id. ...
4 years, 9 months ago (2016-03-24 21:27:20 UTC) #6
nednguyen
https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py#newcode36 tools/battor/battor/battor_wrapper.py:36: self._battor_path = find_usb_devices.GetBattorPathFromPhoneSerial(device) If I recall correctly, this would ...
4 years, 9 months ago (2016-03-24 22:30:13 UTC) #7
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py#newcode36 tools/battor/battor/battor_wrapper.py:36: self._battor_path = find_usb_devices.GetBattorPathFromPhoneSerial(device) On 2016/03/24 22:30:13, nednguyen wrote: > ...
4 years, 9 months ago (2016-03-24 22:46:01 UTC) #8
nednguyen
https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py#newcode36 tools/battor/battor/battor_wrapper.py:36: self._battor_path = find_usb_devices.GetBattorPathFromPhoneSerial(device) On 2016/03/24 22:46:01, rnephew1 wrote: > ...
4 years, 9 months ago (2016-03-25 02:57:07 UTC) #9
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py#newcode36 tools/battor/battor/battor_wrapper.py:36: self._battor_path = find_usb_devices.GetBattorPathFromPhoneSerial(device) On 2016/03/25 02:57:06, nednguyen wrote: > ...
4 years, 9 months ago (2016-03-25 04:56:30 UTC) #10
charliea (OOO until 10-5)
https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/20001/tools/battor/battor/battor_wrapper.py#newcode26 tools/battor/battor/battor_wrapper.py:26: self, test_platform, device=None, start_shell=True, battor_path=None): What is `device` in ...
4 years, 9 months ago (2016-03-25 16:47:55 UTC) #11
rnephew (Reviews Here)
I made some changes in order to make unittesting easier as well. Mostly just splitting ...
4 years, 9 months ago (2016-03-25 18:02:34 UTC) #12
charliea (OOO until 10-5)
Getting a lot closer! I'll leave the unit test code review to someone that's a ...
4 years, 9 months ago (2016-03-25 18:52:25 UTC) #13
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/40001/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/40001/tools/battor/battor/battor_wrapper.py#newcode27 tools/battor/battor/battor_wrapper.py:27: """Initialize BattOr object. On 2016/03/25 18:52:24, charliea wrote: > ...
4 years, 9 months ago (2016-03-25 19:13:37 UTC) #14
aiolos (Not reviewing)
https://codereview.chromium.org/1828143004/diff/60001/tools/battor/battor/battor_binary_dependencies.json File tools/battor/battor/battor_binary_dependencies.json (right): https://codereview.chromium.org/1828143004/diff/60001/tools/battor/battor/battor_binary_dependencies.json#newcode5 tools/battor/battor/battor_binary_dependencies.json:5: "cloud_storage_base_folder": "chrome-partner-telemetry/battor", Ugg. I apparently had a copy-paste fail ...
4 years, 9 months ago (2016-03-25 19:48:59 UTC) #15
rnephew (Reviews Here)
Split stopping and collection, with one question about catapult best practices. https://codereview.chromium.org/1828143004/diff/80001/tools/battor/battor/battor_wrapper.py File tools/battor/battor/battor_wrapper.py (right): ...
4 years, 9 months ago (2016-03-25 23:07:37 UTC) #16
rnephew (Reviews Here)
On 2016/03/25 19:48:59, aiolos wrote: > https://codereview.chromium.org/1828143004/diff/60001/tools/battor/battor/battor_binary_dependencies.json > File tools/battor/battor/battor_binary_dependencies.json (right): > > https://codereview.chromium.org/1828143004/diff/60001/tools/battor/battor/battor_binary_dependencies.json#newcode5 > ...
4 years, 9 months ago (2016-03-25 23:32:07 UTC) #17
charliea (OOO until 10-5)
> Charlie is getting me different binaries for different systems. I will fix both > ...
4 years, 8 months ago (2016-03-28 16:01:56 UTC) #18
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/60001/tools/battor/battor/battor_binary_dependencies.json File tools/battor/battor/battor_binary_dependencies.json (right): https://codereview.chromium.org/1828143004/diff/60001/tools/battor/battor/battor_binary_dependencies.json#newcode5 tools/battor/battor/battor_binary_dependencies.json:5: "cloud_storage_base_folder": "chrome-partner-telemetry/battor", On 2016/03/25 19:48:59, aiolos wrote: > Ugg. ...
4 years, 8 months ago (2016-03-28 16:12:59 UTC) #19
nednguyen
lgtm with some comment on unittest style. Also we will need to move this to ...
4 years, 8 months ago (2016-03-28 16:36:18 UTC) #20
rnephew (Reviews Here)
Moved to common/battor https://codereview.chromium.org/1828143004/diff/140001/tools/battor/battor/battor_wrapper_unittest.py File tools/battor/battor/battor_wrapper_unittest.py (right): https://codereview.chromium.org/1828143004/diff/140001/tools/battor/battor/battor_wrapper_unittest.py#newcode75 tools/battor/battor/battor_wrapper_unittest.py:75: def testInit_androidWithBattor(self): On 2016/03/28 16:36:18, nednguyen ...
4 years, 8 months ago (2016-03-28 16:46:35 UTC) #21
charliea (OOO until 10-5)
https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py#newcode20 common/battor/battor/battor_wrapper.py:20: class BattorWrapper(object): Could you add a pydoc for this ...
4 years, 8 months ago (2016-03-29 19:56:03 UTC) #22
aiolos (Not reviewing)
https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py#newcode48 common/battor/battor/battor_wrapper.py:48: 'battor_binary_dependencies.json') On 2016/03/29 19:56:03, charliea wrote: > nit: Is ...
4 years, 8 months ago (2016-03-29 22:30:33 UTC) #23
charliea (OOO until 10-5)
https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py#newcode52 common/battor/battor/battor_wrapper.py:52: self._battor_agent_binary = dm.FetchPath( On 2016/03/29 22:30:32, aiolos wrote: > ...
4 years, 8 months ago (2016-03-30 13:35:20 UTC) #24
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py#newcode20 common/battor/battor/battor_wrapper.py:20: class BattorWrapper(object): On 2016/03/29 19:56:03, charliea wrote: > Could ...
4 years, 8 months ago (2016-03-30 15:19:37 UTC) #25
rnephew (Reviews Here)
On 2016/03/30 15:19:37, rnephew1 wrote: > https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py > File common/battor/battor/battor_wrapper.py (right): > > https://codereview.chromium.org/1828143004/diff/180001/common/battor/battor/battor_wrapper.py#newcode20 > ...
4 years, 8 months ago (2016-03-30 16:14:16 UTC) #26
charliea (OOO until 10-5)
non-owner lgtm w/ nits Thanks for doing this Randy! Very excited about how this is ...
4 years, 8 months ago (2016-03-30 18:58:33 UTC) #27
aiolos (Not reviewing)
https://codereview.chromium.org/1828143004/diff/240001/common/battor/battor/battor_wrapper_unittest.py File common/battor/battor/battor_wrapper_unittest.py (right): https://codereview.chromium.org/1828143004/diff/240001/common/battor/battor/battor_wrapper_unittest.py#newcode39 common/battor/battor/battor_wrapper_unittest.py:39: #find_usb_devices.GetBattorPathFromPhoneSerial) lgtm once this code is uncommented. nit: the ...
4 years, 8 months ago (2016-03-30 20:14:14 UTC) #28
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/240001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/240001/common/battor/battor/battor_wrapper.py#newcode23 common/battor/battor/battor_wrapper.py:23: To specify a battor, initialize with battor_path=<PATH>. On 2016/03/30 ...
4 years, 8 months ago (2016-03-31 01:53:50 UTC) #29
rnephew (Reviews Here)
Alex's CL landed. Made changes to work with his new mapping file. PTAL.
4 years, 8 months ago (2016-04-04 17:22:04 UTC) #30
charliea (OOO until 10-5)
https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper.py#newcode106 common/battor/battor/battor_wrapper.py:106: self._battor_shell.wait() Did you mean to get rid of the ...
4 years, 8 months ago (2016-04-04 17:25:46 UTC) #31
nednguyen
lgtm again with nits https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper.py#newcode32 common/battor/battor/battor_wrapper.py:32: test_platform: Platform BattOr is attached ...
4 years, 8 months ago (2016-04-04 17:29:14 UTC) #32
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper.py#newcode32 common/battor/battor/battor_wrapper.py:32: test_platform: Platform BattOr is attached to. On 2016/04/04 17:29:14, ...
4 years, 8 months ago (2016-04-04 17:36:01 UTC) #33
aiolos (Not reviewing)
Still lgtm. https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py File common/battor/battor/battor_wrapper_unittest.py (right): https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py#newcode10 common/battor/battor/battor_wrapper_unittest.py:10: from devil.utils import find_usb_devices On 2016/04/04 17:25:46, ...
4 years, 8 months ago (2016-04-04 17:37:36 UTC) #34
aiolos (Not reviewing)
https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py File common/battor/battor/battor_wrapper_unittest.py (right): https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py#newcode10 common/battor/battor/battor_wrapper_unittest.py:10: from devil.utils import find_usb_devices On 2016/04/04 17:37:36, aiolos wrote: ...
4 years, 8 months ago (2016-04-04 17:38:50 UTC) #35
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py File common/battor/battor/battor_wrapper_unittest.py (right): https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py#newcode10 common/battor/battor/battor_wrapper_unittest.py:10: from devil.utils import find_usb_devices On 2016/04/04 17:38:50, aiolos wrote: ...
4 years, 8 months ago (2016-04-04 17:46:23 UTC) #36
rnephew (Reviews Here)
4 years, 8 months ago (2016-04-04 17:46:26 UTC) #37
aiolos (Not reviewing)
https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py File common/battor/battor/battor_wrapper_unittest.py (right): https://codereview.chromium.org/1828143004/diff/280001/common/battor/battor/battor_wrapper_unittest.py#newcode10 common/battor/battor/battor_wrapper_unittest.py:10: from devil.utils import find_usb_devices On 2016/04/04 17:46:23, rnephew1 wrote: ...
4 years, 8 months ago (2016-04-05 17:49:50 UTC) #39
charliea (OOO until 10-5)
lgtm w/ comments https://codereview.chromium.org/1828143004/diff/260001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/260001/common/battor/battor/battor_wrapper.py#newcode88 common/battor/battor/battor_wrapper.py:88: # Create tmp file to reserve ...
4 years, 8 months ago (2016-04-07 16:40:39 UTC) #40
rnephew (Reviews Here)
https://codereview.chromium.org/1828143004/diff/260001/common/battor/battor/battor_wrapper.py File common/battor/battor/battor_wrapper.py (right): https://codereview.chromium.org/1828143004/diff/260001/common/battor/battor/battor_wrapper.py#newcode88 common/battor/battor/battor_wrapper.py:88: # Create tmp file to reserve location for saving ...
4 years, 8 months ago (2016-04-07 16:54:46 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828143004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1828143004/340001
4 years, 8 months ago (2016-04-07 16:55:27 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Mac Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Mac%20Tryserver/builds/2739)
4 years, 8 months ago (2016-04-07 16:58:20 UTC) #46
nednguyen
On 2016/04/07 16:58:20, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 8 months ago (2016-04-07 17:02:25 UTC) #47
rnephew (Reviews Here)
4 years, 8 months ago (2016-04-07 17:49:06 UTC) #49
Message was sent while issue was closed.
Committed patchset #17 (id:340001) manually as
4411881631aa959b820380e88a39b3eda86bf75c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698