Closed Bug 1366448 Opened 8 years ago Closed 8 years ago

Permaorange in browser_force_process_selector.js when Gecko 55 merges to mozilla-beta on 2017-06-12

Categories

(Testing :: Mochitest, defect)

55 Branch
defect
Not set
normal

Tracking

(firefox-esr45 unaffected, firefox-esr52 unaffected, firefox53 unaffected, firefox54 unaffected, firefox55blocking fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox-esr45 --- unaffected
firefox-esr52 --- unaffected
firefox53 --- unaffected
firefox54 --- unaffected
firefox55 blocking fixed

People

(Reporter: philor, Assigned: mrbkap)

References

Details

Attachments

(1 file)

Apparently the process described in https://hg.mozilla.org/mozilla-central/annotate/8d60d0f825110cfb646ac31dc16dc011708bcf34/dom/base/test/browser_force_process_selector.js#l17 is a nightly-only process, because when browser_force_process_selector.js hits beta in three weeks, it's going to be permaorange with an unexpected pass like https://treeherder.mozilla.org/logviewer.html#?job_id=100612603&repo=try [Tracking Requested - why for this release]: potential merge permaorange, potential closed tree, potential delayed b1.
Flags: needinfo?(mrbkap)
marking as blocking 55.
Assignee: nobody → mrbkap
Flags: needinfo?(mrbkap)
Comment on attachment 8870615 [details] Bug 1366448 - Fix assumptions in this test so it works across branches. https://reviewboard.mozilla.org/r/142068/#review146426 Looks okay - just two notes. Thanks! ::: commit-message-96e18:1 (Diff revision 1) > +Bug 1366448 - Use a better method to ensure we're doing the right thing. r=mconley I think this commit message could probably be a little clearer about: a) Why this method is better b) What the "right thing" is. ::: dom/base/test/browser_force_process_selector.js:8 (Diff revision 1) > + let processCreated = new Promise(resolve => { > + Services.obs.addObserver(function observer(subject, topic, data) { > + is(topic, CONTENT_CREATED, "got the right topic"); > + Services.obs.removeObserver(observer, topic); > + resolve(); > + }, CONTENT_CREATED) > + }); I believe you can use TestUtils.topicObserved for this - example: ```js let processCreated = TestUtils.topicObserved(CONTENT_CREATED); ```
Attachment #8870615 - Flags: review?(mconley) → review+
Comment on attachment 8870615 [details] Bug 1366448 - Fix assumptions in this test so it works across branches. https://reviewboard.mozilla.org/r/142068/#review146426 > I believe you can use TestUtils.topicObserved for this - example: > > ```js > > let processCreated = TestUtils.topicObserved(CONTENT_CREATED); > > ``` I thought this existed somewhere but couldn't find it. Thanks!
Pushed by mrbkap@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/43dffb5a0052 Fix assumptions in this test so it works across branches. r=mconley
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Component: BrowserTest → Mochitest
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: