Bug: Intermittent toolkit/components/nimbus/test/browser/browser_remotesettingsexperimentloader_force_enrollment.js | single tracking bug
Status: REOPENED
Priority: P5
Created: 2024-06-01 13:16:06+00:00
Resolved: 2025-02-17 06:45:10+00:00

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

---
```
[task 2024-06-01T12:44:14.884Z] 12:44:14     INFO - TEST-PASS | toolkit/components/nimbus/test/browser/browser_remotesettingsexperimentloader_force_enrollment.js | forceEnroll is called - true == true - 
[task 2024-06-01T12:44:14.884Z] 12:44:14     INFO - Console message: [JavaScript Error: "Error: An experiment with the slug "slug123" already exists." {file: "resource://nimbus/lib/ExperimentManager.sys.mjs" line: 455}]
[task 2024-06-01T12:44:14.885Z] 12:44:14     INFO - Buffered messages finished
[task 2024-06-01T12:44:14.888Z] 12:44:14     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/nimbus/test/browser/browser_remotesettingsexperimentloader_force_enrollment.js | A promise chain failed to handle a rejection: An experiment with the slug "slug123" already exists. - stack: enroll@resource://nimbus/lib/ExperimentManager.sys.mjs:455:13
[task 2024-06-01T12:44:14.888Z] 12:44:14     INFO - onRecipe@resource://nimbus/lib/ExperimentManager.sys.mjs:238:18
[task 2024-06-01T12:44:14.889Z] 12:44:14     INFO - async*updateRecipes@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:252:30
[task 2024-06-01T12:44:14.889Z] 12:44:14     INFO - async*init@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:170:16
[task 2024-06-01T12:44:14.889Z] 12:44:14     INFO - onEnabledPrefChange@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:449:12
[task 2024-06-01T12:44:14.889Z] 12:44:14     INFO - observe@resource://nimbus/lib/RemoteSettingsExperimentLoader.sys.mjs:455:12
[task 2024-06-01T12:44:14.889Z] 12:44:14     INFO - observe@resource://nimbus/lib/ExperimentManager.sys.mjs:742:18
[task 2024-06-01T12:44:14.890Z] 12:44:14     INFO - _setPref@resource://testing-common/SpecialPowersParent.sys.mjs:553:31
[task 2024-06-01T12:44:14.890Z] 12:44:14     INFO - _applyPrefs@resource://testing-common/SpecialPowersParent.sys.mjs:439:14
[task 2024-06-01T12:44:14.890Z] 12:44:14     INFO - pushPrefEnv/<@resource://testing-common/SpecialPowersParent.sys.mjs:526:34
[task 2024-06-01T12:44:14.891Z] 12:44:14     INFO - doPrefEnvOp@resource://testing-common/SpecialPowersParent.sys.mjs:51:12
[task 2024-06-01T12:44:14.891Z] 12:44:14     INFO - pushPrefEnv@resource://testing-common/SpecialPowersParent.sys.mjs:471:12
[task 2024-06-01T12:44:14.892Z] 12:44:14     INFO - receiveMessage@resource://testing-common/SpecialPowersParent.sys.mjs:963:23
[task 2024-06-01T12:44:14.892Z] 12:44:14     INFO - JSActor query*pushPrefEnv@resource://testing-common/SpecialPowersChild.sys.mjs:847:42
[task 2024-06-01T12:44:14.892Z] 12:44:14     INFO - @chrome://mochitests/content/browser/toolkit/components/nimbus/test/browser/browser_remotesettingsexperimentloader_force_enrollment.js:36:23
[task 2024-06-01T12:44:14.892Z] 12:44:14     INFO - handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-06-01T12:44:14.893Z] 12:44:14     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1182:18
[task 2024-06-01T12:44:14.893Z] 12:44:14     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-06-01T12:44:14.893Z] 12:44:14     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-06-01T12:44:14.893Z] 12:44:14     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-06-01T12:44:14.893Z] 12:44:14     INFO - Rejection date: Sat Jun 01 2024 12:44:14 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":613,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":578,"lineNumber":1167,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":578,"lineNumber":1211,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":578,"lineNumber":1353,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":578,"lineNumber":1128,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":604,"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:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1167:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1167:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}}
[task 2024-06-01T12:44:14.893Z] 12:44:14     INFO - Stack trace:
[task 2024-06-01T12:44:14.894Z] 12:44:14     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-06-01T12:44:14.894Z] 12:44:14     INFO - chrome://mochikit/content/browser-test.js:handleTask:1167
[task 2024-06-01T12:44:14.894Z] 12:44:14     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2024-06-01T12:44:14.894Z] 12:44:14     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2024-06-01T12:44:14.894Z] 12:44:14     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1128
[task 2024-06-01T12:44:14.894Z] 12:44:14     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-06-01T12:44:14.894Z] 12:44:14     INFO - Leaving test bound test_fetch_recipe_and_branch_no_debug
[task 2024-06-01T12:44:14.895Z] 12:44:14     INFO - Entering test bound test_fetch_recipe_and_branch_badslug
[task 2024-06-01T12:44:14.895Z] 12:44:14     INFO - GECKO(10286) | console.debug: RSLoader:
[task 2024-06-01T12:44:14.896Z] 12:44:14     INFO - GECKO(10286) |   Attempting force enrollment with other_slug / control
[task 2024-06-01T12:44:14.896Z] 12:44:14     INFO - TEST-PASS | toolkit/components/nimbus/test/browser/browser_remotesettingsexperimentloader_force_enrollment.js | should throw an error - 
```