Bug: Intermittent browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Uncaught exception in test - should have the expected keyed scalars - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-03-25 11:23:24+00:00
Resolved: 2022-04-19 17:08:15+00:00

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

---
```
[task 2022-03-25T10:26:32.535Z] 10:26:32     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.urlbar_handoff in scalars and expectedScalars - false == false - 
[task 2022-03-25T10:26:32.536Z] 10:26:32     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.urlbar_searchmode in scalars and expectedScalars - false == false - 
[task 2022-03-25T10:26:32.538Z] 10:26:32     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.webextension in scalars and expectedScalars - false == false - 
[task 2022-03-25T10:26:32.539Z] 10:26:32     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.unknown in scalars and expectedScalars - false == false - 
[task 2022-03-25T10:26:32.540Z] 10:26:32     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://example.com/ad" line: 0}]
[task 2022-03-25T10:26:32.541Z] 10:26:32     INFO - Buffered messages finished
[task 2022-03-25T10:26:32.542Z] 10:26:32     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Uncaught exception in test - should have the expected keyed scalars - timed out after 50 tries.
[task 2022-03-25T10:26:32.543Z] 10:26:32     INFO - Leaving test bound test_track_ad_click_organic
[task 2022-03-25T10:26:32.544Z] 10:26:32     INFO - Entering test bound test_track_ad_click_with_location_change_other_tab
[task 2022-03-25T10:26:32.545Z] 10:26:32     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fcf0db34800 == 1 [pid = 6329] [id = 30]
[task 2022-03-25T10:26:32.546Z] 10:26:32     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fcf29b95bc0) [pid = 6329] [serial = 89] [outer = 0]
[task 2022-03-25T10:26:32.547Z] 10:26:32     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fcf0db34c00) [pid = 6329] [serial = 90] [outer = 7fcf29b95bc0]
[task 2022-03-25T10:26:32.547Z] 10:26:32     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7fcf0db35800) [pid = 6329] [serial = 91] [outer = 7fcf29b95bc0]
[task 2022-03-25T10:26:32.548Z] 10:26:32     INFO - GECKO(6112) | console.debug: SearchTelemetry: "Counting" "example.in-content:sap:ff" "for" "http://mochi.test:8888/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=test&abc=ff"
[task 2022-03-25T10:26:32.549Z] 10:26:32     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fcf0db36c00 == 2 [pid = 6329] [id = 31]
[task 2022-03-25T10:26:32.551Z] 10:26:32     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (7fcf29b95f60) [pid = 6329] [serial = 92] [outer = 0]
[task 2022-03-25T10:26:32.552Z] 10:26:32     INFO - GECKO(6112) | [Child 6355: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f11a4f4c400 == 1 [pid = 6355] [id = 6] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/SearchTelemetry.html]
[task 2022-03-25T10:26:32.553Z] 10:26:32     INFO - GECKO(6112) | [Child 6355: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f11a4f41400 == 0 [pid = 6355] [id = 5] [url = https://example.com/ad]
[task 2022-03-25T10:26:32.554Z] 10:26:32     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (7fcf0db37800) [pid = 6329] [serial = 93] [outer = 7fcf29b95f60]
[task 2022-03-25T10:26:32.557Z] 10:26:32     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "http://mochi.test:8888/browser/browser/components/search/test/browser/SearchTelemetry.html" line: 0}]
[task 2022-03-25T10:26:32.606Z] 10:26:32     INFO - GECKO(6112) | [Child 6355: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (7f11bfd964d0) [pid = 6355] [serial = 20] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/SearchTelemetry.html]
[task 2022-03-25T10:26:33.326Z] 10:26:33     INFO - GECKO(6112) | console.debug: SearchTelemetry: "Counting ads in page for" "example" "tagged" "unknown" "http://mochi.test:8888/browser/browser/components/search/test/browser/searchTelemetryAd.html?s=test&abc=ff"
[task 2022-03-25T10:26:33.415Z] 10:26:33     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should only have one key - 1 == 1 - 
[task 2022-03-25T10:26:33.417Z] 10:26:33     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Histogram should have the expected key: example.in-content:sap:ff - true == true - 
[task 2022-03-25T10:26:33.418Z] 10:26:33     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have counted the correct number of visits for example.in-content:sap:ff - 1 == 1 - 
<...>
[task 2022-03-25T10:26:34.586Z] 10:26:34     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.urlbar_handoff in scalars and expectedScalars - false == false - 
[task 2022-03-25T10:26:34.587Z] 10:26:34     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.urlbar_searchmode in scalars and expectedScalars - false == false - 
[task 2022-03-25T10:26:34.588Z] 10:26:34     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.webextension in scalars and expectedScalars - false == false - 
[task 2022-03-25T10:26:34.590Z] 10:26:34     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.unknown in scalars and expectedScalars - true == true - 
[task 2022-03-25T10:26:34.655Z] 10:26:34     INFO - Leaving test bound test_track_ad_click_with_location_change_other_tab
[task 2022-03-25T10:26:34.743Z] 10:26:34     INFO - GECKO(6112) | MEMORY STAT | vsize 3861MB | residentFast 650MB | heapAllocated 331MB
[task 2022-03-25T10:26:34.745Z] 10:26:34     INFO - TEST-OK | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | took 26867ms
[task 2022-03-25T10:26:34.747Z] 10:26:34     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-03-25T10:26:34.749Z] 10:26:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Found an unexpected tab at the end of test run: https://example.com/ad - 
[task 2022-03-25T10:26:34.802Z] 10:26:34     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fcf0db3bc00 == 3 [pid = 6329] [id = 32]
[task 2022-03-25T10:26:34.803Z] 10:26:34     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (7fcf29b96c10) [pid = 6329] [serial = 95] [outer = 0]
[task 2022-03-25T10:26:34.805Z] 10:26:34     INFO - GECKO(6112) | [Child 6329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (7fcf0db3cc00) [pid = 6329] [serial = 96] [outer = 7fcf29b96c10]
[task 2022-03-25T10:26:34.889Z] 10:26:34     INFO - checking window state
[task 2022-03-25T10:26:35.018Z] 10:26:35     INFO - TEST-START | browser/components/search/test/browser/browser_search_telemetry_sources_navigation.js
```