Closed Bug 1432212 Opened 6 years ago Closed 6 years ago

Log error and quit Firefox when Marionette fails to initialise

Categories

(Remote Protocol :: Marionette, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox60 fixed)

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: ato, Assigned: ato)

References

Details

Attachments

(3 files)

When the Marionette XPCOM component fails to initialise we should
log the error to the console and quit Firefox.  There is no point
in hanging around waiting for mozprocess to kill it.
Assignee: nobody → ato
Btw the same should actually happen when we fail to create the server socket.
Comment on attachment 8944462 [details]
Bug 1432212 - Log error and quit Firefox when Marionette fails to start.

https://reviewboard.mozilla.org/r/214650/#review220676

How about an extra try push that fakes a start-up failure to see how this change behaves when things are broken?

(Aside: in the future, include `marionette` in try syntax if you want Android Mn jobs to run. `marionette-e10s` doesn't exist on Android.)
Attachment #8944462 - Flags: review?(mjzffr) → review+
Comment on attachment 8944460 [details]
Bug 1432212 - Lazily load log service in Marionette.

https://reviewboard.mozilla.org/r/214646/#review220678
Attachment #8944460 - Flags: review?(mjzffr) → review+
Comment on attachment 8944461 [details]
Bug 1432212 - Await startup recorder by using async function.

https://reviewboard.mozilla.org/r/214648/#review220682
Attachment #8944461 - Flags: review?(mjzffr) → review+
(In reply to Maja Frydrychowicz (:maja_zf) from comment #7)

> How about an extra try push that fakes a start-up failure to see
> how this change behaves when things are broken?

So Firefox quits as expected, however the harness still waits the
full elapsed timeout.  I’ve filed https://bugzil.la/1432792 about
this.

> (Aside: in the future, include `marionette` in try syntax if you
> want Android Mn jobs to run. `marionette-e10s` doesn't exist on
> Android.)

Oh thanks, I didn’t know that.
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a496e8ddbe56
Lazily load log service in Marionette. r=maja_zf
https://hg.mozilla.org/integration/autoland/rev/22105e1fcb90
Await startup recorder by using async function. r=maja_zf
https://hg.mozilla.org/integration/autoland/rev/c7bb2d63ea0e
Log error and quit Firefox when Marionette fails to start. r=maja_zf
Blocks: 1432894
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: