Bug: Intermittent browser/components/search/test/browser/browser_search_telemetry_sources.js | Uncaught exception - should have the expected keyed scalars - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-06-06 23:41:10+00:00
Resolved: 2022-06-07 17:02:40+00:00

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

---
```
[task 2021-06-06T22:22:24.262Z] 22:22:24     INFO - TEST-START | browser/components/search/test/browser/browser_search_telemetry_sources.js
[task 2021-06-06T22:22:25.159Z] 22:22:25     INFO - GECKO(5924) | -----------------------------------------------------
[task 2021-06-06T22:22:25.159Z] 22:22:25     INFO - GECKO(5924) | Suppressions used:
[task 2021-06-06T22:22:25.160Z] 22:22:25     INFO - GECKO(5924) |   count      bytes template
[task 2021-06-06T22:22:25.162Z] 22:22:25     INFO - GECKO(5924) |      14        448 nsComponentManagerImpl
[task 2021-06-06T22:22:25.164Z] 22:22:25     INFO - GECKO(5924) |       2        288 libfontconfig.so
[task 2021-06-06T22:22:25.165Z] 22:22:25     INFO - GECKO(5924) | -----------------------------------------------------
[task 2021-06-06T22:22:25.421Z] 22:22:25     INFO - GECKO(5924) | console.debug: SearchTelemetry: "Counting" "example.in-content:sap:ff" "for" "https://example.com/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=searchSuggestionfoo&abc=ff"
[task 2021-06-06T22:22:26.440Z] 22:22:26     INFO - GECKO(5924) | console.debug: SearchTelemetry: "Counting ads in page for" "example" "tagged" "urlbar" "https://example.com/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=searchSuggestionfoo&abc=ff"
[task 2021-06-06T22:22:26.618Z] 22:22:26     INFO - GECKO(5924) | console.debug: SearchTelemetry: "Counting ad click in page for" "example" "urlbar" "https://example.com/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=searchSuggestionfoo&abc=ff" "https://example.com/ad"
[task 2021-06-06T22:22:27.964Z] 22:22:27     INFO - GECKO(5924) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-06-06T22:22:27.965Z] 22:22:27     INFO - GECKO(5924) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-06-06T22:22:28.714Z] 22:22:28     INFO - GECKO(5924) | console.debug: SearchTelemetry: "Counting" "example.in-content:sap:ff" "for" "https://example.com/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=searchSuggestion&abc=ff"
[task 2021-06-06T22:22:29.070Z] 22:22:29     INFO - GECKO(5924) | -----------------------------------------------------

[task 2021-06-06T22:22:40.472Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.withads.system in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.475Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.withads.urlbar in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.476Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.withads.urlbar_searchmode in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.477Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.withads.webextension in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.478Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.withads.unknown in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.479Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.about_home in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.479Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.contextmenu in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.480Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.about_newtab in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.481Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.searchbar in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.484Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.system in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.484Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.urlbar in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.485Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.urlbar_searchmode in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.486Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.webextension in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.487Z] 22:22:40     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.adclicks.unknown in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:40.488Z] 22:22:40     INFO - Buffered messages finished
[task 2021-06-06T22:22:40.490Z] 22:22:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_search_telemetry_sources.js | Uncaught exception - should have the expected keyed scalars - timed out after 50 tries.
[task 2021-06-06T22:22:40.490Z] 22:22:40     INFO - Leaving test bound test_source_about_home
[task 2021-06-06T22:22:40.491Z] 22:22:40     INFO - Entering test bound test_source_about_newtab
[task 2021-06-06T22:22:40.492Z] 22:22:40     INFO - GECKO(5924) | Waiting for browser load of about:newtab
[task 2021-06-06T22:22:40.492Z] 22:22:40     INFO - GECKO(5924) | Waiting for browser state change of about:newtab
[task 2021-06-06T22:22:40.493Z] 22:22:40     INFO - GECKO(5924) | Saw state f0001 and status 0
[task 2021-06-06T22:22:40.892Z] 22:22:40     INFO - GECKO(5924) | Saw state c0010 and status 0
[task 2021-06-06T22:22:40.893Z] 22:22:40     INFO - GECKO(5924) | Browser got expected state change about:newtab
[task 2021-06-06T22:22:41.348Z] 22:22:41     INFO - GECKO(5924) | console.debug: SearchTelemetry: "Counting" "example.in-content:sap:ff" "for" "https://example.com/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=test+query&abc=ff"
[task 2021-06-06T22:22:41.461Z] 22:22:41     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "https://example.com/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=test+query&abc=ff" line: 0}]
[task 2021-06-06T22:22:42.332Z] 22:22:42     INFO - GECKO(5924) | console.debug: SearchTelemetry: "Counting ads in page for" "example" "tagged" "about_newtab" "https://example.com/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=test+query&abc=ff"
[task 2021-06-06T22:22:42.362Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should only have one key - 2 == 2 - 
[task 2021-06-06T22:22:42.362Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Histogram should have the expected key: example.in-content:sap:ff - true == true - 
[task 2021-06-06T22:22:42.362Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have counted the correct number of visits for example.in-content:sap:ff - 1 == 1 - 
[task 2021-06-06T22:22:42.363Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Histogram should have the expected key: other-Example.newtab - true == true - 
[task 2021-06-06T22:22:42.363Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have counted the correct number of visits for other-Example.newtab - 1 == 1 - 
[task 2021-06-06T22:22:42.364Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Scalar browser.search.content.about_newtab should have been added. - true == true - 
[task 2021-06-06T22:22:42.364Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have counted the correct number of visits for browser.search.content.about_newtab - {"example:tagged:ff":1} deepEqual {"example:tagged:ff":1} - 
[task 2021-06-06T22:22:42.365Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Scalar browser.search.with_ads should have been added. - true == true - 
[task 2021-06-06T22:22:42.365Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have counted the correct number of visits for browser.search.with_ads - {"example:sap":1} deepEqual {"example:sap":1} - 
[task 2021-06-06T22:22:42.365Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Scalar browser.search.withads.about_newtab should have been added. - true == true - 
[task 2021-06-06T22:22:42.376Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have counted the correct number of visits for browser.search.withads.about_newtab - {"example:tagged":1} deepEqual {"example:tagged":1} - 
[task 2021-06-06T22:22:42.377Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.with_ads in scalars and expectedScalars - true == true - 
[task 2021-06-06T22:22:42.377Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.ad_clicks in scalars and expectedScalars - false == false - 
[task 2021-06-06T22:22:42.377Z] 22:22:42     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources.js | Should have matched browser.search.withads.about_home in scalars and expectedScalars - false == false - 
```