Bug: Intermittent toolkit/components/search/tests/xpcshell/test_webextensions_builtin_upgrade.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-05-11 19:54:36+00:00
Resolved: 2023-02-14 17:00:46+00:00

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

---
```
[task 2022-05-11T19:47:25.728Z] 19:47:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_webextensions_builtin_upgrade.js | test_upgrade_with_name_change - [test_upgrade_with_name_change : 236] ["Multilocale AF","Multilocale AN","Plain2"] deepEqual ["Multilocale AF","Multilocale AN","Plain2"]
[task 2022-05-11T19:47:25.729Z] 19:47:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_webextensions_builtin_upgrade.js | test_upgrade_with_name_change - [test_upgrade_with_name_change : 243] Should still have the configuration applied after update. - "https://duckduckgo.com/?q=test&t=ffsb&config=applied" == "https://duckduckgo.com/?q=test&t=ffsb&config=applied"
[task 2022-05-11T19:47:25.729Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchService: "addEnginesFromExtension: plainengine@search.mozilla.org"
[task 2022-05-11T19:47:25.729Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchEngineSelector: "fetchEngineConfiguration en-US:default:default:::xpcshell:42"
[task 2022-05-11T19:47:25.730Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchEngineSelector: "fetchEngineConfiguration: multilocale@search.mozilla.org,multilocale@search.mozilla.org,plainengine@search.mozilla.org"
[task 2022-05-11T19:47:25.730Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchService: "init"
[task 2022-05-11T19:47:25.730Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchService: "getEngines: getting all engines for" "plainengine@search.mozilla.org"
[task 2022-05-11T19:47:25.730Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Plain" "to" "moz-extension://2431cfa8-ada1-4f7a-b805-48520ea914e7/favicon.ico"
[task 2022-05-11T19:47:25.730Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchUtils: "NOTIFY: Engine:" "Plain" "Verb:" "engine-changed"
[task 2022-05-11T19:47:25.730Z] 19:47:25     INFO -  (xpcshell/head.js) | test run_next_test 4 pending (2)
[task 2022-05-11T19:47:25.730Z] 19:47:25     INFO -  (xpcshell/head.js) | test test_upgrade_with_name_change finished (2)
[task 2022-05-11T19:47:25.731Z] 19:47:25     INFO -  (xpcshell/head.js) | test run_next_test 4 finished (1)
[task 2022-05-11T19:47:25.731Z] 19:47:25     INFO -  exiting test
[task 2022-05-11T19:47:25.731Z] 19:47:25     INFO -  "Force a GC"
[task 2022-05-11T19:47:25.731Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchSettings: "batchTask: Invalidating engine settings"
[task 2022-05-11T19:47:25.731Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchSettings: "_write: Writing to settings file."
[task 2022-05-11T19:47:25.731Z] 19:47:25     INFO -  PID 2146 | console.debug: SearchSettings: "_write: settings file written to disk."
[task 2022-05-11T19:47:25.732Z] 19:47:25     INFO -  PID 2146 | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 225: Error: Unable to arm timer, the object has been finalized.
[task 2022-05-11T19:47:25.732Z] 19:47:25     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-05-11T19:47:25.732Z] 19:47:25  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_webextensions_builtin_upgrade.js | test_upgrade_with_name_change - [test_upgrade_with_name_change : 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-05-11T19:47:25.732Z] 19:47:25     INFO -  save@resource://gre/modules/ExtensionParent.jsm:2004:27
[task 2022-05-11T19:47:25.732Z] 19:47:25     INFO -  set@resource://gre/modules/ExtensionParent.jsm:2122:18
[task 2022-05-11T19:47:25.733Z] 19:47:25     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:575:16
[task 2022-05-11T19:47:25.733Z] 19:47:25     INFO -  _execute_test@/opt/worker/tasks/task_165229810748313/build/tests/xpcshell/head.js:710:23
[task 2022-05-11T19:47:25.733Z] 19:47:25     INFO -  @-e:1:1
[task 2022-05-11T19:47:25.733Z] 19:47:25     INFO -  Rejection date: Wed May 11 2022 19:47:25 GMT+0000 (Greenwich Mean Time) - false == true
[task 2022-05-11T19:47:25.733Z] 19:47:25     INFO -  resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-05-11T19:47:25.733Z] 19:47:25     INFO -  /opt/worker/tasks/task_165229810748313/build/tests/xpcshell/head.js:_execute_test:722
[task 2022-05-11T19:47:25.733Z] 19:47:25     INFO -  -e:null:1
[task 2022-05-11T19:47:25.734Z] 19:47:25     INFO -  exiting test
[task 2022-05-11T19:47:25.734Z] 19:47:25     INFO -  PID 2146 | JavaScript error: /opt/worker/tasks/task_165229810748313/build/tests/xpcshell/head.js, line 874: NS_ERROR_ABORT:
[task 2022-05-11T19:47:25.734Z] 19:47:25     INFO -  <<<<<<<
[task 2022-05-11T19:47:25.734Z] 19:47:25     INFO -  INFO | Result summary:
[task 2022-05-11T19:47:25.734Z] 19:47:25     INFO -  INFO | Passed: 190
[task 2022-05-11T19:47:25.734Z] 19:47:25  WARNING -  INFO | Failed: 1
[task 2022-05-11T19:47:25.734Z] 19:47:25  WARNING -  One or more unittests failed.
[task 2022-05-11T19:47:25.734Z] 19:47:25     INFO -  INFO | Todo: 0
[task 2022-05-11T19:47:25.735Z] 19:47:25     INFO -  INFO | Retried: 2
[task 2022-05-11T19:47:25.735Z] 19:47:25     INFO -  SUITE-END | took 58s
[task 2022-05-11T19:47:25.735Z] 19:47:25     INFO -  Node moz-http2 server shutting down ...
[task 2022-05-11T19:47:25.735Z] 19:47:25     INFO -  http3Server server shutting down ...
[task 2022-05-11T19:47:26.070Z] 19:47:26    ERROR - Return code: 1
```