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

Issue 286423002: Make adb_install_apk.py saner for humans. (Closed)

Created:
6 years, 7 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 5 months ago
CC:
bulach+watch_chromium.org, chromium-reviews, ilevy-cc_chromium.org, klundberg+watch_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@android_build_cleanup
Visibility:
Public.

Description

Make adb_install_apk.py saner for humans. Scripts like that usually do not require a --option if this is a mandatory singleton argument. Also, forgetting to pass the extension sounds like something that the script could simply handle. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275755

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : review comments #

Patch Set 4 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M build/android/adb_install_apk.py View 1 2 3 3 chunks +18 lines, -6 lines 2 comments Download
M build/android/buildbot/bb_device_steps.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (1 generated)
mlamouri (slow - plz ping)
6 years, 7 months ago (2014-05-17 16:03:13 UTC) #1
bulach
nice!! please wait for the other folks. it'd be great to fix up the usage ...
6 years, 7 months ago (2014-05-19 10:22:36 UTC) #2
mlamouri (slow - plz ping)
I've changed the files in build/ using adb_install_apk. I guess tools/build/ changes could be made ...
6 years, 7 months ago (2014-05-19 13:43:00 UTC) #3
jbudorick
https://codereview.chromium.org/286423002/diff/20001/build/android/adb_install_apk.py File build/android/adb_install_apk.py (right): https://codereview.chromium.org/286423002/diff/20001/build/android/adb_install_apk.py#newcode51 build/android/adb_install_apk.py:51: return nit: OptionParser.error exits, so the return is unnecessary
6 years, 7 months ago (2014-05-19 15:13:42 UTC) #4
mlamouri (slow - plz ping)
PTAL https://codereview.chromium.org/286423002/diff/20001/build/android/adb_install_apk.py File build/android/adb_install_apk.py (right): https://codereview.chromium.org/286423002/diff/20001/build/android/adb_install_apk.py#newcode51 build/android/adb_install_apk.py:51: return On 2014/05/19 15:13:42, jbudorick wrote: > nit: ...
6 years, 7 months ago (2014-05-20 13:09:04 UTC) #5
jbudorick
(non-binding) lgtm, +craigdh
6 years, 7 months ago (2014-05-21 01:10:09 UTC) #6
bulach
lgtm, thanks! please let armand RS the buildbot parts..
6 years, 7 months ago (2014-05-21 12:06:30 UTC) #7
mlamouri (slow - plz ping)
Armand, this CL is blocked on you. I would be grateful if you could have ...
6 years, 7 months ago (2014-05-23 09:46:11 UTC) #8
mlamouri (slow - plz ping)
On 2014/05/23 09:46:11, Mounir Lamouri wrote: > Armand, this CL is blocked on you. I ...
6 years, 6 months ago (2014-05-29 16:25:33 UTC) #9
mlamouri (slow - plz ping)
On 2014/05/29 16:25:33, Mounir Lamouri wrote: > On 2014/05/23 09:46:11, Mounir Lamouri wrote: > > ...
6 years, 6 months ago (2014-06-04 14:07:54 UTC) #10
navabi
lgtm
6 years, 6 months ago (2014-06-05 17:10:16 UTC) #11
navabi1
lgtm
6 years, 6 months ago (2014-06-05 17:21:23 UTC) #12
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 6 months ago (2014-06-08 15:26:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/286423002/60001
6 years, 6 months ago (2014-06-08 15:26:37 UTC) #14
commit-bot: I haz the power
Change committed as 275755
6 years, 6 months ago (2014-06-08 20:11:20 UTC) #15
Nico
https://codereview.chromium.org/286423002/diff/60001/build/android/adb_install_apk.py File build/android/adb_install_apk.py (right): https://codereview.chromium.org/286423002/diff/60001/build/android/adb_install_apk.py#newcode22 build/android/adb_install_apk.py:22: help=('DEPRECATED The name of the apk containing the' I ...
5 years, 5 months ago (2015-07-23 17:14:16 UTC) #17
jbudorick
https://codereview.chromium.org/286423002/diff/60001/build/android/adb_install_apk.py File build/android/adb_install_apk.py (right): https://codereview.chromium.org/286423002/diff/60001/build/android/adb_install_apk.py#newcode22 build/android/adb_install_apk.py:22: help=('DEPRECATED The name of the apk containing the' On ...
5 years, 5 months ago (2015-07-23 17:28:49 UTC) #18
Nico
On 2015/07/23 17:28:49, jbudorick wrote: > https://codereview.chromium.org/286423002/diff/60001/build/android/adb_install_apk.py > File build/android/adb_install_apk.py (right): > > https://codereview.chromium.org/286423002/diff/60001/build/android/adb_install_apk.py#newcode22 > ...
5 years, 5 months ago (2015-07-23 17:29:56 UTC) #19
jbudorick
5 years, 5 months ago (2015-07-23 17:37:16 UTC) #20
Message was sent while issue was closed.
On 2015/07/23 at 17:29:56, thakis wrote:
> On 2015/07/23 17:28:49, jbudorick wrote:
> >
https://codereview.chromium.org/286423002/diff/60001/build/android/adb_instal...
> > File build/android/adb_install_apk.py (right):
> > 
> >
https://codereview.chromium.org/286423002/diff/60001/build/android/adb_instal...
> > build/android/adb_install_apk.py:22: help=('DEPRECATED The name of the apk
> > containing the'
> > On 2015/07/23 at 17:14:15, Nico (hiding) wrote:
> > > I happened to look at this file today and see this DEPRECATED. Putting
> > DEPRECATED in help strings is not an effective deprecation strategy: I never
saw
> > this, and I've been using this flag for a while now – it's what's
recommended on
> > https://www.chromium.org/developers/how-tos/android-build-instructions etc.
Even
> > now that I happened to see this, I don't know what to do instead so I can't
> > change the docs.
> > > 
> > > Since the flag works fine and is the documented way to go abou tings,
maybe we
> > can just remove the DEPRECATED here? What's the motivation? (If it's to get
rid
> > of the implicit dependency of "out", that's a good motivation, in that case
> > there could be a "use X instead" note here)
> > 
> > I believe there are multiple reasons for doing this:
> >  - removing the flag itself for a required single argument, as mentioned in
the
> > description
> >  - more braodly, moving people and bots from the crazy automagical mode:
> > 
> >     # what will this install? who knows?
> >     ./build/android/adb_install_apk.py --apk ChromePublic
> > 
> >   to the more explicit, less magical mode:
> > 
> >     # much more clear
> >     ./build/android/adb_install_apk.py out/Release/apks/ChromePublic.apk
> > 
> > I would prefer updating the docs to calling this option un-deprecated, and
will
> > do so.
> 

updated:
 - http://www.chromium.org/developers/how-tos/android-build-instructions
 -
http://www.chromium.org/developers/testing/webkit-layout-tests/using-breakpad...

> Thanks!
> 
> I guess my high-order bit was "never say just 'deprecated', always say
'deprecated, use X instead'"

Ah, ok. This may not be the only script of ours that has a deprecated option
without a suggestion; I'll go through and clean those up.

Powered by Google App Engine
This is Rietveld 408576698