Bug: Intermittent toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2023-11-02 19:28:05+00:00
Resolved: 2023-11-06 07:03:29+00:00

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

---
```
[task 2023-11-02T19:00:37.739Z] 19:00:37     INFO - TEST-PASS | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | Sidebar should exist - {} == true - 
[task 2023-11-02T19:00:37.739Z] 19:00:37     INFO - Waiting for sidebar to update.
[task 2023-11-02T19:00:37.740Z] 19:00:37     INFO - Waiting for product to be updated. Document: about:shoppingsidebar
[task 2023-11-02T19:00:37.741Z] 19:00:37     INFO - Sidebar updated for product: {"adsEnabled":true,"adsEnabledByUser":true,"showOnboarding":false,"data":null,"recommendationData":null}
[task 2023-11-02T19:00:37.741Z] 19:00:37     INFO - Buffered messages logged at 19:00:24
[task 2023-11-02T19:00:37.742Z] 19:00:37     INFO - Sidebar updated for product: {"adsEnabled":true,"adsEnabledByUser":true,"showOnboarding":false,"data":{"needs_analysis":false,"grade":"B","adjusted_rating":4.1},"productUrl":"https://example.com/Some-Product/dp/ABCDEFG123","isAnalysisInProgress":false}
[task 2023-11-02T19:00:37.742Z] 19:00:37     INFO - Buffered messages finished
[task 2023-11-02T19:00:37.746Z] 19:00:37     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | We haven't seend the ad yet - false == true - {"filename":"chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js","name":"test_ad_attribution/<","sourceId":625,"lineNumber":183,"columnNumber":12,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"resource://testing-common/BrowserTestUtils.sys.mjs","name":"withNewTab","sourceId":587,"lineNumber":146,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js","name":"test_ad_attribution","sourceId":625,"lineNumber":53,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":552,"lineNumber":1134,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":552,"lineNumber":1206,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":552,"lineNumber":1348,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":552,"lineNumber":1123,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":581,"lineNumber":1058,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1123:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1348:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1123:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1206:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1348:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1123:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1134:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1206:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1348:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1123:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*test_ad_attribution@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:53:26\nhandleTask@chrome://mochikit/content/browser-test.js:1134:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1206:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1348:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1123:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22\nasync*test_ad_attribution@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:53:26\nhandleTask@chrome://mochikit/content/browser-test.js:1134:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1206:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1348:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1123:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"test_ad_attribution/<@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:183:12\nasync*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22\nasync*test_ad_attribution@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:53:26\nhandleTask@chrome://mochikit/content/browser-test.js:1134:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1206:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1348:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1123:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}}
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - Stack trace:
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:test_ad_attribution/<:183
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:146
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:test_ad_attribution:53
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - chrome://mochikit/content/browser-test.js:handleTask:1134
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1206
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1348
[task 2023-11-02T19:00:37.747Z] 19:00:37     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1123
[task 2023-11-02T19:00:37.748Z] 19:00:37     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2023-11-02T19:00:37.922Z] 19:00:37     INFO - Waiting for ad impression event.
[task 2023-11-02T19:01:46.280Z] 19:01:46     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-11-02T19:01:46.280Z] 19:01:46     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | Test timed out - 
```