Bug: Intermittent toolkit/components/search/tests/xpcshell/test_searchSuggest.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-08-31 18:38:35+00:00
Resolved: 2023-10-30 12:01:41+00:00

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

---
```
[task 2022-08-31T18:13:13.744Z] 18:13:13     INFO -  TEST-START | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js
[task 2022-08-31T18:13:25.698Z] 18:13:25  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | xpcshell return code: 0
[task 2022-08-31T18:13:25.698Z] 18:13:25     INFO -  TEST-INFO took 11953ms
[task 2022-08-31T18:13:25.698Z] 18:13:25     INFO -  >>>>>>>
[task 2022-08-31T18:13:25.698Z] 18:13:25     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-08-31T18:13:25.698Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2022-08-31T18:13:25.698Z] 18:13:25     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2022-08-31T18:13:25.703Z] 18:13:25     INFO -  running event loop
[task 2022-08-31T18:13:25.704Z] 18:13:25     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | Starting setup
[task 2022-08-31T18:13:25.704Z] 18:13:25     INFO -  (xpcshell/head.js) | test setup pending (2)
[task 2022-08-31T18:13:25.704Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2022-08-31T18:13:25.706Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2022-08-31T18:13:25.710Z] 18:13:25     INFO -  (xpcshell/head.js) | test setup finished (2)
[task 2022-08-31T18:13:25.711Z] 18:13:25     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | Starting add_test_engines
[task 2022-08-31T18:13:25.711Z] 18:13:25     INFO -  (xpcshell/head.js) | test add_test_engines pending (2)
[task 2022-08-31T18:13:25.711Z] 18:13:25     INFO -  PID 10480 | console.debug: SearchService: "addEngine: Adding" "http://localhost:34926/data/engineMaker.sjs?{\"baseURL\":\"http://localhost:34926/data/\",\"name\":\"GET suggestion engine\",\"method\":\"GET\"}"
[task 2022-08-31T18:13:25.712Z] 18:13:25     INFO -  PID 10480 | console.debug: SearchService: "init"
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  PID 10480 | console.info: Region.jsm: "_getRegion called"
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  PID 10480 | console.info: Region.jsm: "_getRegion url is: " ""
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  PID 10480 | console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/xpc-profile-3o4o5n7y/search.json.mozlz4", (void 0), 238))
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  PID 10480 | console.debug: SearchService: "#loadEngines: start"
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  PID 10480 | console.debug: SearchService: "#handleIgnoreListUpdated"
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  PID 10480 | console.debug: SearchEngineSelector: "fetchEngineConfiguration en-US:default:default:::XPCShell:42"
[task 2022-08-31T18:13:25.713Z] 18:13:25     INFO -  PID 10480 | 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 2022-08-31T18:13:25.714Z] 18:13:25     INFO -  PID 10480 | console.debug: SearchService: "#loadEnginesFromConfig"
<...>
[task 2022-08-31T18:13:25.774Z] 18:13:25     INFO -  PID 10480 | console.debug: SearchUtils: "NOTIFY: Engine:" "Alternative JSON suggestion type" "Verb:" "engine-added"
[task 2022-08-31T18:13:25.775Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 2 pending (2)
[task 2022-08-31T18:13:25.776Z] 18:13:25     INFO -  (xpcshell/head.js) | test add_test_engines finished (2)
[task 2022-08-31T18:13:25.776Z] 18:13:25     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | Starting simple_no_result_callback
[task 2022-08-31T18:13:25.777Z] 18:13:25     INFO -  (xpcshell/head.js) | test simple_no_result_callback pending (2)
[task 2022-08-31T18:13:25.778Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 2 finished (2)
[task 2022-08-31T18:13:25.778Z] 18:13:25     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "XML Parsing Error: syntax error
[task 2022-08-31T18:13:25.779Z] 18:13:25     INFO -  Location: http://localhost:34926/data/searchSuggestions.sjs?q=no+remote
[task 2022-08-31T18:13:25.780Z] 18:13:25     INFO -  Line Number 1, Column 1:" {file: "http://localhost:34926/data/searchSuggestions.sjs?q=no+remote" line: 1 column: 1 source: "["no remote",[]]"}]"
[task 2022-08-31T18:13:25.780Z] 18:13:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | simple_no_result_callback - [simple_no_result_callback : 106] "no remote" == "no remote"
[task 2022-08-31T18:13:25.781Z] 18:13:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | simple_no_result_callback - [simple_no_result_callback : 107] 0 == 0
[task 2022-08-31T18:13:25.781Z] 18:13:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | simple_no_result_callback - [simple_no_result_callback : 108] 0 == 0
[task 2022-08-31T18:13:25.782Z] 18:13:25     INFO -  "Checking latency snapshot: {"other":{"bucket_count":50,"histogram_type":0,"sum":33,"range":[1,30000],"values":{"24":0,"29":1,"35":0}}}"
[task 2022-08-31T18:13:25.783Z] 18:13:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | simple_no_result_callback - [simple_no_result_callback : 962] Latency histogram updated - {"other":[1]} deepEqual {"other":[1]}
[task 2022-08-31T18:13:25.783Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 3 pending (2)
[task 2022-08-31T18:13:25.783Z] 18:13:25     INFO -  (xpcshell/head.js) | test simple_no_result_callback finished (2)
[task 2022-08-31T18:13:25.784Z] 18:13:25     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | Starting simple_no_result_callback_and_promise
[task 2022-08-31T18:13:25.784Z] 18:13:25     INFO -  (xpcshell/head.js) | test simple_no_result_callback_and_promise pending (2)
[task 2022-08-31T18:13:25.785Z] 18:13:25     INFO -  (xpcshell/head.js) | test run_next_test 3 finished (2)
[task 2022-08-31T18:13:25.785Z] 18:13:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | simple_no_result_callback_and_promise - [simple_no_result_callback_and_promise : 126] "no results" == "no results"
[task 2022-08-31T18:13:25.786Z] 18:13:25     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | simple_no_result_callback_and_promise - [simple_no_result_callback_and_promise : 127] 0 == 0
<...>
[task 2022-08-31T18:13:26.107Z] 18:13:26     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | http_500 - [http_500 : 962] Latency histogram updated - {"other":[1]} deepEqual {"other":[1]}
[task 2022-08-31T18:13:26.107Z] 18:13:26     INFO -  (xpcshell/head.js) | test run_next_test 40 pending (2)
[task 2022-08-31T18:13:26.108Z] 18:13:26     INFO -  (xpcshell/head.js) | test http_500 finished (2)
[task 2022-08-31T18:13:26.108Z] 18:13:26     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "XML Parsing Error: syntax error
[task 2022-08-31T18:13:26.109Z] 18:13:26     INFO -  Location: http://localhost:34926/data/searchSuggestions.sjs?q=HTTP+500
[task 2022-08-31T18:13:26.109Z] 18:13:26     INFO -  Line Number 1, Column 1:" {file: "http://localhost:34926/data/searchSuggestions.sjs?q=HTTP+500" line: 1 column: 1 source: "["HTTP 500",["HTTP 500"]]"}]"
[task 2022-08-31T18:13:26.110Z] 18:13:26     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | Starting unresolvable_server
[task 2022-08-31T18:13:26.110Z] 18:13:26     INFO -  (xpcshell/head.js) | test unresolvable_server pending (2)
[task 2022-08-31T18:13:26.111Z] 18:13:26     INFO -  (xpcshell/head.js) | test run_next_test 40 finished (2)
[task 2022-08-31T18:13:26.111Z] 18:13:26     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | unresolvable_server - [unresolvable_server : 845] "Unresolvable Server" == "Unresolvable Server"
[task 2022-08-31T18:13:26.111Z] 18:13:26     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | unresolvable_server - [unresolvable_server : 846] 1 == 1
[task 2022-08-31T18:13:26.112Z] 18:13:26     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | unresolvable_server - [unresolvable_server : 847] "Unresolvable Server Entry" == "Unresolvable Server Entry"
[task 2022-08-31T18:13:26.112Z] 18:13:26     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | unresolvable_server - [unresolvable_server : 848] 0 == 0
[task 2022-08-31T18:13:26.113Z] 18:13:26     INFO -  "Checking latency snapshot: {}"
[task 2022-08-31T18:13:26.113Z] 18:13:26  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_searchSuggest.js | unresolvable_server - [unresolvable_server : 962] Latency histogram updated - {} deepEqual {"other":[1]}
[task 2022-08-31T18:13:26.114Z] 18:13:26     INFO -  /builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/search/tests/xpcshell/test_searchSuggest.js:assertLatencyHistogram:962
[task 2022-08-31T18:13:26.114Z] 18:13:26     INFO -  /builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/search/tests/xpcshell/test_searchSuggest.js:unresolvable_server:852
[task 2022-08-31T18:13:26.115Z] 18:13:26     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_do_main:238
[task 2022-08-31T18:13:26.115Z] 18:13:26     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_execute_test:595
[task 2022-08-31T18:13:26.116Z] 18:13:26     INFO -  -e:null:1
[task 2022-08-31T18:13:26.116Z] 18:13:26     INFO -  exiting test
[task 2022-08-31T18:13:26.116Z] 18:13:26     INFO -  Unexpected exception NS_ERROR_ABORT:
[task 2022-08-31T18:13:26.117Z] 18:13:26     INFO -  _abort_failed_test@/builds/worker/workspace/build/tests/xpcshell/head.js:873:20
[task 2022-08-31T18:13:26.117Z] 18:13:26     INFO -  do_report_result@/builds/worker/workspace/build/tests/xpcshell/head.js:974:5
[task 2022-08-31T18:13:26.118Z] 18:13:26     INFO -  Assert<@/builds/worker/workspace/build/tests/xpcshell/head.js:73:21
[task 2022-08-31T18:13:26.118Z] 18:13:26     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2022-08-31T18:13:26.118Z] 18:13:26     INFO -  deepEqual@resource://testing-common/Assert.jsm:305:8
[task 2022-08-31T18:13:26.119Z] 18:13:26     INFO -  assertLatencyHistogram@/builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/search/tests/xpcshell/test_searchSuggest.js:962:10
[task 2022-08-31T18:13:26.119Z] 18:13:26     INFO -  unresolvable_server@/builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/search/tests/xpcshell/test_searchSuggest.js:852:27
[task 2022-08-31T18:13:26.120Z] 18:13:26     INFO -  _do_main@/builds/worker/workspace/build/tests/xpcshell/head.js:238:6
[task 2022-08-31T18:13:26.120Z] 18:13:26     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:595:5
[task 2022-08-31T18:13:26.121Z] 18:13:26     INFO -  @-e:1:1
[task 2022-08-31T18:13:26.121Z] 18:13:26     INFO -  exiting test
[task 2022-08-31T18:13:26.121Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "init"
[task 2022-08-31T18:13:26.122Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "#saveSortedEngineList"
[task 2022-08-31T18:13:26.122Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "#buildSortedEngineList: using saved order"
[task 2022-08-31T18:13:26.123Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "#saveSortedEngineList"
[task 2022-08-31T18:13:26.123Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchUtils: "NOTIFY: Engine:" "Alternative JSON suggestion type" "Verb:" "engine-removed"
[task 2022-08-31T18:13:26.123Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "init"
[task 2022-08-31T18:13:26.124Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "#saveSortedEngineList"
[task 2022-08-31T18:13:26.124Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchUtils: "NOTIFY: Engine:" "Offline suggestion engine" "Verb:" "engine-removed"
[task 2022-08-31T18:13:26.125Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "init"
[task 2022-08-31T18:13:26.125Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "#saveSortedEngineList"
[task 2022-08-31T18:13:26.125Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchUtils: "NOTIFY: Engine:" "POST suggestion engine" "Verb:" "engine-removed"
[task 2022-08-31T18:13:26.126Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "init"
[task 2022-08-31T18:13:26.126Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchService: "#saveSortedEngineList"
[task 2022-08-31T18:13:26.126Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchUtils: "NOTIFY: Engine:" "GET suggestion engine" "Verb:" "engine-removed"
[task 2022-08-31T18:13:26.127Z] 18:13:26     INFO -  "Force a GC"
[task 2022-08-31T18:13:26.127Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchSettings: "batchTask: Invalidating engine settings"
[task 2022-08-31T18:13:26.128Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchSettings: "_write: Writing to settings file."
[task 2022-08-31T18:13:26.128Z] 18:13:26     INFO -  PID 10480 | console.debug: SearchSettings: "_write: settings file written to disk."
[task 2022-08-31T18:13:26.129Z] 18:13:26     INFO -  PID 10480 | (xpcshell:10480): GLib-GObject-WARNING **: 18:13:25.654: invalid (NULL) pointer instance
[task 2022-08-31T18:13:26.129Z] 18:13:26     INFO -  PID 10480 | (xpcshell:10480): GLib-GObject-CRITICAL **: 18:13:25.654: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[task 2022-08-31T18:13:26.129Z] 18:13:26     INFO -  <<<<<<<
[task 2022-08-31T18:13:26.130Z] 18:13:26     INFO -  TEST-START | security/manager/ssl/tests/unit/test_ct.js
```