Bug: Intermittent browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The tab-to-search result is for the first engine. - "MozSearch2" == "MozSearch" - JS frame browser_urlbar_telemetry_tabtosearch.js :: checkForTabToSearchResult
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-08-13 16:44:02+00:00
Resolved: 2022-07-25 23:17:04+00:00

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

---
```
task 2021-08-13T15:51:55.553Z] 15:51:55     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | Popup should be open. - true == true - 
[task 2021-08-13T15:51:55.554Z] 15:51:55     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The second result is a tab-to-search result. - "TabToSearch" == "TabToSearch" - 
[task 2021-08-13T15:51:55.555Z] 15:51:55     INFO - Buffered messages finished
[task 2021-08-13T15:51:55.556Z] 15:51:55     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The tab-to-search result is for the first engine. - "MozSearch2" == "MozSearch" - JS frame :: chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js :: checkForTabToSearchResult :: line 87
[task 2021-08-13T15:51:55.556Z] 15:51:55     INFO - Stack trace:
[task 2021-08-13T15:51:55.556Z] 15:51:55     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js:checkForTabToSearchResult:87
[task 2021-08-13T15:51:55.557Z] 15:51:55     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The tab-to-search result should not be an onboarding result. - true == true - 
[task 2021-08-13T15:51:55.557Z] 15:51:55     INFO - Search for "ex". Only record one impression for this sequence.

[task 2021-08-13T15:51:56.368Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tips must contain the 'tabtosearch-shown' key. - true == true - 
[task 2021-08-13T15:51:56.368Z] 15:51:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-13T15:51:56.368Z] 15:51:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tips['tabtosearch-shown'] must contain the expected value - 2 == 1 - JS frame :: resource://testing-common/TelemetryTestUtils.jsm :: assertKeyedScalar :: line 52
[task 2021-08-13T15:51:56.369Z] 15:51:56     INFO - Stack trace:
[task 2021-08-13T15:51:56.369Z] 15:51:56     INFO - resource://testing-common/TelemetryTestUtils.jsm:assertKeyedScalar:52
[task 2021-08-13T15:51:56.369Z] 15:51:56     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js:impressions_test/<:247
[task 2021-08-13T15:51:56.370Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tabtosearch.impressions must be recorded. - true == true - 
[task 2021-08-13T15:51:56.373Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tabtosearch.impressions must contain the 'other' key. - true == true - 
[task 2021-08-13T15:51:56.373Z] 15:51:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-13T15:51:56.374Z] 15:51:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tabtosearch.impressions['other'] must contain the expected value - 2 == 1 - JS frame :: resource://testing-common/TelemetryTestUtils.jsm :: assertKeyedScalar :: line 52
[task 2021-08-13T15:51:56.374Z] 15:51:56     INFO - Stack trace:
[task 2021-08-13T15:51:56.375Z] 15:51:56     INFO - resource://testing-common/TelemetryTestUtils.jsm:assertKeyedScalar:52
[task 2021-08-13T15:51:56.375Z] 15:51:56     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js:impressions_test/<:253
[task 2021-08-13T15:51:56.375Z] 15:51:56     INFO - Type through autofill to second engine hostname. Record impression.
[task 2021-08-13T15:51:56.431Z] 15:51:56     INFO - GECKO(2709) | [Parent 2709, Main Thread] WARNING: '!mOwner', file /builds/worker/checkouts/gecko/dom/events/Event.cpp:719
[task 2021-08-13T15:51:56.433Z] 15:51:56     INFO - Awaiting for the urlbar panel to open
[task 2021-08-13T15:51:56.489Z] 15:51:56     INFO - Urlbar panel opened
[task 2021-08-13T15:51:56.618Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | Popup should be open. - true == true - 
[task 2021-08-13T15:51:56.626Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The second result is a tab-to-search result. - "TabToSearch" == "TabToSearch" - 
[task 2021-08-13T15:51:56.633Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The tab-to-search result is for the first engine. - "MozSearch" == "MozSearch" - 
[task 2021-08-13T15:51:56.635Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The tab-to-search result should not be an onboarding result. - true == true - 
[task 2021-08-13T15:51:56.890Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | Popup should be open. - true == true - 
[task 2021-08-13T15:51:56.893Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The second result is a tab-to-search result. - "TabToSearch" == "TabToSearch" - 
[task 2021-08-13T15:51:56.895Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The tab-to-search result is for the first engine. - "MozSearch2" == "MozSearch2" - 
[task 2021-08-13T15:51:56.897Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | The tab-to-search result should not be an onboarding result. - true == true - 
[task 2021-08-13T15:51:56.909Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tips must be recorded. - true == true - 
[task 2021-08-13T15:51:56.912Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tips must contain the 'tabtosearch-shown' key. - true == true - 
[task 2021-08-13T15:51:56.917Z] 15:51:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-13T15:51:56.917Z] 15:51:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js | urlbar.tips['tabtosearch-shown'] must contain the expected value - 4 == 3 - JS frame :: resource://testing-common/TelemetryTestUtils.jsm :: assertKeyedScalar :: line 52
[task 2021-08-13T15:51:56.917Z] 15:51:56     INFO - Stack trace:
[task 2021-08-13T15:51:56.917Z] 15:51:56     INFO - resource://testing-common/TelemetryTestUtils.jsm:assertKeyedScalar:52
[task 2021-08-13T15:51:56.918Z] 15:51:56     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js:impressions_test/<:281
[task 2021-08-13T15:51:56.920Z] 15:51:56     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_tabtosearch.js
```