Bug: Intermittent [Tier 2] browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | urlbar.picked.searchmode.oneoff must be recorded. - false == true - JS frame::resource://testing-common/TelemetryTestUtils.jsm assertKeyedScalar line 47
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-11-09 05:38:20+00:00
Resolved: 2021-12-07 17:04:09+00:00

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

---
```
[task 2021-11-09T04:37:36.153Z] 04:37:36     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js
[task 2021-11-09T04:37:37.535Z] 04:37:37     INFO - TEST-INFO | started process screenshot
[task 2021-11-09T04:37:37.620Z] 04:37:37     INFO - TEST-INFO | screenshot: exit 0
[task 2021-11-09T04:37:37.625Z] 04:37:37     INFO - Buffered messages logged at 04:37:36
[task 2021-11-09T04:37:37.625Z] 04:37:37     INFO - Entering test bound setup
[task 2021-11-09T04:37:37.626Z] 04:37:37     INFO - Leaving test bound setup
[task 2021-11-09T04:37:37.626Z] 04:37:37     INFO - Entering test bound test_oneoff_remote
[task 2021-11-09T04:37:37.627Z] 04:37:37     INFO - Awaiting for the urlbar panel to open
[task 2021-11-09T04:37:37.627Z] 04:37:37     INFO - Urlbar panel opened
[task 2021-11-09T04:37:37.628Z] 04:37:37     INFO - Enter Search Mode null
[task 2021-11-09T04:37:37.628Z] 04:37:37     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | One-offs are visible - true == true - 
[task 2021-11-09T04:37:37.630Z] 04:37:37     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Found one-off button for search mode - {"engine":{"_name":"browser_urlbar_telemetry urlbarTelemetrySearchSuggestions.xml","_loadPath":"[https]example.com/browserurlbartelemetry-urlbartelemetrysearchsuggestionsxml.xml","description":"","__searchForm":null,"_iconURL":"","_metaData":{"loadPathHash":"o/9oDBKV/OK0Y+8vKqT619gDO7zYnE5O0q8/10PXrvE=","order":1,"alias":"alias"},"_urls":[{"params":[],"rels":[],"template":"http://mochi.test:8888/browser/browser/components/urlbar/tests/browser/urlbarTelemetrySearchSuggestions.sjs?{searchTerms}","type":"application/x-suggestions+json"},{"params":[],"rels":["searchform"],"template":"http://example.com"}],"_isAppProvided":false,"_orderHint":null,"_telemetryId":null,"_updateInterval":null,"_updateURL":null,"_iconUpdateURL":null,"_extensionID":null,"_locale":null,"_definedAliases":[],"_hasPreferredIcon":null},"_inheritedElements":{".button-icon":{}},"initializedAttributeInheritance":true} == true - 
[task 2021-11-09T04:37:37.630Z] 04:37:37     INFO - Console message: [JavaScript Warning: "browser.ui.interaction.nav_bar - The key length must be limited to 72 characters."]
[task 2021-11-09T04:37:37.631Z] 04:37:37     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Urlbar view is still open. - true == true - 
<...>
[task 2021-11-09T04:37:37.671Z] 04:37:37     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | No other urlbar.searchmode scalars should be recorded. Checking touchbar - true == true - 
[task 2021-11-09T04:37:37.671Z] 04:37:37     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | No other urlbar.searchmode scalars should be recorded. Checking typed - true == true - 
[task 2021-11-09T04:37:37.672Z] 04:37:37     INFO - Buffered messages finished
[task 2021-11-09T04:37:37.673Z] 04:37:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | urlbar.picked.searchmode.oneoff must be recorded. - false == true - JS frame :: resource://testing-common/TelemetryTestUtils.jsm :: assertKeyedScalar :: line 47
[task 2021-11-09T04:37:37.673Z] 04:37:37     INFO - Stack trace:
[task 2021-11-09T04:37:37.673Z] 04:37:37     INFO - resource://testing-common/TelemetryTestUtils.jsm:assertKeyedScalar:47
[task 2021-11-09T04:37:37.673Z] 04:37:37     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js:assertSearchModeScalars:73
[task 2021-11-09T04:37:37.673Z] 04:37:37     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js:test_oneoff_local:174
[task 2021-11-09T04:37:37.673Z] 04:37:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-11-09T04:37:37.674Z] 04:37:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Uncaught exception - at resource://testing-common/TelemetryTestUtils.jsm:49 - TypeError: right-hand side of 'in' should be an object, got undefined
[task 2021-11-09T04:37:37.675Z] 04:37:37     INFO - Stack trace:
[task 2021-11-09T04:37:37.675Z] 04:37:37     INFO - assertKeyedScalar@resource://testing-common/TelemetryTestUtils.jsm:49:1
[task 2021-11-09T04:37:37.675Z] 04:37:37     INFO - assertSearchModeScalars@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js:73:24
[task 2021-11-09T04:37:37.675Z] 04:37:37     INFO - test_oneoff_local@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js:174:26
[task 2021-11-09T04:37:37.675Z] 04:37:37     INFO - Leaving test bound test_oneoff_local
[task 2021-11-09T04:37:37.676Z] 04:37:37     INFO - Entering test bound test_oneoff_amazon
[task 2021-11-09T04:37:37.852Z] 04:37:37     INFO - Awaiting for the urlbar panel to open
[task 2021-11-09T04:37:37.885Z] 04:37:37     INFO - Urlbar panel opened
[task 2021-11-09T04:37:37.949Z] 04:37:37     INFO - Enter Search Mode {"engineName":"Amazon.com"}
[task 2021-11-09T04:37:37.959Z] 04:37:37     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | One-offs are visible - true == true - 
[task 2021-11-09T04:37:37.961Z] 04:37:37     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Found one-off button for search mode - {"engine":{"_name":"Amazon.com","_isAppProvided":true,"_metaData":{"order":3}},"_inheritedElements":{".button-icon":{}},"initializedAttributeInheritance":true} == true - 
[task 2021-11-09T04:37:38.051Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Urlbar view is still open. - true == true - 
[task 2021-11-09T04:37:38.055Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Urlbar should never be in search mode without the corresponding attribute. - true == true - 
[task 2021-11-09T04:37:38.056Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | gURLBar.searchMode should exist as expected - true == true - 
[task 2021-11-09T04:37:38.057Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Expected searchMode - {"engineName":"Amazon.com","isGeneralPurposeEngine":false,"isPreview":false,"entry":"oneoff"} deepEqual {"engineName":"Amazon.com","entry":"oneoff","isPreview":false,"isGeneralPurposeEngine":false} - 
[task 2021-11-09T04:37:38.057Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Expected textContent - "Amazon.com" == "Amazon.com" - 
[task 2021-11-09T04:37:38.058Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2021-11-09T04:37:38.059Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Expected textContent - "Amazon.com" == "Amazon.com" - 
[task 2021-11-09T04:37:38.060Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2021-11-09T04:37:38.061Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Expected placeholder l10n when search mode is active - {"args":{"name":"Amazon.com"},"id":"urlbar-placeholder-search-mode-other-engine"} deepEqual {"id":"urlbar-placeholder-search-mode-other-engine","args":{"name":"Amazon.com"}} - 
[task 2021-11-09T04:37:38.062Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | Search mode result matches engine name. - "Amazon.com" == "Amazon.com" - 
[task 2021-11-09T04:37:38.063Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | urlbar.searchmode.oneoff must be recorded. - true == true - 
[task 2021-11-09T04:37:38.063Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | urlbar.searchmode.oneoff must contain the 'Amazon' key. - true == true - 
[task 2021-11-09T04:37:38.064Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | urlbar.searchmode.oneoff['Amazon'] must contain the expected value - 1 == 1 - 
[task 2021-11-09T04:37:38.065Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | No other urlbar.searchmode scalars should be recorded. Checking bookmarkmenu - true == true - 
[task 2021-11-09T04:37:38.066Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | No other urlbar.searchmode scalars should be recorded. Checking handoff - true == true - 
[task 2021-11-09T04:37:38.066Z] 04:37:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | No other urlbar.searchmode scalars should be recorded. Checking keywordoffer - true == true - 
[task 2021-11-09T04:37:38.068Z] 04:37:38     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-11-09T04:37:38.069Z] 04:37:38     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js | This search must only increment one entry in the correct scalar: oneoff - 2 == 1 - JS frame :: chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_searchmode.js :: assertSearchModeScalars :: line 59
```