Bug: Intermittent toolkit/components/search/tests/xpcshell/test_notifications.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-03-08 22:59:20+00:00
Resolved: 2024-01-08 12:01:05+00:00

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

---
```
[task 2023-03-08T22:32:54.123Z] 22:32:54     INFO -  TEST-START | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js
[task 2023-03-08T22:33:13.490Z] 22:33:13  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | xpcshell return code: 0
[task 2023-03-08T22:33:13.497Z] 22:33:13     INFO -  TEST-INFO took 19368ms
[task 2023-03-08T22:33:13.497Z] 22:33:13     INFO -  >>>>>>>
[task 2023-03-08T22:33:13.498Z] 22:33:13     INFO -  PID 9032 | DLL blocklist was unable to intercept AppInit DLLs.
[task 2023-03-08T22:33:13.498Z] 22:33:13     INFO -  PID 9032 | [Parent 9032, Main Thread] WARNING: Failed to get directory to cache.: file /builds/worker/checkouts/gecko/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp:131
[task 2023-03-08T22:33:13.498Z] 22:33:13     INFO -  PID 9032 | [Parent 9032, Main Thread] WARNING: Failed to get directory to cache.: file /builds/worker/checkouts/gecko/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp:131
[task 2023-03-08T22:33:13.499Z] 22:33:13     INFO -  PID 9032 | [Parent 9032, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:2908
[task 2023-03-08T22:33:13.499Z] 22:33:13     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2023-03-08T22:33:13.499Z] 22:33:13     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2023-03-08T22:33:13.499Z] 22:33:13     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2023-03-08T22:33:13.499Z] 22:33:13     INFO -  running event loop
[task 2023-03-08T22:33:13.500Z] 22:33:13     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | Starting setup
[task 2023-03-08T22:33:13.500Z] 22:33:13     INFO -  (xpcshell/head.js) | test setup pending (2)
[task 2023-03-08T22:33:13.500Z] 22:33:13     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2023-03-08T22:33:13.500Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "init"
[task 2023-03-08T22:33:13.500Z] 22:33:13     INFO -  PID 9032 | console.info: Region.sys.mjs: "_getRegion called"
[task 2023-03-08T22:33:13.501Z] 22:33:13     INFO -  PID 9032 | console.info: Region.sys.mjs: "_getRegion url is: " ""
[task 2023-03-08T22:33:13.501Z] 22:33:13     INFO -  PID 9032 | console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\\\Users\\\\task_167831009330999\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-6paqw5kb\\\\search.json.mozlz4", (void 0), 238))
[task 2023-03-08T22:33:13.501Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#loadEngines: start"
[task 2023-03-08T22:33:13.502Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngineSelector: "fetchEngineConfiguration en-US:default:default:::XPCShell:42"
[task 2023-03-08T22:33:13.502Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngineSelector: "fetchEngineConfiguration: google@search.mozilla.org,amazondotcom@search.mozilla.org,wikipedia@search.mozilla.org,bing@search.mozilla.org,ddg@search.mozilla.org"
[task 2023-03-08T22:33:13.502Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#loadEnginesFromConfig"
[task 2023-03-08T22:33:13.503Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "_makeEngineFromConfig:" ({params:{searchUrlGetParams:[{name:"client", value:"firefox-b-d"}, {name:"q", value:"{searchTerms}"}]}, schema:1647173200890, extraParams:[{name:"channel", pref:"google_channel_row", condition:"pref"}], telemetryId:"google-b-d", webExtension:{id:"google@search.mozilla.org", locale:"default"}, id:"cb8e7210-9f0b-48fa-8708-b9a03df79eea", last_modified:1647254756387, default:"yes-if-no-other"})
[task 2023-03-08T22:33:13.504Z] 22:33:13     INFO -  PID 9032 | [WARN  rkv::backend::impl_safe::environment] `load_ratio()` is irrelevant for this storage backend.
[task 2023-03-08T22:33:13.504Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#handleIgnoreListUpdated"
[task 2023-03-08T22:33:13.504Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: google@search.mozilla.org"
[task 2023-03-08T22:33:13.504Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2023-03-08T22:33:13.505Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Google" "to" "moz-extension://c6ab9d8a-9218-49e4-b875-e29e69580690/favicon.ico"
[task 2023-03-08T22:33:13.505Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "_makeEngineFromConfig:" ({schema:1673982699337, telemetryId:"amazondotcom", webExtension:{id:"amazondotcom@search.mozilla.org", locale:"default"}, id:"071c671c-7c1b-469d-a771-ab16ff6e8beb", last_modified:1674147734519})
[task 2023-03-08T22:33:13.505Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: amazondotcom@search.mozilla.org"
[task 2023-03-08T22:33:13.506Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2023-03-08T22:33:13.506Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Amazon.com" "to" "moz-extension://ebf6e0e3-818b-46ce-9095-0273d5766258/favicon.ico"
[task 2023-03-08T22:33:13.506Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "_makeEngineFromConfig:" ({schema:1674842123977, webExtension:{id:"wikipedia@search.mozilla.org", locale:"default"}, id:"3f3beb1d-e32e-40a4-b6ed-56741803e1d8", last_modified:1675353179510, telemetryId:(void 0)})
[task 2023-03-08T22:33:13.507Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: wikipedia@search.mozilla.org"
[task 2023-03-08T22:33:13.507Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2023-03-08T22:33:13.507Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Wikipedia (en)" "to" "moz-extension://f3517772-63f7-4731-8e12-30d0d3ecf37c/favicon.ico"
[task 2023-03-08T22:33:13.508Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "_makeEngineFromConfig:" ({params:{searchUrlGetParams:[{name:"pc", value:"MOZI"}, {name:"q", value:"{searchTerms}"}]}, schema:1674751976781, webExtension:{id:"bing@search.mozilla.org", locale:"default"}, id:"7ec766f6-639a-4618-91bc-33eb3d4378c6", last_modified:1675353179505, telemetryId:(void 0)})
[task 2023-03-08T22:33:13.508Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: bing@search.mozilla.org"
[task 2023-03-08T22:33:13.508Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2023-03-08T22:33:13.508Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Bing" "to" "moz-extension://40072b42-926f-452a-ba07-602aea6bd36a/favicon.ico"
[task 2023-03-08T22:33:13.509Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "_makeEngineFromConfig:" ({params:{searchUrlGetParams:[{name:"q", value:"{searchTerms}"}]}, schema:1674147734571, extraParams:[{name:"t", value:"ffab", purpose:"searchbar", condition:"purpose"}], telemetryId:"ddg", webExtension:{id:"ddg@search.mozilla.org", locale:"default"}, id:"c0b26c0e-63e6-4235-b2ce-5f16b6a8bf87", last_modified:1674751976728})
[task 2023-03-08T22:33:13.509Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: ddg@search.mozilla.org"
[task 2023-03-08T22:33:13.510Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2023-03-08T22:33:13.510Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "DuckDuckGo" "to" "moz-extension://42cab16a-c437-46c6-82fe-6358f70c5b0a/favicon.ico"
[task 2023-03-08T22:33:13.510Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#addEngineToStore: Adding engine:" "Google"
[task 2023-03-08T22:33:13.510Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#addEngineToStore: Adding engine:" "Amazon.com"
[task 2023-03-08T22:33:13.511Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#addEngineToStore: Adding engine:" "Wikipedia (en)"
[task 2023-03-08T22:33:13.511Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#addEngineToStore: Adding engine:" "Bing"
[task 2023-03-08T22:33:13.511Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#addEngineToStore: Adding engine:" "DuckDuckGo"
[task 2023-03-08T22:33:13.511Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#loadEngines: loading" 0 "engines reported by AddonManager startup"
[task 2023-03-08T22:33:13.511Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#loadEngines: done"
[task 2023-03-08T22:33:13.512Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "#init: engines loaded, writing settings"
[task 2023-03-08T22:33:13.512Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "Completed #init"
[task 2023-03-08T22:33:13.513Z] 22:33:13     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2023-03-08T22:33:13.513Z] 22:33:13     INFO -  (xpcshell/head.js) | test setup finished (2)
[task 2023-03-08T22:33:13.513Z] 22:33:13     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | Starting test_addingEngine_opensearch
[task 2023-03-08T22:33:13.513Z] 22:33:13     INFO -  (xpcshell/head.js) | test test_addingEngine_opensearch pending (2)
[task 2023-03-08T22:33:13.513Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "addEngine: Adding" "http://localhost:55215/data/engine.xml"
[task 2023-03-08T22:33:13.514Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchService: "init"
[task 2023-03-08T22:33:13.514Z] 22:33:13     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2023-03-08T22:33:13.514Z] 22:33:13     INFO -  PID 9032 | console.debug: OpenSearchEngine: "_install: Downloading engine from:" "http://localhost:55215/data/engine.xml"
[task 2023-03-08T22:33:13.514Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchUtils: "loadListener: Starting request:" "http://localhost:55215/data/engine.xml"
[task 2023-03-08T22:33:13.514Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchUtils: "loadListener: Stopping request:" "http://localhost:55215/data/engine.xml"
[task 2023-03-08T22:33:13.515Z] 22:33:13     INFO -  PID 9032 | console.debug: OpenSearchEngine: "Initing search plugin from" "http://localhost:55215/data/engine.xml"
[task 2023-03-08T22:33:13.515Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Test search engine" "to" "data:image/png;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADs9Pt8xetPtu9FsfFNtu%2BTzvb2%2B%..."
[task 2023-03-08T22:33:13.515Z] 22:33:13     INFO -  PID 9032 | console.debug: SearchUtils: "NOTIFY: Engine:" "Test search engine" "Verb:" "engine-loaded"
[task 2023-03-08T22:33:13.516Z] 22:33:13     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | test_addingEngine_opensearch - [test_addingEngine_opensearch : 226] Should be expecting a notification - 2 > 0
```