Bug: Intermittent TV toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js | Uncaught exception - at resource://messaging-system/experiments/ExperimentManager.jsm:201 - Error: An experiment with the slug "foo1613658978
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2021-02-18 16:17:52+00:00
Resolved: 2021-04-16 19:24:15+00:00

**Filed by:** smolnar [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=330399646&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/alGIlSdSSI6s1gsqdFGPtQ/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/alGIlSdSSI6s1gsqdFGPtQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
INFO - TEST-START | toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js
[task 2021-02-18T14:36:18.093Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.093Z] 14:36:18     INFO - GECKO(1495) |   Registered update timer
[task 2021-02-18T14:36:18.093Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.093Z] 14:36:18     INFO - GECKO(1495) |   Updating recipes
[task 2021-02-18T14:36:18.508Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.508Z] 14:36:18     INFO - GECKO(1495) |   Updating recipes
[task 2021-02-18T14:36:18.647Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.647Z] 14:36:18     INFO - GECKO(1495) |   Got 2 recipes from Remote Settings
[task 2021-02-18T14:36:18.648Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.648Z] 14:36:18     INFO - GECKO(1495) |   No targeting for recipe, so it matches automatically
[task 2021-02-18T14:36:18.648Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.648Z] 14:36:18     INFO - GECKO(1495) |   1e5c936c-2a20-3748-91cc-9a568f94fbf9 matched
[task 2021-02-18T14:36:18.675Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.675Z] 14:36:18     INFO - GECKO(1495) |   Got 2 recipes from Remote Settings
[task 2021-02-18T14:36:18.675Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.676Z] 14:36:18     INFO - GECKO(1495) |   No targeting for recipe, so it matches automatically
[task 2021-02-18T14:36:18.676Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.676Z] 14:36:18     INFO - GECKO(1495) |   1e5c936c-2a20-3748-91cc-9a568f94fbf9 matched
[task 2021-02-18T14:36:18.676Z] 14:36:18     INFO - GECKO(1495) | console.debug: ExperimentManager:
[task 2021-02-18T14:36:18.685Z] 14:36:18     INFO - GECKO(1495) |   New experiment started: foo1613658978325, control
[task 2021-02-18T14:36:18.685Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.685Z] 14:36:18     INFO - GECKO(1495) |   No targeting for recipe, so it matches automatically
[task 2021-02-18T14:36:18.685Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.685Z] 14:36:18     INFO - GECKO(1495) |   5e1b0029-a95a-b641-948d-3f0fad753e55 matched
[task 2021-02-18T14:36:18.685Z] 14:36:18     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:18.686Z] 14:36:18     INFO - GECKO(1495) |   2 recipes matched. Finalizing ExperimentManager.
[task 2021-02-18T14:36:18.686Z] 14:36:18     INFO - TEST-INFO | started process screencapture
[task 2021-02-18T14:36:18.768Z] 14:36:18     INFO - TEST-INFO | screencapture: exit 0
[task 2021-02-18T14:36:18.768Z] 14:36:18     INFO - Buffered messages logged at 14:36:17
[task 2021-02-18T14:36:18.768Z] 14:36:18     INFO - Entering test bound setup
[task 2021-02-18T14:36:18.768Z] 14:36:18     INFO - Buffered messages logged at 14:36:18
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - Leaving test bound setup
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - Entering test bound test_double_feature_enrollment
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-experiments"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:470:13
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - 
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - Buffered messages finished
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js | Uncaught exception - at resource://messaging-system/experiments/ExperimentManager.jsm:201 - Error: An experiment with the slug "foo1613658978325" already exists.
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - Stack trace:
INFO - enroll@resource://messaging-system/experiments/ExperimentManager.jsm:201:13
[task 2021-02-18T14:36:18.769Z] 14:36:18     INFO - onRecipe@resource://messaging-system/experiments/ExperimentManager.jsm:119:18
[task 2021-02-18T14:36:18.770Z] 14:36:18     INFO - Leaving test bound test_double_feature_enrollment
[task 2021-02-18T14:36:18.770Z] 14:36:18     INFO - Console message: 1613658978658	Toolkit.Telemetry	WARN	TelemetryEnvironment::setExperimentActive - the experiment type was truncated.
[task 2021-02-18T14:36:18.860Z] 14:36:18     INFO - GECKO(1495) | MEMORY STAT | vsize 7645MB | residentFast 275MB | heapAllocated 109MB
[task 2021-02-18T14:36:18.860Z] 14:36:18     INFO - TEST-OK | toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js | took 955ms
[task 2021-02-18T14:36:18.975Z] 14:36:18     INFO - checking window state
[task 2021-02-18T14:36:19.143Z] 14:36:19     INFO - TEST-START | toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js
[task 2021-02-18T14:36:19.299Z] 14:36:19     INFO - GECKO(1495) | console.debug: RSLoader:
[task 2021-02-18T14:36:19.299Z] 14:36:19     INFO - GECKO(1495) |   Updating recipes
[task 2021-02-18T14:36:19.364Z] 14:36:19     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-02-18T14:36:19.364Z] 14:36:19     INFO - Buffered messages logged at 14:36:19
[task 2021-02-18T14:36:19.364Z] 14:36:19     INFO - Entering test bound setup
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - Leaving test bound setup
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - Entering test bound test_double_feature_enrollment
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - Buffered messages finished
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js | Uncaught exception - at resource://testing-common/sinon-7.2.7.js:3605 - TypeError: Attempted to wrap setTimer which is already wrapped
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - Stack trace:
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - checkWrappedMethod@resource://testing-common/sinon-7.2.7.js:3605:21
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3653:31
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - test_double_feature_enrollment@chrome://mochitests/content/browser/toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js:47:11
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1088:34
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - 
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - --------------
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3679:26
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - test_double_feature_enrollment@chrome://mochitests/content/browser/toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js:47:11
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1088:34
[task 2021-02-18T14:36:19.365Z] 14:36:19     INFO - Leaving test bound test_double_feature_enrollment
[task 2021-02-18T14:36:19.627Z] 14:36:19     INFO - GECKO(1495) | MEMORY STAT | vsize 7644MB | residentFast 275MB | heapAllocated 110MB
[task 2021-02-18T14:36:19.627Z] 14:36:19     INFO - TEST-OK | toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js | took 498ms
[task 2021-02-18T14:36:19.737Z] 14:36:19     INFO - checking window state
[task 2021-02-18T14:36:19.926Z] 14:36:19     INFO - TEST-START | toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js```