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

Issue 979013002: Add authorize_adb_keys step that will add host key to device. (Closed)

Created:
5 years, 9 months ago by navabi
Modified:
5 years, 9 months ago
CC:
chromium-reviews, kjellander-cc_chromium.org, cmp-cc_chromium.org, stip+watch_chromium.org
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

Add authorize_adb_keys step that will add host key to device. This will use ADB_VENDOR_KEYS to push the host specific public adb key onto all unauthorized devices. BUG=463496 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=294454

Patch Set 1 #

Patch Set 2 : Add call to authorize script and add expectations. #

Total comments: 11

Patch Set 3 : Pass adb from chromium android checkout. #

Patch Set 4 : Remove adb binary. #

Patch Set 5 : Fix adb default value. #

Total comments: 14

Patch Set 6 : Fixed nits, replaced optparse, renamed to --adb-path. #

Total comments: 4

Patch Set 7 : Make call to authorize script a python call and use --adb-path. #

Total comments: 3

Patch Set 8 : Fixed nits. #

Patch Set 9 : Add expectations for new bots. #

Total comments: 4

Patch Set 10 : sync'd to fix the pylint cq thing. #

Patch Set 11 : Rebased and added expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+735 lines, -1 line) Patch
A scripts/slave/android/authorize_adb_devices.py View 1 2 3 4 5 6 7 1 chunk +85 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/chromium_android/api.py View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -1 line 0 comments Download
M scripts/slave/recipe_modules/cronet/example.expected/local_test.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_MotoE_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Nexus10_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Nexus4_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Nexus5_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Nexus6_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Nexus7v2_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_One_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_chromium_perf_fyi_android_nexus5_oilpan_perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/full_client_v8_Android_Nexus4_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/get_perf_test_list_old_data.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/provision_devices.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/perf.expected/src_side_script_fails.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/tester.expected/android_dbg_tests_recipe__content_browsertests_failure.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/tester.expected/chromium_fyi_Android_Tests__N5_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/tester.expected/tryserver_chromium_linux_EXAMPLE_android_rel_telemetry_tests_recipe.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/tester.expected/tryserver_chromium_linux_android_dbg_tests_recipe.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/tester.expected/tryserver_chromium_linux_android_n5_rel_tests_recipe.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/android/tester.expected/tryserver_chromium_linux_android_rel_tests_recipe.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_linux_Android_Tests.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_linux_Android_Tests__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_MotoE_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Nexus10_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Nexus4_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Nexus5_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Nexus6_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Nexus7v2_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_One_Perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_perf_fyi_android_nexus5_oilpan_perf.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/cronet.expected/android_cronet_armv6_builder.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/cronet.expected/android_cronet_builder.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/cronet.expected/android_cronet_builder__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/cronet.expected/local_test.json View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/chromium.expected/chromium_webrtc_fyi_Android_Tests__dbg___L_Nexus5_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/chromium.expected/chromium_webrtc_fyi_Android_Tests__dbg___L_Nexus7_2_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/chromium.expected/chromium_webrtc_fyi_Android_Tests__dbg___L_Nexus9_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_tests__l_nexus5_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_tests__l_nexus5__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_tests__l_nexus5__failing_test.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_tests__l_nexus5__forced.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_tests__l_nexus7_2_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_tests__l_nexus7_2__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_tests__l_nexus9__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_fyi_android_tests__samsung_s3__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_fyi_android_tests__samsung_s4__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_fyi_android_tests__samsung_s5__dbg_.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/tryserver_webrtc_android.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/tryserver_webrtc_android_arm64.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/webrtc/standalone.expected/tryserver_webrtc_android_rel.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (15 generated)
navabi
5 years, 9 months ago (2015-03-05 05:09:05 UTC) #2
navabi
https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py#newcode46 scripts/slave/android/authorize_adb_devices.py:46: GetCmdOutput(['cat', f.name], env) this was for debugging. remove.
5 years, 9 months ago (2015-03-05 05:14:45 UTC) #3
jbudorick
I can't comment on the file directly, but checking in the adb binary is scary. ...
5 years, 9 months ago (2015-03-05 05:15:02 UTC) #4
Vadim Sh.
https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py#newcode20 scripts/slave/android/authorize_adb_devices.py:20: ADB = os.path.join(CURPATH, os.pardir, os.pardir, 'tools', 'adb') Committing binary ...
5 years, 9 months ago (2015-03-05 05:20:26 UTC) #5
jbudorick
https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py#newcode20 scripts/slave/android/authorize_adb_devices.py:20: ADB = os.path.join(CURPATH, os.pardir, os.pardir, 'tools', 'adb') On 2015/03/05 ...
5 years, 9 months ago (2015-03-05 05:30:03 UTC) #6
navabi
https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py#newcode20 scripts/slave/android/authorize_adb_devices.py:20: ADB = os.path.join(CURPATH, os.pardir, os.pardir, 'tools', 'adb') I checked ...
5 years, 9 months ago (2015-03-05 05:30:20 UTC) #7
navabi
https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py#newcode20 scripts/slave/android/authorize_adb_devices.py:20: ADB = os.path.join(CURPATH, os.pardir, os.pardir, 'tools', 'adb') > adb ...
5 years, 9 months ago (2015-03-05 05:35:34 UTC) #8
jbudorick
https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py#newcode20 scripts/slave/android/authorize_adb_devices.py:20: ADB = os.path.join(CURPATH, os.pardir, os.pardir, 'tools', 'adb') On 2015/03/05 ...
5 years, 9 months ago (2015-03-05 05:37:37 UTC) #9
jbudorick
https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/20001/scripts/slave/android/authorize_adb_devices.py#newcode20 scripts/slave/android/authorize_adb_devices.py:20: ADB = os.path.join(CURPATH, os.pardir, os.pardir, 'tools', 'adb') On 2015/03/05 ...
5 years, 9 months ago (2015-03-05 05:38:53 UTC) #10
navabi
PTAL.
5 years, 9 months ago (2015-03-05 20:07:58 UTC) #11
jbudorick
https://codereview.chromium.org/979013002/diff/80001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/80001/scripts/slave/android/authorize_adb_devices.py#newcode13 scripts/slave/android/authorize_adb_devices.py:13: import optparse I know we use this in several ...
5 years, 9 months ago (2015-03-05 20:21:31 UTC) #12
jbudorick
https://codereview.chromium.org/979013002/diff/80001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/80001/scripts/slave/android/authorize_adb_devices.py#newcode13 scripts/slave/android/authorize_adb_devices.py:13: import optparse On 2015/03/05 20:21:30, jbudorick wrote: > I ...
5 years, 9 months ago (2015-03-05 20:22:41 UTC) #13
navabi
https://codereview.chromium.org/979013002/diff/80001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/80001/scripts/slave/android/authorize_adb_devices.py#newcode13 scripts/slave/android/authorize_adb_devices.py:13: import optparse On 2015/03/05 20:21:30, jbudorick wrote: > I ...
5 years, 9 months ago (2015-03-05 23:05:59 UTC) #14
navabi
PTAL
5 years, 9 months ago (2015-03-06 01:09:22 UTC) #15
Vadim Sh.
https://codereview.chromium.org/979013002/diff/100001/scripts/slave/recipe_modules/chromium_android/api.py File scripts/slave/recipe_modules/chromium_android/api.py (right): https://codereview.chromium.org/979013002/diff/100001/scripts/slave/recipe_modules/chromium_android/api.py#newcode299 scripts/slave/recipe_modules/chromium_android/api.py:299: 'authorize_adb_devices'), authorize_adb_devices.py (with '.py'), unless I do not understand ...
5 years, 9 months ago (2015-03-06 01:14:33 UTC) #16
navabi
https://codereview.chromium.org/979013002/diff/100001/scripts/slave/recipe_modules/chromium_android/api.py File scripts/slave/recipe_modules/chromium_android/api.py (right): https://codereview.chromium.org/979013002/diff/100001/scripts/slave/recipe_modules/chromium_android/api.py#newcode299 scripts/slave/recipe_modules/chromium_android/api.py:299: 'authorize_adb_devices'), On 2015/03/06 01:14:32, Vadim Sh. wrote: > authorize_adb_devices.py ...
5 years, 9 months ago (2015-03-06 01:45:14 UTC) #17
navabi
PTAL
5 years, 9 months ago (2015-03-06 01:50:21 UTC) #18
Vadim Sh.
Recipe part lgtm. I don't really understand what's going on in authorize_adb_devices.py, so I prefer ...
5 years, 9 months ago (2015-03-06 01:54:42 UTC) #19
navabi
On 2015/03/06 01:54:42, Vadim Sh. wrote: > Recipe part lgtm. > > I don't really ...
5 years, 9 months ago (2015-03-06 02:05:29 UTC) #20
jbudorick
authorize_adb_devices lgtm w/ nits Thanks for the explanation! https://codereview.chromium.org/979013002/diff/120001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/120001/scripts/slave/android/authorize_adb_devices.py#newcode62 scripts/slave/android/authorize_adb_devices.py:62: adb_path ...
5 years, 9 months ago (2015-03-06 02:13:02 UTC) #21
navabi
https://codereview.chromium.org/979013002/diff/120001/scripts/slave/android/authorize_adb_devices.py File scripts/slave/android/authorize_adb_devices.py (right): https://codereview.chromium.org/979013002/diff/120001/scripts/slave/android/authorize_adb_devices.py#newcode62 scripts/slave/android/authorize_adb_devices.py:62: adb_path = options.adb_path if options.adb_path else 'adb' On 2015/03/06 ...
5 years, 9 months ago (2015-03-06 02:56:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/979013002/140001
5 years, 9 months ago (2015-03-06 21:51:49 UTC) #25
commit-bot: I haz the power
Presubmit check for 979013002-140001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-06 21:54:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/979013002/160001
5 years, 9 months ago (2015-03-06 22:29:29 UTC) #30
commit-bot: I haz the power
Presubmit check for 979013002-160001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-06 22:32:01 UTC) #32
luqui
https://codereview.chromium.org/979013002/diff/160001/scripts/slave/recipe_modules/chromium_android/api.py File scripts/slave/recipe_modules/chromium_android/api.py (right): https://codereview.chromium.org/979013002/diff/160001/scripts/slave/recipe_modules/chromium_android/api.py#newcode300 scripts/slave/recipe_modules/chromium_android/api.py:300: args = ['--adb-path', self.m.path['checkout'].join('third_party', You should use api.adb.adb_path() here.
5 years, 9 months ago (2015-03-06 22:34:37 UTC) #34
luqui
https://codereview.chromium.org/979013002/diff/160001/scripts/slave/recipe_modules/chromium_android/api.py File scripts/slave/recipe_modules/chromium_android/api.py (right): https://codereview.chromium.org/979013002/diff/160001/scripts/slave/recipe_modules/chromium_android/api.py#newcode310 scripts/slave/recipe_modules/chromium_android/api.py:310: self.authorize_adb_devices() FYI I think there are still some recipes ...
5 years, 9 months ago (2015-03-06 22:36:42 UTC) #35
navabi
https://codereview.chromium.org/979013002/diff/160001/scripts/slave/recipe_modules/chromium_android/api.py File scripts/slave/recipe_modules/chromium_android/api.py (right): https://codereview.chromium.org/979013002/diff/160001/scripts/slave/recipe_modules/chromium_android/api.py#newcode300 scripts/slave/recipe_modules/chromium_android/api.py:300: args = ['--adb-path', self.m.path['checkout'].join('third_party', On 2015/03/06 22:34:37, luqui wrote: ...
5 years, 9 months ago (2015-03-06 22:45:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/979013002/180001
5 years, 9 months ago (2015-03-06 22:50:30 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/979013002/180001
5 years, 9 months ago (2015-03-16 15:49:55 UTC) #42
commit-bot: I haz the power
Failed to apply patch for build/scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Nexus9_Perf.json: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
5 years, 9 months ago (2015-03-16 15:50:14 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/979013002/200001
5 years, 9 months ago (2015-03-16 16:26:27 UTC) #47
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 16:31:14 UTC) #48
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=294454

Powered by Google App Engine
This is Rietveld 408576698