Closed Bug 1290598 Opened 9 years ago Closed 9 years ago

Migrate native messaging tests to xpcshell

Categories

(WebExtensions :: Untriaged, defect)

defect
Not set
normal

Tracking

(firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

Details

Attachments

(4 files)

No description provided.
Comment on attachment 8776158 [details] Bug 1290598: Migrate native messaging tests to xpcshell. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/68054/diff/1-2/
Comment on attachment 8776159 [details] Bug 1290598: Move slower native messaging tests to a separate unit. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/68056/diff/1-2/
N.B. If this doesn't land before the merge, we're probably going to have to try to get it uplifted.
Comment on attachment 8776310 [details] Bug 1290598: Manage and terminate Windows subprocess trees as a single job object. https://reviewboard.mozilla.org/r/68154/#review65360 I don't think this change actually achieves the stated goal of using a single job object for the subproces tree; it creates a new unnamed job object every time a process is spawned. To create a job object and then reuse it, the object has to be given a name.
Attachment #8776310 - Flags: review?(mhowell) → review-
https://reviewboard.mozilla.org/r/68154/#review65360 Right. Each process we spawn needs to be in its own job object. But the processes that *they* spawn need to be in the same job object so we can kill them when we want to terminate the process. The problem we're running into is that our tests use a batch file to launch a python interpreter, but when we terminate the process, the python interpreter is not actually terminated.
Comment on attachment 8776157 [details] Bug 1290598: Refactor native messaging test setup code into separate head file. https://reviewboard.mozilla.org/r/68052/#review65488
Attachment #8776157 - Flags: review?(aswan) → review+
Comment on attachment 8776158 [details] Bug 1290598: Migrate native messaging tests to xpcshell. https://reviewboard.mozilla.org/r/68054/#review65484 ::: toolkit/components/extensions/NativeMessaging.jsm:429 (Diff revision 2) > let result = this.startupPromise.then(() => { > this.send(msg); > return responsePromise; > }); > > + result.catch(() => { You could just add this to the second handler right below (or move the code from the second handler below up here if you prefer explicitly calling .catch)
Attachment #8776158 - Flags: review?(aswan) → review+
Comment on attachment 8776159 [details] Bug 1290598: Move slower native messaging tests to a separate unit. https://reviewboard.mozilla.org/r/68056/#review65492
Attachment #8776159 - Flags: review?(aswan) → review+
Assignee: nobody → kmaglione+bmo
Attachment #8776310 - Flags: review- → review?(mhowell)
Comment on attachment 8776310 [details] Bug 1290598: Manage and terminate Windows subprocess trees as a single job object. https://reviewboard.mozilla.org/r/68154/#review65502
Attachment #8776310 - Flags: review?(mhowell) → review+
https://reviewboard.mozilla.org/r/68154/#review65360 Oooooh, right. That's what I get for doing reviews early on Monday mornings. Thanks for clarifying.
Flags: needinfo?(kmaglione+bmo)
Backout by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/a9d00c5d21cc Backed out changeset 577158be08e8 https://hg.mozilla.org/integration/mozilla-inbound/rev/34de0687c35a Backed out changeset 486639a0f3ca https://hg.mozilla.org/integration/mozilla-inbound/rev/17aa766ced69 Backed out changeset 3242411d3294 https://hg.mozilla.org/integration/mozilla-inbound/rev/0da61317235f Backed out changeset 3f6f0dc1663c for xpcshell timeouts in test_ext_native_messaging.js
this set of changes had a slight performance improvement for windows 7 ts_paint! https://treeherder.mozilla.org/perf.html#/alerts?id=2246
Flags: needinfo?(kmaglione+bmo)
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: