Bug: Intermittent xpcshell.toml:toolkit/components/search/tests/xpcshell/test_initialization_with_region.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-02-06 09:54:29+00:00
Resolved: 2024-03-04 12:02:22+00:00

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

---
```
[task 2024-02-06T08:59:50.237Z] 08:59:50     INFO -  TEST-PASS | browser/components/doh/test/unit/test_DNSLookup.js | took 8807ms
[task 2024-02-06T08:59:50.250Z] 08:59:50     INFO -  TEST-START | xpcshell.toml:toolkit/components/search/tests/xpcshell/test_initialization_with_region.js
[task 2024-02-06T09:04:50.258Z] 09:04:50  WARNING -  TEST-UNEXPECTED-TIMEOUT | xpcshell.toml:toolkit/components/search/tests/xpcshell/test_initialization_with_region.js | Test timed out
[task 2024-02-06T09:04:50.260Z] 09:04:50     INFO -  TEST-INFO took 300008ms
[task 2024-02-06T09:04:50.260Z] 09:04:50     INFO -  >>>>>>>
[task 2024-02-06T09:04:50.260Z] 09:04:50     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2024-02-06T09:04:50.260Z] 09:04:50     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2024-02-06T09:04:50.261Z] 09:04:50     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2024-02-06T09:04:50.261Z] 09:04:50     INFO -  running event loop
[task 2024-02-06T09:04:50.261Z] 09:04:50     INFO -  xpcshell.toml:toolkit/components/search/tests/xpcshell/test_initialization_with_region.js | Starting setup
[task 2024-02-06T09:04:50.261Z] 09:04:50     INFO -  (xpcshell/head.js) | test pending (2)
[task 2024-02-06T09:04:50.262Z] 09:04:50     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2024-02-06T09:04:50.262Z] 09:04:50     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2024-02-06T09:04:50.262Z] 09:04:50     INFO -  (xpcshell/head.js) | test finished (2)
[task 2024-02-06T09:04:50.263Z] 09:04:50     INFO -  xpcshell.toml:toolkit/components/search/tests/xpcshell/test_initialization_with_region.js | Starting test_initialization_with_region
[task 2024-02-06T09:04:50.263Z] 09:04:50     INFO -  (xpcshell/head.js) | test test_initialization_with_region pending (2)
[task 2024-02-06T09:04:50.263Z] 09:04:50     INFO -  PID 7056 | console.info: Region.sys.mjs: "_getRegion called"
[task 2024-02-06T09:04:50.263Z] 09:04:50     INFO -  PID 7056 | console.info: Region.sys.mjs: "_getRegion url is: " "http://localhost:57894/fetch_region"
[task 2024-02-06T09:04:50.264Z] 09:04:50     INFO -  PID 7056 | console.info: Region.sys.mjs: "Updating home region:" ""
[task 2024-02-06T09:04:50.264Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "init"
[task 2024-02-06T09:04:50.264Z] 09:04:50     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2024-02-06T09:04:50.265Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\\\Users\\\\task_170720511383594\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-5v60owf3\\\\search.json.mozlz4", (void 0), 245))
[task 2024-02-06T09:04:50.265Z] 09:04:50     INFO -  PID 7056 | console.error: Region.sys.mjs: "Error fetching region" (new Error("TIMEOUT", "resource://gre/modules/Region.sys.mjs", 759))
[task 2024-02-06T09:04:50.266Z] 09:04:50     INFO -  PID 7056 | console.error: Region.sys.mjs: "Failed to fetch region" (new Error("TIMEOUT", "resource://gre/modules/Region.sys.mjs", 411))
[task 2024-02-06T09:04:50.266Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "#handleIgnoreListUpdated"
[task 2024-02-06T09:04:50.266Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchEngineSelector: "fetchEngineConfiguration en-US:default:default:::XPCShell:42"
[task 2024-02-06T09:04:50.266Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchEngineSelector: "fetchEngineConfiguration: engine@search.mozilla.org"
[task 2024-02-06T09:04:50.267Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "#loadEngines: start"
[task 2024-02-06T09:04:50.267Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "#loadEnginesFromConfig"
[task 2024-02-06T09:04:50.268Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "_makeEngineFromConfig:" ({webExtension:{id:"engine@search.mozilla.org", name:"Test search engine", search_url:"https://www.google.com/search", params:[{name:"q", value:"{searchTerms}"}, {name:"channel", condition:"purpose", purpose:"contextmenu", value:"rcs"}, {name:"channel", condition:"purpose", purpose:"keyword", value:"fflb"}], suggest_url:"https://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl={moz:locale}&q={searchTerms}", locale:"default"}, orderHint:30, default:"yes", defaultPrivate:"yes", telemetryId:(void 0)})
[task 2024-02-06T09:04:50.268Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "addEnginesFromExtension: engine@search.mozilla.org"
[task 2024-02-06T09:04:50.268Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2024-02-06T09:04:50.269Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Test search engine" "to" "moz-extension://203544b3-43d4-4d55-83d2-eecb048a08e7/favicon.ico"
[task 2024-02-06T09:04:50.269Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "#addEngineToStore: Adding engine:" "Test search engine"
[task 2024-02-06T09:04:50.269Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "#loadEngines: loading" 0 "engines reported by AddonManager startup"
[task 2024-02-06T09:04:50.269Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "#loadEngines: done"
[task 2024-02-06T09:04:50.270Z] 09:04:50     INFO -  PID 7056 | console.debug: SearchService: "Completed #init"
[task 2024-02-06T09:04:50.270Z] 09:04:50     INFO -  TEST-PASS | xpcshell.toml:toolkit/components/search/tests/xpcshell/test_initialization_with_region.js | test_initialization_with_region - [test_initialization_with_region : 149] Test engine shouldn't be the default anymore - "Test search engine" == "Test search engine"
```