Closed Bug 1566930 Opened 5 years ago Closed 5 years ago

Default to yes on "Re-install geckoview AndroidTest?"

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: bdahl, Assigned: bdahl)

References

(Blocks 1 open bug)

Details

(Whiteboard: [geckoview:p3])

Attachments

(1 file)

A lot of times I'm running something like ./mach build && ./mach test ... which can take a few minutes, and by the time I come back to the terminal it's stuck on the questions "Re-install geckoview AndroidTest?". It would be nice if that defaulted to "Yes", so I don't have to stick around and wait for the prompt.

Or even better would be if the build system new whether to install or not based on changes.

Whiteboard: [geckoview]

I've implemented the --no-install flag to skip the checks and Re-install geckoview AndroidTest prompt at bug 1566984.

EDIT: agi pointed out that --no-install is exactly the opposite of what was requested here. This bug is asking for something like --install.

See Also: → 1566984

The thinking behind the addition of the install prompting was that there are both cases where the mach user wants to install/re-install (just built but did not install/re-install) and cases where the mach user does not (have already installed, want to repeat runs quickly without app changes, have installed a downloaded build, etc).

Seeing all the "default to ..." bugs, I am open to removing the prompting and replacing it with a default (always install or always don't install) + a command line over-ride (--no-install or --install). But I think the prompting is useful, at least for the casual user of android mach commands, as a reminder of the (possible) need to install. I favor keeping the prompting and adding --no-install for all android commands; default to install can then be achieved with 'mach install && mach test --no-install'.

Whiteboard: [geckoview] → [geckoview:p3]
Assignee: nobody → bdahl
Status: NEW → ASSIGNED

During the Berlin all hands this came up in the GeckoView room. The consensus was 99% of the time we want to install the app by default and having to either answer the prompt or use the mach install someApp && mach test ... are cumbersome.

(Copied from the phab review).

:gbrown, I think that we could add an environment flag like MOZ_DISABLE_ADB_INSTALL and check for it either in the harnesses or in the device to determine if we should install or not.

With this, we'll be able to have the default install behaviour, and for those of us who never use it, we can permanently disable it with the flag. We could either add it here into adb.py or we could use it on a per-harness basis (I could make a follow-up patch for the per-harness one).

What do you think about this?

Flags: needinfo?(gbrown)

Answered in phab review. Thanks.

Flags: needinfo?(gbrown)
Pushed by bdahl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ef6d3ace1b4a Default to auto install on the various android mach commands. r=gbrown,perftest-reviewers,whimboo,sparky
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: