Closed
Bug 840268
Opened 12 years ago
Closed 12 years ago
--runapp doesn't disable the lockscreen or launch the named app
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgriffin, Assigned: jlal)
References
Details
Attachments
(2 files, 1 obsolete file)
When launching the B2G desktop build with --runapp "Test Agent", the output suggests that the lockscreen will be disabled:
--runapp found app: Test Agent, disabling lock screen...
XXX FIXME : Got a mozContentEvent: accessibility-screenreader
FTU manifest cannot be found skipping.
###################################### forms.js loaded
--runapp launching app: Test Agent
However, the lockscreen is not disabled. The Test Agent app is launched, but behind the lockscreen so it isn't visible.
Does this matter for the gaia unit tests?
Reporter | ||
Updated•12 years ago
|
Blocks: tbpl-gaia-unit
Reporter | ||
Comment 1•12 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #0)
>
> However, the lockscreen is not disabled. The Test Agent app is launched,
> but behind the lockscreen so it isn't visible.
>
I take that part back, it doesn't seem to automatically launch the Test Agent app either, even though the dump output claims to.
Reporter | ||
Comment 2•12 years ago
|
||
In the context of the Gaia Unit tests in buildbot, we could get around this by using Marionette to disable the lock screen and launch the Test App. But, that would require Marionette-enabled B2G desktop builds, and I'd rather have this work with any B2G desktop build.
Reporter | ||
Updated•12 years ago
|
Summary: --runapp doesn't disable the lockscreen → --runapp doesn't disable the lockscreen or launch the named app
Reporter | ||
Comment 3•12 years ago
|
||
The unlock problem occurs because the current unlock code doesn't seem to work well when unlock() is called and no app is active, as happens in http://mxr.mozilla.org/mozilla-central/source/b2g/chrome/content/runapp.js.
Reporter | ||
Comment 4•12 years ago
|
||
This currently blocks getting Gaia Unit tests in TBPL. I've tried working around this by writing "lockscreen.enabled": false and "lockscreen.locked": false to settings.json, but this doesn't work either. We can't programmatically launch the Test Agent app, or disable the lockscreen, without using Marionette. If we're OK with only running these on Marionette-enabled builds, I can proceed with that approach.
David, should I wait for this to be fixed or go ahead and require Marionette?
Flags: needinfo?(dscravaglieri)
Assignee | ||
Comment 5•12 years ago
|
||
Jonathan... I think I have a fix (requires a gecko & gaia patch so far) but marionette is probably going to make this easier in the long run no?
Flags: needinfo?(dscravaglieri)
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #719699 -
Flags: feedback?(fabrice)
Comment 7•12 years ago
|
||
Comment on attachment 719699 [details] [diff] [review]
Update runapp observer.
Review of attachment 719699 [details] [diff] [review]:
-----------------------------------------------------------------
::: CLOBBER
@@ +14,5 @@
> # O <-- Clobber O <-- Clobber
> #
> # Note: The description below will be part of the error message shown to users.
> #
> +Bug 784841 pretty much changed how the build system works. It's best to clobber.
You probably don't want to clobber for this bug ;)
Attachment #719699 -
Flags: feedback?(fabrice) → feedback+
Assignee | ||
Comment 8•12 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•12 years ago
|
Attachment #719709 -
Flags: review?(fabrice)
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #719699 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #719710 -
Flags: review?(fabrice)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → jlal
Status: NEW → ASSIGNED
Updated•12 years ago
|
Attachment #719710 -
Flags: review?(fabrice) → review+
Comment 10•12 years ago
|
||
Comment on attachment 719709 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/8387
I would prefer to have { } even on one line if's, but I don't know what the code style is in gaia so I let you decide that.
Attachment #719709 -
Flags: review?(fabrice) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 11•12 years ago
|
||
gaia piece landed here: https://github.com/mozilla-b2g/gaia/commit/8a5b3052bb389898d5ba7bee63b71dea92139519
Note: the gaia piece is safe to land before the gecko piece they don't have interdependency.
Updated•12 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 12•12 years ago
|
||
(In reply to James Lal [:lightsofapollo] from comment #5)
> Jonathan... I think I have a fix (requires a gecko & gaia patch so far) but
> marionette is probably going to make this easier in the long run no?
Yes and no. Marionette isn't enabled in all builds, and it's nice to have this functionality in builds that aren't Marionette-enabled. In particular for running Gaia unit tests in automation, I'd rather not require Marionette just as a mechanism of launching one app, if another solution exists.
Reporter | ||
Comment 13•12 years ago
|
||
Is the gecko patch ready to land now?
Assignee | ||
Comment 14•12 years ago
|
||
@jgriffin
This is ready... How do you plan to use this in automation? I don't think there is any signal when -runapp finishes. test-agent will attempt to connect to the socket ASAP so you could base "launched" as the point where the websocket connects.
@RyanVM
Hmm... not sure why checkin-needed was removed. The gaia patch _was_ landed but we need the gecko patch to fix this bug. It has r+ what else is needed so we can land this to inbound?
Flags: needinfo?(ryanvm)
Keywords: checkin-needed
Reporter | ||
Comment 15•12 years ago
|
||
Keywords: checkin-needed
Reporter | ||
Comment 16•12 years ago
|
||
(In reply to James Lal [:lightsofapollo] from comment #14)
> @jgriffin
>
> This is ready... How do you plan to use this in automation? I don't think
> there is any signal when -runapp finishes. test-agent will attempt to
> connect to the socket ASAP so you could base "launched" as the point where
> the websocket connects.
>
In practice it doesn't seem to matter whether the websocket server or the test agent app is started first...in either case, the test agent app will continue to attempt a connection until it succeeds, so building automation around this shouldn't be hard.
Assignee | ||
Comment 17•12 years ago
|
||
Correct... the client will try very hard to remain connected (or to get connected initially) :)
Comment 18•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: needinfo?(ryanvm)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•