Bug: Intermittent toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | xpcshell return code: 0 | test_obsolete_langpack_engine - [test_obsolete_langpack_engine : 123] Unexpected console message: _write: Could not write to settings file: - false
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-04-04 21:53:05+00:00
Resolved: 2022-05-03 17:05:16+00:00

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

---
```
[task 2022-04-04T19:38:28.556Z] 19:38:28     INFO -  TEST-START | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js
[task 2022-04-04T19:38:31.227Z] 19:38:31  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | xpcshell return code: 0
[task 2022-04-04T19:38:31.228Z] 19:38:31     INFO -  TEST-INFO took 2671ms
[task 2022-04-04T19:38:31.228Z] 19:38:31     INFO -  >>>>>>>
[task 2022-04-04T19:38:31.228Z] 19:38:31     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-04-04T19:38:31.228Z] 19:38:31     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2022-04-04T19:38:31.228Z] 19:38:31     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2022-04-04T19:38:31.229Z] 19:38:31     INFO -  running event loop
[task 2022-04-04T19:38:31.229Z] 19:38:31     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | Starting setup
[task 2022-04-04T19:38:31.229Z] 19:38:31     INFO -  (xpcshell/head.js) | test setup pending (2)
[task 2022-04-04T19:38:31.229Z] 19:38:31     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2022-04-04T19:38:31.229Z] 19:38:31     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2022-04-04T19:38:31.229Z] 19:38:31     INFO -  (xpcshell/head.js) | test setup finished (2)
[task 2022-04-04T19:38:31.230Z] 19:38:31     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | Starting test_obsolete_distribution_engine
[task 2022-04-04T19:38:31.230Z] 19:38:31     INFO -  (xpcshell/head.js) | test test_obsolete_distribution_engine pending (2)
[task 2022-04-04T19:38:31.230Z] 19:38:31     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2022-04-04T19:38:31.230Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "init"
[task 2022-04-04T19:38:31.230Z] 19:38:31     INFO -  PID 1020 | console.info: Region.jsm: "_getRegion called"
[task 2022-04-04T19:38:31.231Z] 19:38:31     INFO -  PID 1020 | console.info: Region.jsm: "_getRegion url is: " ""
[task 2022-04-04T19:38:31.231Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEngines: start"
[task 2022-04-04T19:38:31.231Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchEngineSelector: "fetchEngineConfiguration en-US:default:default:::xpcshell:42"
[task 2022-04-04T19:38:31.231Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchEngineSelector: "fetchEngineConfiguration: engine1@search.mozilla.org,engine2@search.mozilla.org"
[task 2022-04-04T19:38:31.231Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEnginesFromConfig"
[task 2022-04-04T19:38:31.232Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "makeEngineFromConfig:" ({webExtension:{id:"engine1@search.mozilla.org", locale:"default"}, orderHint:10000, default:"yes", telemetryId:(void 0)})
[task 2022-04-04T19:38:31.232Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "addEnginesFromExtension: engine1@search.mozilla.org"
[task 2022-04-04T19:38:31.232Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2022-04-04T19:38:31.232Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "engine1" "to" "moz-extension://82e6d804-36b3-49c3-950d-b6c0d7807dc5/favicon.ico"
[task 2022-04-04T19:38:31.233Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "makeEngineFromConfig:" ({webExtension:{id:"engine2@search.mozilla.org", locale:"default"}, orderHint:7000, default:"no", telemetryId:(void 0)})
[task 2022-04-04T19:38:31.233Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "addEnginesFromExtension: engine2@search.mozilla.org"
[task 2022-04-04T19:38:31.233Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2022-04-04T19:38:31.233Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "engine2" "to" "moz-extension://c27c2503-b46c-48e9-a170-a78e9fc1dcad/favicon.ico"
[task 2022-04-04T19:38:31.234Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_addEngineToStore: Adding engine:" "engine1"
[task 2022-04-04T19:38:31.234Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_addEngineToStore: Adding engine:" "engine2"
[task 2022-04-04T19:38:31.234Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEngines: loading" 0 "engines reported by AddonManager startup"
[task 2022-04-04T19:38:31.234Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEnginesFromSettings: Loading" 3 "engines from settings"
[task 2022-04-04T19:38:31.234Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEnginesFromSettings: skipped" 2 "built-in engines."
[task 2022-04-04T19:38:31.235Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEnginesMetadataFromSettings, transfering metadata for" "engine1" ({alias:"testAlias"})
[task 2022-04-04T19:38:31.235Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEnginesMetadataFromSettings, transfering metadata for" "engine2" ({alias:null, hidden:true})
[task 2022-04-04T19:38:31.235Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEngines: done"
[task 2022-04-04T19:38:31.235Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_init: engines loaded, writing settings"
[task 2022-04-04T19:38:31.235Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "Completed _init"
[task 2022-04-04T19:38:31.236Z] 19:38:31     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | test_obsolete_distribution_engine - [test_obsolete_distribution_engine : 34] Should have successfully initialized the search service - true == true
[task 2022-04-04T19:38:31.236Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_handleIgnoreListUpdated"
...
[task 2022-04-04T19:38:31.251Z] 19:38:31     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | test_obsolete_langpack_engine - [test_obsolete_langpack_engine : 49] Should have used the configured default engine - "engine1" == "engine1"
[task 2022-04-04T19:38:31.251Z] 19:38:31     INFO -  (xpcshell/head.js) | test run_next_test 3 pending (2)
[task 2022-04-04T19:38:31.251Z] 19:38:31     INFO -  (xpcshell/head.js) | test test_obsolete_langpack_engine finished (2)
[task 2022-04-04T19:38:31.252Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchSettings: "_write: settings file written to disk."
[task 2022-04-04T19:38:31.252Z] 19:38:31     INFO -  PID 1020 | console.error: SearchSettings: "_write: Could not write to settings file:" (new OperationError("Could not move temporary file(C:\\Users\\task_164909799648832\\AppData\\Local\\Temp\\xpc-profile-wx67_u68\\search.json.mozlz4.tmp) to destination(C:\\Users\\task_164909799648832\\AppData\\Local\\Temp\\xpc-profile-wx67_u68\\search.json.mozlz4)", (void 0), 240))
[task 2022-04-04T19:38:31.252Z] 19:38:31  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | test_obsolete_langpack_engine - [test_obsolete_langpack_engine : 123] Unexpected console message: _write: Could not write to settings file: - false == true
[task 2022-04-04T19:38:31.253Z] 19:38:31     INFO -  resource://gre/modules/ConsoleAPIStorage.jsm:CS_recordEvent:123
[task 2022-04-04T19:38:31.253Z] 19:38:31     INFO -  resource://gre/modules/SearchSettings.jsm:_write:232
[task 2022-04-04T19:38:31.253Z] 19:38:31     INFO -  Z:\task_164909799648832\build\tests\xpcshell\head.js:_do_main:240
[task 2022-04-04T19:38:31.253Z] 19:38:31     INFO -  Z:\task_164909799648832\build\tests\xpcshell\head.js:_execute_test:603
[task 2022-04-04T19:38:31.253Z] 19:38:31     INFO -  -e:null:1
[task 2022-04-04T19:38:31.253Z] 19:38:31     INFO -  exiting test
[task 2022-04-04T19:38:31.254Z] 19:38:31     INFO -  PID 1020 | JavaScript error: Z:\task_164909799648832\build\tests\xpcshell\head.js, line 874: NS_ERROR_ABORT:
[task 2022-04-04T19:38:31.254Z] 19:38:31     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_settings_obsolete.js | Starting test_obsolete_app_engine
[task 2022-04-04T19:38:31.254Z] 19:38:31     INFO -  (xpcshell/head.js) | test test_obsolete_app_engine pending (2)
[task 2022-04-04T19:38:31.254Z] 19:38:31     INFO -  (xpcshell/head.js) | test run_next_test 3 finished (2)
[task 2022-04-04T19:38:31.254Z] 19:38:31     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "NS_ERROR_ABORT: " {file: "Z:\\task_164909799648832\\build\\tests\\xpcshell\\head.js" line: 874}]
[task 2022-04-04T19:38:31.255Z] 19:38:31     INFO -  _abort_failed_test@Z:\\task_164909799648832\\build\\tests\\xpcshell\\head.js:874:20
[task 2022-04-04T19:38:31.255Z] 19:38:31     INFO -  do_report_result@Z:\\task_164909799648832\\build\\tests\\xpcshell\\head.js:975:5
[task 2022-04-04T19:38:31.255Z] 19:38:31     INFO -  Assert<@Z:\\task_164909799648832\\build\\tests\\xpcshell\\head.js:75:21
[task 2022-04-04T19:38:31.255Z] 19:38:31     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2022-04-04T19:38:31.255Z] 19:38:31     INFO -  proto.ok@resource://testing-common/Assert.jsm:254:10
[task 2022-04-04T19:38:31.255Z] 19:38:31     INFO -  observe@Z:/task_164909799648832/build/tests/xpcshell/tests/toolkit/components/search/tests/xpcshell/head_search.js:422:14
[task 2022-04-04T19:38:31.256Z] 19:38:31     INFO -  CS_recordEvent@resource://gre/modules/ConsoleAPIStorage.jsm:123:18
[task 2022-04-04T19:38:31.256Z] 19:38:31     INFO -  _write@resource://gre/modules/SearchSettings.jsm:232:18
[task 2022-04-04T19:38:31.256Z] 19:38:31     INFO -  _do_main@Z:\\task_164909799648832\\build\\tests\\xpcshell\\head.js:240:6
[task 2022-04-04T19:38:31.256Z] 19:38:31     INFO -  _execute_test@Z:\\task_164909799648832\\build\\tests\\xpcshell\\head.js:603:5
[task 2022-04-04T19:38:31.256Z] 19:38:31     INFO -  @-e:1:1
[task 2022-04-04T19:38:31.256Z] 19:38:31     INFO -  "
[task 2022-04-04T19:38:31.257Z] 19:38:31     INFO -  "Force a GC"
[task 2022-04-04T19:38:31.257Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "init"
[task 2022-04-04T19:38:31.257Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_loadEngines: start"
[task 2022-04-04T19:38:31.257Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchEngineSelector: "fetchEngineConfiguration en-US:default:default:::xpcshell:42"
[task 2022-04-04T19:38:31.257Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchEngineSelector: "fetchEngineConfiguration: engine1@search.mozilla.org,engine2@search.mozilla.org"
[task 2022-04-04T19:38:31.257Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_handleIgnoreListUpdated"
[task 2022-04-04T19:38:31.258Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_handleIgnoreListUpdated"
[task 2022-04-04T19:38:31.258Z] 19:38:31     INFO -  PID 1020 | console.debug: SearchService: "_handleIgnoreListUpdated"
[task 2022-04-04T19:38:31.258Z] 19:38:31     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "NetworkError: Network request failed" {file: "resource://services-settings/Utils.jsm" line: 153}]
[task 2022-04-04T19:38:31.258Z] 19:38:31     INFO -  fetch/</request.onerror@resource://services-settings/Utils.jsm:153:26
[task 2022-04-04T19:38:31.258Z] 19:38:31     INFO -  _execute_test@Z:\\task_164909799648832\\build\\tests\\xpcshell\\head.js:710:23
[task 2022-04-04T19:38:31.259Z] 19:38:31     INFO -  @-e:1:1
[task 2022-04-04T19:38:31.259Z] 19:38:31     INFO -  "
[task 2022-04-04T19:38:31.259Z] 19:38:31     INFO -  <<<<<<<
[task 2022-04-04T19:38:31.269Z] 19:38:31     INFO -  TEST-START | toolkit/mozapps/update/tests/unit_background_update/test_backgroundupdate_exitcodes.js
```