Closed Bug 1825953 Opened 1 year ago Closed 1 year ago

Intermittent [TV] /tests/toolkit/components/extensions/test/mochitest/test_ext_dnr_upgradeScheme.html | changed preference: extensions.dnr.lastStoreUpdateTag.e9d8e846-8ce4-48c1-a66f-94a8b18e873b

Categories

(WebExtensions :: General, defect, P5)

defect

Tracking

(firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, test-verify-fail, Whiteboard: [addons-jira])

Attachments

(2 files)

Filed by: smolnar [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=411070071&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IM619qP4SoKuGpG_qM_ydA/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IM619qP4SoKuGpG_qM_ydA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


INFO - TEST-OK | toolkit/components/extensions/test/mochitest/test_ext_dnr_upgradeScheme.html | took 1521ms
[task 2023-04-01T16:56:29.959Z] 16:56:29    ERROR - TEST-UNEXPECTED-FAIL | /tests/toolkit/components/extensions/test/mochitest/test_ext_dnr_upgradeScheme.html | changed preference: extensions.dnr.lastStoreUpdateTag.e9d8e846-8ce4-48c1-a66f-94a8b18e873b
[task 2023-04-01T16:56:29.959Z] 16:56:29    ERROR - TEST-UNEXPECTED-FAIL | /tests/toolkit/components/extensions/test/mochitest/test_ext_dnr_upgradeScheme.html | changed preference: extensions.webextensions.uuids
[task 2023-04-01T16:56:29.959Z] 16:56:29    ERROR - TEST-UNEXPECTED-FAIL | /tests/toolkit/components/extensions/test/mochitest/test_ext_dnr_upgradeScheme.html | changed preference: dom.ipc.keepProcessesAlive.extension
[task 2023-04-01T16:56:29.959Z] 16:56:29     INFO - TEST-START | Shutdown

:robwu, since you are the author of the regressor, bug 1810753, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(rob)

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

This is not a regression caused by bug 1810753. Logically there is zero change in behavior in the referenced test file (comment + 1 pref that enables the behavior before the patch): https://hg.mozilla.org/mozilla-central/rev/3208bcb7bb98#l2.2

The failure appears to happen with TV, which is understandable given that the bug touched the file.

The first of the referenced prefs were introduced in bug 1803365.
The second pref could potentially be related.
The third pref (dom.ipc.keepProcessesAlive.extension) is strange - I don't see it changing unexpectedly during the test.

Flags: needinfo?(rob)
Keywords: regression
No longer regressed by: 1810753
See Also: → 1803365

This is a pre-existing issue across all test types, but only triggered in TV because the check was introduced (recently) in bug 1783248.

I can reproduce without TV by running

./mach test toolkit/components/extensions/test/mochitest/test_ext_dnr_upgradeScheme.html --compare-preferences

This issue happens because the test_ext_dnr_upgradeScheme.html test installs an in-memory Extension without useAddonManager.
Both result in (pref) storage changes that are ordinarily cleaned up in ExtensionAddonObserver.onUninstalled. But that does not happen here, because ExtensionAddonObserver is only triggered for test extensions if useAddonManager is set.

The changed pref thing is not specific to the DNR API nor test_ext_dnr_upgradeScheme.html; I just witnessed a TV failure on try in toolkit/components/extensions/test/mochitest/test_ext_webrequest_frameId.html that is independent of this bug.

See Also: → 1783248
See Also: → 1826390
Assignee: nobody → rob
Status: NEW → ASSIGNED
Whiteboard: [addons-jira]

Set in test manifests instead of head.js to prevent the mochitest from
setting prefs that persist across the end of the test, resulting in:

TEST-UNEXPECTED-FAIL | /tests/toolkit/components/extensions/test/mochitest/[name].html | changed preference: dom.ipc.keepProcessesAlive.extension

when run in TV or with ./mach test --compare-preferences ...

Most extension mochitests are now busted in TV (--test-verify) tests
because of the changes from bug 1783248.

The cause of the failure will be addressed in a follow-up, at:
https://bugzilla.mozilla.org/show_bug.cgi?id=1826390

Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/e22ba4bf75e8
Move keepProcessesAlive.extension pref from head.js to  mochitest*.ini r=rpl
https://hg.mozilla.org/integration/autoland/rev/8667f9f6e281
Temporarily add some extension prefs to ignorePrefs.json r=rpl,jmaher
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: