Closed Bug 1392648 Opened 7 years ago Closed 7 years ago

SHIELD browser-chrome tests are going to permaleak when Gecko 57 merges to Beta on 2017-09-20

Categories

(Firefox :: Normandy Client, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Tracking Status
firefox57 + verified

People

(Reporter: RyanVM, Assigned: osmose)

References

Details

Attachments

(1 file)

[Tracking Requested - why for this release]: Permaleaks on the next merge day This looks disturbingly like bug 1391117, except now both OSX and Windows are affected :( https://treeherder.mozilla.org/logviewer.html#?job_id=124764273&repo=try TEST-UNEXPECTED-FAIL | leakcheck | default process: 8584 bytes leaked (BackstagePass, CondVar, IdlePeriod, Mutex, SharedScriptableHelperForJSIID, ...)
Also affects Linux on slower platforms (like the CCov runs).
Summary: SHIELD browser-chrome tests are going to permaleak on OSX & Windows when Gecko 57 merges to Beta on 2017-09-20 → SHIELD browser-chrome tests are going to permaleak when Gecko 57 merges to Beta on 2017-09-20
You know, given that your bisect pointed to the sessionstore changes felipe made in the other bug, I bet this is related to the fact that our tests emit "sessionstore-windows-restored" to test how we respond to the event. We should probably do something instead of that so that we don't trigger any other observers for that event.
Assignee: nobody → mkelly
RyanVM: I have a patch that I think will stop our tests from triggering the leak (although it doesn't fix the root cause, I still think it's a worthwhile change), but I'm not sure how I'd do a try run to test this, as I can't find other pushes beyond the one linked above that are hitting the failure, and I can't replicate the leak locally. Would an OSX debug build running the mochitests hit it reliably?
Flags: needinfo?(ryanvm)
https://hg.mozilla.org/try/rev/cd680b6f5f1f3e985494b552f473cbccc6eed135 should suffice for reproducing. It won't reproduce from regular trunk (this is specific bustage that occurs on 57 in a Beta build configuration). Otherwise, if you want to attach the patch here, I can include it in my next run. I've got a patch stack to work around some other known issues so the results are a bit easier to go through.
Flags: needinfo?(ryanvm)
Attached the patch, if it works out well on your next test run then I'll add a reviewer. Thanks!
Flags: needinfo?(ryanvm)
Works great for the SHIELD test directory.
Flags: needinfo?(ryanvm)
Attachment #8901906 - Flags: feedback+
Attachment #8901906 - Flags: review?(gijskruitbosch+bugs)
Attachment #8901906 - Flags: review?(gijskruitbosch+bugs) → review?(felipc)
Gijs is out until Friday, and felipe's pretty familiar with this failure. :P
Comment on attachment 8901906 [details] Bug 1392648: Avoid using sessionrestore event in RecipeRunner tests. https://reviewboard.mozilla.org/r/173338/#review179224 ::: browser/extensions/shield-recipe-client/lib/RecipeRunner.jsm:107 (Diff revision 1) > + switch (topic) { > + case PREF_CHANGED_TOPIC: > + this.observePrefChange(data); > + break; > + case UI_AVAILABLE_TOPIC: > + this.observeUIAvailable(); it's possible that this might show up in the Browser Console as "promise with unhandled exception". You might want to at a minimum add a `.catch(()=>{})` here
Attachment #8901906 - Flags: review?(felipc) → review+
Pushed by mkelly@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ac60c5f7d3a4 Avoid using sessionrestore event in RecipeRunner tests. r=Felipe
Status: RESOLVED → VERIFIED
Product: Shield → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: