Bug: Intermittent browser/components/newtab/test/browser/browser_asrouter_group_frequency.js | Uncaught exception - Message frequency limit should be reached - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-06-02 22:59:30+00:00
Resolved: 2023-10-13 12:02:26+00:00

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

---

[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_group_frequency.js | Message found - {"weight":100,"id":"HEARTBEAT_MESSAGE_1591131123602","template":"cfr_urlbar_chiclet","content":{"layout":"chiclet_open_url","category":"cfrHeartbeat","bucket_id":"HEARTBEAT_TACTIC_2","notification_text":"Improve Firefox","active_color":"#595e91","action":{"url":"http://example.com/%VERSION%/","where":"tabshifted"}},"targeting":"true","frequency":{"lifetime":3},"trigger":{"id":"openURL","patterns":["*://*/*"]},"groups":["messaging-experiments","cfr"],"provider":"cfr"} == true - 
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - Buffered messages finished
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_group_frequency.js | Uncaught exception - Message frequency limit should be reached - timed out after 50 tries.
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_group_frequency.js | A promise chain failed to handle a rejection: (intermediate value)[Symbol.iterator]().next().value is undefined - stack: showAddressBarNotifier@resource://activity-stream/lib/CFRPageActions.jsm:162:9
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - async*addRecommendation@resource://activity-stream/lib/CFRPageActions.jsm:1134:36
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - routeMessageToTarget@resource://activity-stream/lib/ASRouter.jsm:1362:26
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - _sendMessageToTarget@resource://activity-stream/lib/ASRouter.jsm:1434:12
[task 2020-06-02T20:52:16.932Z] 20:52:16     INFO - sendTriggerMessage@resource://activity-stream/lib/ASRouter.jsm:2051:16
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - async*onMessage@resource://activity-stream/lib/ASRouter.jsm:2089:20
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - Async*_triggerHandler@resource://activity-stream/lib/ASRouter.jsm:1802:16
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - onLocationChange@resource://activity-stream/lib/ASRouterTriggerListeners.jsm:391:18
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - callListeners@chrome://browser/content/tabbrowser.js:821:31
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - _callProgressListeners@chrome://browser/content/tabbrowser.js:841:22
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - _callProgressListeners@chrome://browser/content/tabbrowser.js:5842:46
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - onLocationChange@chrome://browser/content/tabbrowser.js:6260:14
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - _callProgressListeners@resource://gre/modules/RemoteWebProgress.jsm:75:31
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - onLocationChange@resource://gre/modules/RemoteWebProgress.jsm:119:10
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - Rejection date: Tue Jun 02 2020 20:52:04 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - Stack trace:
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1095
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1104
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:927
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-06-02T20:52:16.933Z] 20:52:16     INFO - Leaving test bound test_heartbeat_tactic_2
[task 2020-06-02T20:52:17.153Z] 20:52:17     INFO - Console message: [JavaScript Error: "Unknown Collection "main/cfr"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 154}]
[task 2020-06-02T20:52:17.153Z] 20:52:17     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:154:5
[task 2020-06-02T20:52:17.153Z] 20:52:17     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:419:13
[task 2020-06-02T20:52:17.153Z] 20:52:17     INFO - async*get@resource://services-settings/RemoteSettingsClient.jsm:356:22
[task 2020-06-02T20:52:17.153Z] 20:52:17     INFO - async*_getRemoteSettingsMessages@resource://activity-stream/lib/ASRouter.jsm:346:35
[task 2020-06-02T20:52:17.153Z] 20:52:17     INFO - _remoteSettingsLoader@resource://activity-stream/lib/ASRouter.jsm:296:45
[task 2020-06-02T20:52:17.153Z] 20:52:17     INFO - _loadDataForProvider@resource://activity-stream/lib/ASRouter.jsm:452:26