Bug: Intermittent browser/components/shopping/tests/browser/browser_shopping_onboarding.js | single tracking bug
Status: NEW
Priority: P5
Created: 2023-11-09 03:04:02+00:00
Resolved: 2025-01-27 06:50:10+00:00

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

---
```
[task 2023-11-09T00:54:27.027Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | Global toggle should be activated to open the sidebar on PDPs - 
[task 2023-11-09T00:54:27.029Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | Global toggle should not activate again this session - 
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | Shopping sidebar should not auto-activate if auto-activated previously this session - 
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | Shopping sidebar should not auto-activate if last auto-activation was less than 24 hours ago - 
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | Shopping sidebar should not auto-activate if it has already been auto-activated twice - 
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | Shopping sidebar should auto-activate a second time if all conditions are met - 
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - Leaving test bound test_onboarding_auto_activate_not_now
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - Entering test bound test_hideOnboarding_OptIn_AfterSurveySeen
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - Buffered messages finished
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | opt-in message is shown - false == true - got false, expected true (operator ==)
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - Stack trace:
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - ok@resource://testing-common/SpecialPowersSandbox.sys.mjs:85:21
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - @chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_onboarding.js:609:11
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - async*execute@resource://testing-common/SpecialPowersSandbox.sys.mjs:139:12
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - _spawnTask@resource://testing-common/SpecialPowersChild.sys.mjs:1654:15
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - receiveMessage@resource://testing-common/SpecialPowersChild.sys.mjs:257:21
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - JSActor query*receiveMessage@resource://testing-common/SpecialPowersParent.sys.mjs:1385:14
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - JSActor query*spawn@resource://testing-common/SpecialPowersChild.sys.mjs:1583:17
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - test_hideOnboarding_OptIn_AfterSurveySeen/<@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_onboarding.js:602:27
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - async*test_hideOnboarding_OptIn_AfterSurveySeen@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_onboarding.js:590:26
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1134:26
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1206:18
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1348:14
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1123:14
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2023-11-09T00:54:27.036Z] 00:54:27     INFO - GECKO(2976) | console.error: "Failed to fetch product analysis data" (new Error("request failed", "resource:///actors/ShoppingSidebarChild.sys.mjs", 312))
[task 2023-11-09T00:54:27.037Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | opt-in message is hidden - true == true - 
[task 2023-11-09T00:54:27.043Z] 00:54:27     INFO - GECKO(2976) | [Child 8816, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, NS_OK) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1150
[task 2023-11-09T00:54:27.045Z] 00:54:27     INFO - GECKO(2976) | [Child 8816, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, NS_OK) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1150
[task 2023-11-09T00:54:27.045Z] 00:54:27     INFO - GECKO(2976) | [Child 2612: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (c645800) [pid = 2612] [serial = 14] [outer = 0] [url = about:blank]
[task 2023-11-09T00:54:27.046Z] 00:54:27     INFO - Leaving test bound test_hideOnboarding_OptIn_AfterSurveySeen
[task 2023-11-09T00:54:27.047Z] 00:54:27     INFO - Entering test bound test_deactivate_sidebar_if_user_turns_off_cfr
[task 2023-11-09T00:54:27.047Z] 00:54:27     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | Shopping sidebar should not auto-activate if Recommended features is turned off - 
[task 2023-11-09T00:54:27.048Z] 00:54:27     INFO - Leaving test bound test_deactivate_sidebar_if_user_turns_off_cfr
[task 2023-11-09T00:54:27.503Z] 00:54:27     INFO - GECKO(2976) | MEMORY STAT | vsize 1037MB | vsizeMaxContiguous 1806MB | residentFast 293MB | heapAllocated 121MB
[task 2023-11-09T00:54:27.503Z] 00:54:27     INFO - TEST-OK | browser/components/shopping/tests/browser/browser_shopping_onboarding.js | took 4907ms
[task 2023-11-09T00:54:27.510Z] 00:54:27     INFO - GECKO(2976) | [Child 7368: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL c010400 == 1 [pid = 7368] [id = 8]
[task 2023-11-09T00:54:27.510Z] 00:54:27     INFO - GECKO(2976) | [Child 7368: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (a1c5040) [pid = 7368] [serial = 19] [outer = 0]
[task 2023-11-09T00:54:27.511Z] 00:54:27     INFO - GECKO(2976) | [Child 7368: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (c011600) [pid = 7368] [serial = 20] [outer = a1c5040]
[task 2023-11-09T00:54:27.525Z] 00:54:27     INFO - checking window state
[task 2023-11-09T00:54:27.544Z] 00:54:27     INFO - TEST-START | browser/components/shopping/tests/browser/browser_shopping_settings.js
```