Closed Bug 1802176 Opened 3 years ago Closed 3 years ago

Intermittent toolkit/mozapps/extensions/test/browser/browser_html_sitepermission_addons.js | single tracking bug

Categories

(Toolkit :: Add-ons Manager, defect, P5)

defect

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox107 --- unaffected
firefox108 --- fixed
firefox109 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression)

Attachments

(1 file)

Filed by: nerli [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=397463566&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/XffsLgLnTvuZqzTb4KIgeQ/runs/0/artifacts/public/logs/live_backing.log


[task 2022-11-23T14:57:31.455Z] 14:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/mozapps/extensions/test/browser/browser_html_sitepermission_addons.js | Test timed out - 
[task 2022-11-23T14:57:31.456Z] 14:57:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-11-23T14:57:31.457Z] 14:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/mozapps/extensions/test/browser/browser_html_sitepermission_addons.js | A promise chain failed to handle a rejection: add listener not removed before the end of test - stack: (No stack available.)
[task 2022-11-23T14:57:31.457Z] 14:57:31     INFO - Rejection date: Wed Nov 23 2022 14:57:31 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.sys.mjs :: assertNoUncaughtRejections :: line 266
[task 2022-11-23T14:57:31.458Z] 14:57:31     INFO - Stack trace:
[task 2022-11-23T14:57:31.458Z] 14:57:31     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2022-11-23T14:57:31.458Z] 14:57:31     INFO - chrome://mochikit/content/browser-test.js:nextTest:682
[task 2022-11-23T14:57:31.458Z] 14:57:31     INFO - GECKO(3316) | JavaScript error: resource://testing-common/PromiseTestUtils.sys.mjs, line 115: uncaught exception: add listener not removed before the end of test
[task 2022-11-23T14:57:31.459Z] 14:57:31     INFO - Console message: [JavaScript Error: "uncaught exception: add listener not removed before the end of test" {file: "resource://testing-common/PromiseTestUtils.sys.mjs" line: 115}]
[task 2022-11-23T14:57:31.459Z] 14:57:31     INFO - GECKO(3316) | MEMORY STAT | vsize 2104695MB | vsizeMaxContiguous 65170755MB | residentFast 481MB | heapAllocated 136MB
[task 2022-11-23T14:57:31.460Z] 14:57:31     INFO - TEST-OK | toolkit/mozapps/extensions/test/browser/browser_html_sitepermission_addons.js | took 90079ms
[task 2022-11-23T14:57:31.460Z] 14:57:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-11-23T14:57:31.461Z] 14:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/mozapps/extensions/test/browser/browser_html_sitepermission_addons.js | Found a tab after previous test timed out: https://example.org/document-builder.sjs?html=%3C!DOCTYPE%20html%3E%3Ch1%3ETest%20midi%20permission%20with%20synthetic%20site%20permission%20addon%3C/h1%3E - 
[task 2022-11-23T14:57:31.462Z] 14:57:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-11-23T14:57:31.463Z] 14:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/mozapps/extensions/test/browser/browser_html_sitepermission_addons.js | Found a tab after previous test timed out: about:addons - 
[task 2022-11-23T14:57:31.463Z] 14:57:31     INFO - checking window state

:nchevobbe, since you are the author of the regressor, bug 1801337, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(nchevobbe)

I can see this SecurityError: WebMIDI requires a site permission add-on to activate in the logs, that would indicate that the call to requestMIDIAccess is automatically denied, which can happen if there are no MIDI devices detected
This shouldn't happen as we set midi.testing pref in the test, that should simulate devices.
For now I can reproduce locally, I'll dig a bit deeper

Flags: needinfo?(nchevobbe)

Set release status flags based on info from the regressing bug 1801337

Okay, so I can confirm that the requestMIDIAccess isn't successful because there's no MIDI devices detected (https://treeherder.mozilla.org/logviewer?job_id=397546515&repo=try&lineNumber=7588-7598), although we do set the midi.testing pref

Set midi.testing and dom.webmidi.enabled prefs in browser.ini for the test.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7b8dd3c6cc69 Fix intermittent on browser_html_sitepermission_addons. r=rpl.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: