Bug: Intermittent browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-04-21 00:30:19+00:00
Resolved: 2022-05-17 17:03:24+00:00

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

---
```
[task 2022-04-21T00:03:41.865Z] 00:03:41     INFO -  TEST-PASS | browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js | test_addon_normalinstalled_file - [test_addon_normalinstalled_file : 284] Addon should be able to be disabled. - 4 != 0
[task 2022-04-21T00:03:41.865Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421696	addons.xpi-utils	DEBUG	Make addon app-profile:policytest2@mozilla.com visible"
[task 2022-04-21T00:03:41.866Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421696	addons.xpi	DEBUG	XPIStates adding add-on policytest2@mozilla.com in {"addons":{},"staged":{},"path":"/var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/extensions"}: /var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/extensions/policytest2@mozilla.com.xpi"
[task 2022-04-21T00:03:41.867Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421696	addons.xpi	DEBUG	Updating XPIState for {"id":"policytest2@mozilla.com","syncGUID":"{2ed0022e-9d29-4afb-9cfd-750940110cb6}","version":"1.0","type":"extension","loader":null,"updateURL":null,"installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Generated extension","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1650499421663,"updateDate":1650499421663,"applyBackgroundUpdates":1,"path":"/var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/extensions/policytest2@mozilla.com.xpi","skinnable":false,"sourceURI":"file:///var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/generated-extension.xpi","releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"toolkit@mozilla.org","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"signedState":4,"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":[],"origins":[]},"optionalPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":{"source":"enterprise-policy"},"recommendationState":null,"rootURI":"jar:file:///var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/extensions/policytest2@mozilla.com.xpi!/","location":"app-profile"}"
[task 2022-04-21T00:03:41.867Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421696	addons.xpi	DEBUG	Install of file:///var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/generated-extension.xpi completed."
[task 2022-04-21T00:03:41.868Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421697	addons.xpi	DEBUG	Loading bootstrap scope from jar:file:///var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/extensions/policytest2@mozilla.com.xpi!/"
[task 2022-04-21T00:03:41.868Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421697	addons.xpi	DEBUG	Calling bootstrap method install on policytest2@mozilla.com version 1.0"
[task 2022-04-21T00:03:41.868Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421697	addons.xpi	DEBUG	Calling bootstrap method startup on policytest2@mozilla.com version 1.0"
[task 2022-04-21T00:03:41.868Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421700	addons.xpi	DEBUG	Calling bootstrap method shutdown on policytest2@mozilla.com version 1.0"
[task 2022-04-21T00:03:41.869Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421700	addons.xpi	DEBUG	removeTemporaryFile: file:///var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/generated-extension.xpi does not own temp file"
[task 2022-04-21T00:03:41.869Z] 00:03:41     INFO -  (xpcshell/head.js) | test run_next_test 11 pending (2)
[task 2022-04-21T00:03:41.869Z] 00:03:41     INFO -  (xpcshell/head.js) | test test_addon_normalinstalled_file finished (2)
[task 2022-04-21T00:03:41.869Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421701	addons.xpi	DEBUG	Calling bootstrap method uninstall on policytest2@mozilla.com version 1.0"
[task 2022-04-21T00:03:41.869Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421701	addons.xpi	DEBUG	Disabling XPIState for policytest2@mozilla.com"
[task 2022-04-21T00:03:41.870Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421701	addons.xpi	DEBUG	uninstallAddon: flushing jar cache /var/folders/14/2_qpfkwn6s91ybykcsrmr3_8000014/T/xpc-profile-tle541aa/extensions/policytest2@mozilla.com.xpi for addon policytest2@mozilla.com"
[task 2022-04-21T00:03:41.870Z] 00:03:41     INFO -  (xpcshell/head.js) | test run_next_test 11 finished (1)
[task 2022-04-21T00:03:41.870Z] 00:03:41     INFO -  exiting test
[task 2022-04-21T00:03:41.870Z] 00:03:41     INFO -  "Force a GC"
[task 2022-04-21T00:03:41.870Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421711	addons.manager	DEBUG	before shutdown"
[task 2022-04-21T00:03:41.870Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421712	addons.manager	DEBUG	shutdown"
[task 2022-04-21T00:03:41.871Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421712	addons.manager	DEBUG	Calling shutdown blocker for XPIProvider"
[task 2022-04-21T00:03:41.871Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421712	addons.xpi	DEBUG	shutdown"
[task 2022-04-21T00:03:41.871Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421712	addons.xpi-utils	DEBUG	Updating add-on states"
[task 2022-04-21T00:03:41.871Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421712	addons.xpi-utils	DEBUG	shutdown"
[task 2022-04-21T00:03:41.872Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (info) 1650499421714	addons.manager	DEBUG	Async provider shutdown done"
[task 2022-04-21T00:03:41.872Z] 00:03:41     INFO -  PID 4384 | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 225: Error: Unable to arm timer, the object has been finalized.
[task 2022-04-21T00:03:41.872Z] 00:03:41     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Error: Unable to arm timer, the object has been finalized." {file: "resource://gre/modules/DeferredTask.jsm" line: 225}]"
[task 2022-04-21T00:03:41.872Z] 00:03:41  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js | test_addon_normalinstalled_file - [test_addon_normalinstalled_file : 271] A promise chain failed to handle a rejection: Unable to arm timer, the object has been finalized. - stack: arm@resource://gre/modules/DeferredTask.jsm:225:13
[task 2022-04-21T00:03:41.872Z] 00:03:41     INFO -  save@resource://gre/modules/ExtensionParent.jsm:1952:27
[task 2022-04-21T00:03:41.873Z] 00:03:41     INFO -  set@resource://gre/modules/ExtensionParent.jsm:2061:18
[task 2022-04-21T00:03:41.873Z] 00:03:41     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:575:16
[task 2022-04-21T00:03:41.873Z] 00:03:41     INFO -  _execute_test@/opt/worker/tasks/task_165049874588205/build/tests/xpcshell/head.js:710:23
[task 2022-04-21T00:03:41.873Z] 00:03:41     INFO -  @-e:1:1
[task 2022-04-21T00:03:41.873Z] 00:03:41     INFO -  Rejection date: Thu Apr 21 2022 00:03:41 GMT+0000 (Greenwich Mean Time) - false == true
[task 2022-04-21T00:03:41.873Z] 00:03:41     INFO -  resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-04-21T00:03:41.874Z] 00:03:41     INFO -  /opt/worker/tasks/task_165049874588205/build/tests/xpcshell/head.js:_execute_test:722
[task 2022-04-21T00:03:41.874Z] 00:03:41     INFO -  -e:null:1
[task 2022-04-21T00:03:41.874Z] 00:03:41     INFO -  exiting test
[task 2022-04-21T00:03:41.874Z] 00:03:41     INFO -  PID 4384 | JavaScript error: /opt/worker/tasks/task_165049874588205/build/tests/xpcshell/head.js, line 874: NS_ERROR_ABORT:
[task 2022-04-21T00:03:41.874Z] 00:03:41     INFO -  <<<<<<<
[task 2022-04-21T00:03:41.874Z] 00:03:41     INFO -  TEST-START | toolkit/components/reputationservice/test/unit/test_app_rep.js
[task 2022-04-21T00:03:42.668Z] 00:03:42     INFO -  TEST-PASS | toolkit/components/reputationservice/test/unit/test_app_rep.js | took 840ms
[task 2022-04-21T00:03:42.696Z] 00:03:42     INFO -  INFO | Result summary:
[task 2022-04-21T00:03:42.696Z] 00:03:42     INFO -  INFO | Passed: 1375
[task 2022-04-21T00:03:42.696Z] 00:03:42  WARNING -  INFO | Failed: 1
[task 2022-04-21T00:03:42.696Z] 00:03:42  WARNING -  One or more unittests failed.
[task 2022-04-21T00:03:42.696Z] 00:03:42     INFO -  INFO | Todo: 0
[task 2022-04-21T00:03:42.696Z] 00:03:42     INFO -  INFO | Retried: 2
[task 2022-04-21T00:03:42.697Z] 00:03:42     INFO -  SUITE-END | took 306s
[task 2022-04-21T00:03:42.697Z] 00:03:42     INFO -  Node moz-http2 server shutting down ...
[task 2022-04-21T00:03:42.699Z] 00:03:42     INFO -  http3Server server shutting down ...
[task 2022-04-21T00:03:42.961Z] 00:03:42    ERROR - Return code: 1
[task 2022-04-21T00:03:42.961Z] 00:03:42     INFO - TinderboxPrint: xpcshell-xpcshell<br/>1375/<em class="testfail">1</em>/0
[task 2022-04-21T00:03:42.961Z] 00:03:42  WARNING - # TBPL FAILURE #
[task 2022-04-21T00:03:42.962Z] 00:03:42  WARNING - setting return code to 2
[task 2022-04-21T00:03:42.962Z] 00:03:42  WARNING - The xpcshell suite: xpcshell ran with return status: FAILURE
[task 2022-04-21T00:03:42.962Z] 00:03:42     INFO - Running post-action listener: _package_coverage_data
[task 2022-04-21T00:03:42.962Z] 00:03:42     INFO - Running post-action listener: _resource_record_post_action
[task 2022-04-21T00:03:42.962Z] 00:03:42     INFO - Running post-action listener: process_java_coverage_data
[task 2022-04-21T00:03:42.962Z] 00:03:42     INFO - [mozharness: 2022-04-21 00:03:42.962374Z] Finished run-tests step (success)
[task 2022-04-21T00:03:42.962Z] 00:03:42     INFO - Running post-run listener: _resource_record_post_run
[task 2022-04-21T00:03:46.061Z] 00:03:46     INFO - instance_metadata.json not found; unable to determine instance type
[task 2022-04-21T00:03:46.106Z] 00:03:46     INFO - Validating Perfherder data against /opt/worker/tasks/task_165049874588205/mozharness/external_tools/performance-artifact-schema.json
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - PERFHERDER_DATA: {"framework": {"name": "job_resource_usage"}, "suites": [{"name": "xpcshell.xpcshell.overall", "extraOptions": ["e10s", "buildbot-unknown"], "subtests": [{"name": "cpu_percent", "value": 20.705583972719516}, {"name": "io_write_bytes", "value": 10145353728}, {"name": "io.read_bytes", "value": 7627808768}, {"name": "io_write_time", "value": 1877530}, {"name": "io_read_time", "value": 431165}]}, {"name": "xpcshell.xpcshell.start-pulseaudio", "subtests": [{"name": "time", "value": 0.000453948974609375}]}, {"name": "xpcshell.xpcshell.install", "subtests": [{"name": "time", "value": 31.559958934783936}, {"name": "cpu_percent", "value": 19.099999999999998}]}, {"name": "xpcshell.xpcshell.stage-files", "subtests": [{"name": "time", "value": 0.11548590660095215}]}, {"name": "xpcshell.xpcshell.run-tests", "subtests": [{"name": "time", "value": 386.3767569065094}, {"name": "cpu_percent", "value": 20.85981071098799}]}]}
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - Total resource usage - Wall time: 416s; CPU: 21%; Read bytes: 7627808768; Write bytes: 10145353728; Read time: 431165; Write time: 1877530
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - TinderboxPrint: CPU usage<br/>20.9%
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - TinderboxPrint: I/O read bytes / time<br/>7,627,808,768 / 431,165
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - TinderboxPrint: I/O write bytes / time<br/>10,145,353,728 / 1,877,530
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - TinderboxPrint: CPU idle<br/>3,317.5 (66.4%)
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - TinderboxPrint: CPU system<br/>452.9 (9.1%)
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - TinderboxPrint: CPU user<br/>1,226.8 (24.5%)
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - TinderboxPrint: Swap in / out<br/>4,488,728,576 / 0
[task 2022-04-21T00:03:46.109Z] 00:03:46     INFO - start-pulseaudio - Wall time: 0s; CPU: Can't collect data; Read bytes: 0; Write bytes: 0; Read time: 0; Write time: 0
[task 2022-04-21T00:03:46.110Z] 00:03:46     INFO - install - Wall time: 32s; CPU: 19%; Read bytes: 1024583168; Write bytes: 426463232; Read time: 48958; Write time: 26163
[task 2022-04-21T00:03:46.110Z] 00:03:46     INFO - stage-files - Wall time: 0s; CPU: Can't collect data; Read bytes: 0; Write bytes: 0; Read time: 0; Write time: 0
[task 2022-04-21T00:03:46.114Z] 00:03:46     INFO - run-tests - Wall time: 386s; CPU: 21%; Read bytes: 7006048256; Write bytes: 9696727040; Read time: 403764; Write time: 1848623
[task 2022-04-21T00:03:46.188Z] 00:03:46  WARNING - returning nonzero exit status 2
[taskcluster 2022-04-21T00:03:46.212Z]    Exit Code: 2
[taskcluster 2022-04-21T00:03:46.212Z]    User Time: 11m54.086779s
[taskcluster 2022-04-21T00:03:46.212Z]  Kernel Time: 4m13.885976s
[taskcluster 2022-04-21T00:03:46.212Z]    Wall Time: 9m10.413317s
[taskcluster 2022-04-21T00:03:46.212Z]       Result: FAILED
[taskcluster 2022-04-21T00:03:46.212Z] === Task Finished ===
[taskcluster 2022-04-21T00:03:46.212Z] Task Duration: 9m10.416329s
[taskcluster 2022-04-21T00:03:47.132Z] Uploading artifact public/logs/localconfig.json from file logs/localconfig.json with content encoding "gzip", mime type "application/json" and expiry 2023-04-20T21:56:31.466Z
[taskcluster 2022-04-21T00:03:47.583Z] Uploading artifact public/test_info/4AF18FB9-0524-47F2-83AC-6B5B0346D0C1.dmp from file build/blobber_upload_dir/4AF18FB9-0524-47F2-83AC-6B5B0346D0C1.dmp with content encoding "gzip", mime type "application/vnd.tcpdump.pcap" and expiry 2023-04-20T21:56:31.466Z
[taskcluster 2022-04-21T00:03:47.935Z] Uploading artifact public/test_info/4AF18FB9-0524-47F2-83AC-6B5B0346D0C1.extra from file build/blobber_upload_dir/4AF18FB9-0524-47F2-83AC-6B5B0346D0C1.extra with content encoding "gzip", mime type "application/octet-stream" and expiry 2023-04-20T21:56:31.466Z
[taskcluster 2022-04-21T00:03:48.077Z] Uploading artifact public/test_info/resource-usage.json from file build/blobber_upload_dir/resource-usage.json with content encoding "gzip", mime type "application/json" and expiry 2023-04-20T21:56:31.466Z
[taskcluster 2022-04-21T00:03:48.455Z] Uploading artifact public/test_info/system-info.log from file build/blobber_upload_dir/system-info.log with content encoding "gzip", mime type "text/plain" and expiry 2023-04-20T21:56:31.466Z
[taskcluster 2022-04-21T00:03:48.590Z] Uploading artifact public/test_info/xpcshell_errorsummary.log from file build/blobber_upload_dir/xpcshell_errorsummary.log with content encoding "gzip", mime type "text/plain" and expiry 2023-04-20T21:56:31.466Z
[taskcluster 2022-04-21T00:03:48.732Z] Uploading artifact public/test_info/xpcshell_raw.log from file build/blobber_upload_dir/xpcshell_raw.log with content encoding "gzip", mime type "text/plain" and expiry 2023-04-20T21:56:31.466Z
[taskcluster 2022-04-21T00:03:49.742Z] Uploading redirect artifact public/logs/live.log to URL https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/e86VEG1vSjiUNp20Hy3TAA/runs/0/artifacts/public%2Flogs%2Flive_backing.log with mime type "text/plain; charset=utf-8" and expiry 2023-04-20T21:56:31.466Z
[taskcluster:error] exit status 2
```