Bug: Intermittent [tier 2] TV browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Should have found the Discovery Stream top sites. - null == true - got null, expected true (operator ==)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-10-27 01:20:27+00:00
Resolved: 2023-10-27 12:02:34+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=356126769&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/L3uYSHjlSyqPiv2DyFEt4g/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/L3uYSHjlSyqPiv2DyFEt4g/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-10-27T00:06:44.713Z] 00:06:44     INFO - TEST-START | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js
[task 2021-10-27T00:06:46.298Z] 00:06:46     INFO - TEST-INFO | started process screentopng
[task 2021-10-27T00:06:46.564Z] 00:06:46     INFO - TEST-INFO | screentopng: exit 0
[task 2021-10-27T00:06:46.565Z] 00:06:46     INFO - Buffered messages logged at 00:06:44
[task 2021-10-27T00:06:46.566Z] 00:06:46     INFO - Entering test bound test_locale_change
[task 2021-10-27T00:06:46.566Z] 00:06:46     INFO - Console message: 1635293204715	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:06:46.569Z] 00:06:46     INFO - Console message: 1635293204716	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:06:46.572Z] 00:06:46     INFO - Console message: 1635293204855	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:06:46.575Z] 00:06:46     INFO - Console message: 1635293204859	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:06:46.578Z] 00:06:46     INFO - Buffered messages logged at 00:06:45
[task 2021-10-27T00:06:46.578Z] 00:06:46     INFO - Simulating restart of the browser
[task 2021-10-27T00:06:46.579Z] 00:06:46     INFO - Simulating shutdown write
[task 2021-10-27T00:06:46.580Z] 00:06:46     INFO - Console message: 1635293205469	AboutHomeStartupCache	TRACE	Never wrote a cache this session. Arming cache task.
[task 2021-10-27T00:06:46.583Z] 00:06:46     INFO - Console message: 1635293205469	AboutHomeStartupCache	TRACE	Finalizing cache task on shutdown
[task 2021-10-27T00:06:46.585Z] 00:06:46     INFO - Console message: 1635293205470	AboutHomeStartupCache	TRACE	Caching now.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205470	AboutHomeStartupCache	TRACE	Parent is requesting Activity Stream state object.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205471	AboutHomeStartupCache	TRACE	Parent is requesting cache streams.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205472	AboutHomeStartupCache	TRACE	Skipping timeout mechanism.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205479	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205481	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205570	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205572	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205578	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205951	AboutHomeStartupCache	TRACE	Parent received cache streams.
[task 2021-10-27T00:06:46.588Z] 00:06:46     INFO - Console message: 1635293205952	AboutHomeStartupCache	TRACE	Got cache streams.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205953	AboutHomeStartupCache	TRACE	Populating cache.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205954	AboutHomeStartupCache	TRACE	Populating the cache. Dooming old entry.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205954	AboutHomeStartupCache	TRACE	Clearing the cache.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205955	AboutHomeStartupCache	TRACE	Opening the page output stream.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205956	AboutHomeStartupCache	INFO	Writing the page cache.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205968	AboutHomeStartupCache	TRACE	Writing the page data is complete. Now opening the script output stream.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205969	AboutHomeStartupCache	INFO	Writing the script cache.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Shutdown write done
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Waiting for AboutHomeStartupCacheChild to uninit
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205979	AboutHomeStartupCache	TRACE	Writing the script cache is done. Setting version.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205986	AboutHomeStartupCache	TRACE	Version is set to 20211026232316.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205986	AboutHomeStartupCache	INFO	Caching of page and script is done.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205987	AboutHomeStartupCache	TRACE	populateCache has finished.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205988	AboutHomeStartupCache	TRACE	Done writing to cache.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205988	AboutHomeStartupCache	TRACE	Done blocking shutdown.
[task 2021-10-27T00:06:46.589Z] 00:06:46     INFO - Console message: 1635293205989	AboutHomeStartupCache	TRACE	onShutdown is exiting
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - Console message: 1635293205989	AboutHomeStartupCache	TRACE	Uninitialized.
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - Buffered messages logged at 00:06:46
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - AboutHomeStartupCacheChild uninitted
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - Waiting for AboutHomeStartupCache cache entry
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - Got AboutHomeStartupCache cache entry
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - Ensuring cache bytes are available
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - Console message: 1635293206003	AboutHomeStartupCache	TRACE	Initting.
[task 2021-10-27T00:06:46.590Z] 00:06:46     INFO - Console message: 1635293206004	AboutHomeStartupCache	TRACE	Constructing pipes.
[task 2021-10-27T00:06:46.591Z] 00:06:46     INFO - Console message: 1635293206004	AboutHomeStartupCache	TRACE	Cache entry is available.
[task 2021-10-27T00:06:46.592Z] 00:06:46     INFO - Console message: 1635293206005	AboutHomeStartupCache	TRACE	Connecting nsICacheEntry to pipes.
[task 2021-10-27T00:06:46.593Z] 00:06:46     INFO - Console message: 1635293206005	AboutHomeStartupCache	TRACE	
[task 2021-10-27T00:06:46.594Z] 00:06:46     INFO - Console message: 1635293206006	AboutHomeStartupCache	INFO	Version retrieved is: 20211026232316
[task 2021-10-27T00:06:46.595Z] 00:06:46     INFO - Console message: 1635293206007	AboutHomeStartupCache	TRACE	Connecting page stream to pipe.
[task 2021-10-27T00:06:46.596Z] 00:06:46     INFO - Console message: 1635293206010	AboutHomeStartupCache	TRACE	Connecting script stream to pipe.
[task 2021-10-27T00:06:46.596Z] 00:06:46     INFO - Console message: 1635293206013	AboutHomeStartupCache	TRACE	Streams connected to pipes.
[task 2021-10-27T00:06:46.597Z] 00:06:46     INFO - Console message: 1635293206013	AboutHomeStartupCache	TRACE	Initialized.
[task 2021-10-27T00:06:46.598Z] 00:06:46     INFO - Console message: 1635293206014	AboutHomeStartupCache	TRACE	A privileged about content process is launching with ID 1.
[task 2021-10-27T00:06:46.598Z] 00:06:46     INFO - Console message: 1635293206015	AboutHomeStartupCache	INFO	Sending input streams down to content process.
[task 2021-10-27T00:06:46.599Z] 00:06:46     INFO - Console message: 1635293206037	AboutHomeStartupCache	INFO	Page stream connected to pipe.
[task 2021-10-27T00:06:46.599Z] 00:06:46     INFO - Console message: 1635293206039	AboutHomeStartupCache	INFO	Script stream connected to pipe.
[task 2021-10-27T00:06:46.600Z] 00:06:46     INFO - Waiting for about:home to load
[task 2021-10-27T00:06:46.601Z] 00:06:46     INFO - Console message: 1635293206201	AboutHomeStartupCache	TRACE	Received usage result. Success = true
[task 2021-10-27T00:06:46.601Z] 00:06:46     INFO - about:home loaded
[task 2021-10-27T00:06:46.602Z] 00:06:46     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | There should be page scripts. - true == true - 
[task 2021-10-27T00:06:46.603Z] 00:06:46     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Found about:home?jscache script tag, indicating the cached doc - "about:home?jscache" == "about:home?jscache" - 
[task 2021-10-27T00:06:46.603Z] 00:06:46     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Should have found window.__FROM_STARTUP_CACHE__ - true == true - 
[task 2021-10-27T00:06:46.604Z] 00:06:46     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Should have found activity-stream class on <body> element - true == true - 
[task 2021-10-27T00:06:46.604Z] 00:06:46     INFO - Buffered messages finished
[task 2021-10-27T00:06:46.605Z] 00:06:46     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Should have found the Discovery Stream top sites. - null == true - got null, expected true (operator ==)
[task 2021-10-27T00:06:46.606Z] 00:06:46     INFO - Stack trace:
[task 2021-10-27T00:06:46.606Z] 00:06:46     INFO - @chrome://mochitests/content/browser/browser/components/newtab/test/browser/abouthomecache/head.js:269:12
[task 2021-10-27T00:06:46.606Z] 00:06:46     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2021-10-27T00:06:46.606Z] 00:06:46     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1656:15
[task 2021-10-27T00:06:46.606Z] 00:06:46     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
[task 2021-10-27T00:06:46.607Z] 00:06:46     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Expected the right value set to browser.startup.abouthome_cache_result scalar. - 6 == 6 - 
```