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

Issue 15891002: Android: allows using adb from a chromium checkout without envsetup.sh (Closed)

Created:
7 years, 7 months ago by bulach
Modified:
7 years, 6 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

Android: allows using adb from a chromium checkout without envsetup.sh There are situations like running tests where it's not necessary to run envsetup.sh. However, build/android/pylib requires adb to be in the path. Rather than requiring envsetup, it can be smart enough to set the path itself. BUG=242960 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202558

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Print message #

Total comments: 4

Patch Set 4 : which adb, devnull #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M build/android/pylib/__init__.py View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
bulach
main motivation for this is to be able to run tests without envsetup.sh, see bug ...
7 years, 7 months ago (2013-05-23 16:52:49 UTC) #1
tonyg
lgtm Good catch. So this fixes the cc_perftests? https://codereview.chromium.org/15891002/diff/1001/build/android/pylib/__init__.py File build/android/pylib/__init__.py (right): https://codereview.chromium.org/15891002/diff/1001/build/android/pylib/__init__.py#newcode11 build/android/pylib/__init__.py:11: import ...
7 years, 7 months ago (2013-05-23 17:10:05 UTC) #2
bulach
well.... :) I've been thinking I'm done with this cc_perftests for a long, long time, ...
7 years, 7 months ago (2013-05-23 17:29:03 UTC) #3
tonyg
Still lgtm
7 years, 7 months ago (2013-05-23 18:20:22 UTC) #4
frankf
IIRC, for some reason odd reason, the upstream bots use adb from build_internal (scripts/slave/android). Adding ...
7 years, 7 months ago (2013-05-23 19:51:38 UTC) #5
navabi1
+ilevy The change was made by ilevy: https://codereview.chromium.org/11857014 I was not on the review so ...
7 years, 7 months ago (2013-05-23 22:35:06 UTC) #6
navabi
7 years, 7 months ago (2013-05-23 22:37:03 UTC) #7
bulach
sorry, I'm not sure what is the conclusion here? :) should I go ahead with ...
7 years, 7 months ago (2013-05-24 08:59:16 UTC) #8
frankf
lgtm. But the scenario I was thinking: some poor infra folk logs to the upstream ...
7 years, 7 months ago (2013-05-24 17:35:51 UTC) #9
navabi
Marcus, this lgtm. The infra folks should know which adb to use. Perhaps a warning ...
7 years, 7 months ago (2013-05-24 18:16:51 UTC) #10
bulach
thanks everyone! added a message, please let me know if it addresses all your concerns.
7 years, 7 months ago (2013-05-24 18:23:59 UTC) #11
navabi
On 2013/05/24 18:23:59, bulach wrote: > thanks everyone! > added a message, please let me ...
7 years, 7 months ago (2013-05-24 18:34:17 UTC) #12
Isaac (away)
looks good :-). two nits inline https://chromiumcodereview.appspot.com/15891002/diff/14001/build/android/pylib/__init__.py File build/android/pylib/__init__.py (right): https://chromiumcodereview.appspot.com/15891002/diff/14001/build/android/pylib/__init__.py#newcode13 build/android/pylib/__init__.py:13: subprocess.call(['adb', 'version']) How ...
7 years, 7 months ago (2013-05-24 19:17:01 UTC) #13
bulach
thanks isaac! all addressed, CQing.. https://codereview.chromium.org/15891002/diff/14001/build/android/pylib/__init__.py File build/android/pylib/__init__.py (right): https://codereview.chromium.org/15891002/diff/14001/build/android/pylib/__init__.py#newcode13 build/android/pylib/__init__.py:13: subprocess.call(['adb', 'version']) On 2013/05/24 ...
7 years, 7 months ago (2013-05-28 09:12:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/15891002/20001
7 years, 7 months ago (2013-05-28 10:47:26 UTC) #15
commit-bot: I haz the power
Change committed as 202558
7 years, 6 months ago (2013-05-28 14:27:33 UTC) #16
Isaac (away)
7 years, 6 months ago (2013-05-31 19:34:06 UTC) #17
Message was sent while issue was closed.
So this is messing with PATH in buildbot code where we import pylint for
buildbot_report.  Thinking about this more thoroughly, I think it wrong to
modify os.environ of the python process when a module is imported.  I think it'd
be cleaner to use this code in a GetAdb() function in constants.py and replace
calls to adb with that.  Other calls which depend on the android sdk binary
folder in the path can be replaced with absolute calls using constants.py to get
SDK_PATH.

Powered by Google App Engine
This is Rietveld 408576698