Bug: Intermittent toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_featureIds_is_stored - [test_featureIds_is_stored : 591] experiment is stored - false == true
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-12-16 11:23:49+00:00
Resolved: 2022-01-25 17:03:15+00:00

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

---
```
[task 2021-12-16T10:37:25.845Z] 10:37:25     INFO -  TEST-START | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js
[task 2021-12-16T10:37:32.186Z] 10:37:32  WARNING -  TEST-UNEXPECTED-FAIL | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | xpcshell return code: 0
[task 2021-12-16T10:37:32.187Z] 10:37:32     INFO -  TEST-INFO took 6340ms
[task 2021-12-16T10:37:32.187Z] 10:37:32     INFO -  >>>>>>>
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | getTempFile - [getTempFile : 58] Sanity check the temporary file doesn't exist. - true == true
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  running event loop
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | Starting test_add_to_store
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  (xpcshell/head.js) | test test_add_to_store pending (2)
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_add_to_store - [test_add_to_store : 51] should add an experiment with slug foo - {"slug":"foo","branch":{"slug":"treatment","ratio":1,"features":[{"featureId":"test-feature","value":{"title":"hello","enabled":true}}]},"active":true,"enrollmentId":"e902528e-7513-437d-9574-faa8321e6465","experimentType":"nimbus","isRollout":"undefined","source":"test_add_to_store","userFacingName":"Nimbus recipe","userFacingDescription":"NimbusTestUtils recipe","lastSeen":"2021-12-16T10:37:28.499Z","featureIds":["test-feature"]} == true
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_add_to_store - [test_add_to_store : 52] should choose a branch from the recipe.branches - true == true
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_add_to_store - [test_add_to_store : 56] should set .active = true - true == true
[task 2021-12-16T10:37:32.198Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_add_to_store - [test_add_to_store : 57] should add a valid enrollmentId - true == true
[task 2021-12-16T10:37:32.199Z] 10:37:32     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2021-12-16T10:37:32.199Z] 10:37:32     INFO -  (xpcshell/head.js) | test test_add_to_store finished (2)
[task 2021-12-16T10:37:32.200Z] 10:37:32     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | Starting test_add_rollout_to_store
[task 2021-12-16T10:37:32.200Z] 10:37:32     INFO -  (xpcshell/head.js) | test test_add_rollout_to_store pending (2)
[task 2021-12-16T10:37:32.201Z] 10:37:32     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2021-12-16T10:37:32.202Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_add_rollout_to_store - [test_add_rollout_to_store : 88] Should add an experiment with slug rollout-slug - {"slug":"rollout-slug","branch":{"slug":"treatment","features":[{"featureId":"test-feature","value":{"title":"hello","enabled":true}}]},"active":true,"enrollmentId":"b8424e88-4433-43b6-a84d-6e36c4506522","experimentType":"rollout","isRollout":true,"source":"test_add_rollout_to_store","userFacingName":"Nimbus recipe","userFacingDescription":"NimbusTestUtils recipe","lastSeen":"2021-12-16T10:37:29.164Z","featureIds":["test-feature"]} == true
[task 2021-12-16T10:37:32.202Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_add_rollout_to_store - [test_add_rollout_to_store : 89] should choose a branch from the recipe.branches - true == true
[task 2021-12-16T10:37:32.202Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_add_rollout_to_store - [test_add_rollout_to_store : 93] should have .isRollout - true == true
[task 2021-12-16T10:37:32.203Z] 10:37:32     INFO -  (xpcshell/head.js) | test run_next_test 2 pending (2)
[task 2021-12-16T10:37:32.203Z] 10:37:32     INFO -  (xpcshell/head.js) | test test_add_rollout_to_store finished (2)

[task 2021-12-16T10:37:32.235Z] 10:37:32     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_featuremanifest_enum - [test_featuremanifest_enum : 574] experiment is not stored - true == true
[task 2021-12-16T10:37:32.236Z] 10:37:32     INFO -  (xpcshell/head.js) | test run_next_test 13 pending (2)
[task 2021-12-16T10:37:32.237Z] 10:37:32     INFO -  (xpcshell/head.js) | test test_featuremanifest_enum finished (2)
[task 2021-12-16T10:37:32.237Z] 10:37:32     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | Starting test_featureIds_is_stored
[task 2021-12-16T10:37:32.238Z] 10:37:32     INFO -  (xpcshell/head.js) | test test_featureIds_is_stored pending (2)
[task 2021-12-16T10:37:32.238Z] 10:37:32     INFO -  (xpcshell/head.js) | test run_next_test 13 finished (2)
[task 2021-12-16T10:37:32.239Z] 10:37:32     INFO -  PID 14359 | console.debug: ExperimentManager:
[task 2021-12-16T10:37:32.239Z] 10:37:32     INFO -  PID 14359 |   Skipping enrollment for "featureIds" because there is an existing experiment for this feature.
[task 2021-12-16T10:37:32.240Z] 10:37:32  WARNING -  TEST-UNEXPECTED-FAIL | toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js | test_featureIds_is_stored - [test_featureIds_is_stored : 591] experiment is stored - false == true
[task 2021-12-16T10:37:32.241Z] 10:37:32     INFO -  /builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js:test_featureIds_is_stored:591
[task 2021-12-16T10:37:32.241Z] 10:37:32     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_do_main:240
[task 2021-12-16T10:37:32.241Z] 10:37:32     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_execute_test:604
[task 2021-12-16T10:37:32.242Z] 10:37:32     INFO -  -e:null:1
[task 2021-12-16T10:37:32.242Z] 10:37:32     INFO -  exiting test
[task 2021-12-16T10:37:32.242Z] 10:37:32     INFO -  Unexpected exception NS_ERROR_ABORT:
[task 2021-12-16T10:37:32.243Z] 10:37:32     INFO -  _abort_failed_test@/builds/worker/workspace/build/tests/xpcshell/head.js:875:20
[task 2021-12-16T10:37:32.243Z] 10:37:32     INFO -  do_report_result@/builds/worker/workspace/build/tests/xpcshell/head.js:976:5
[task 2021-12-16T10:37:32.243Z] 10:37:32     INFO -  Assert<@/builds/worker/workspace/build/tests/xpcshell/head.js:75:21
[task 2021-12-16T10:37:32.244Z] 10:37:32     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2021-12-16T10:37:32.244Z] 10:37:32     INFO -  proto.ok@resource://testing-common/Assert.jsm:254:10
[task 2021-12-16T10:37:32.245Z] 10:37:32     INFO -  test_featureIds_is_stored@/builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/nimbus/test/unit/test_ExperimentManager_enroll.js:591:10
[task 2021-12-16T10:37:32.245Z] 10:37:32     INFO -  _do_main@/builds/worker/workspace/build/tests/xpcshell/head.js:240:6
[task 2021-12-16T10:37:32.245Z] 10:37:32     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:604:5
[task 2021-12-16T10:37:32.246Z] 10:37:32     INFO -  @-e:1:1
[task 2021-12-16T10:37:32.246Z] 10:37:32     INFO -  exiting test
[task 2021-12-16T10:37:32.246Z] 10:37:32     INFO -  <<<<<<<
[task 2021-12-16T10:37:32.247Z] 10:37:32     INFO -  TEST-START | toolkit/components/nimbus/test/unit/test_ExperimentAPI.js
[task 2021-12-16T10:37:36.950Z] 10:37:36     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentAPI.js | took 4732ms
[task 2021-12-16T10:37:36.954Z] 10:37:36     INFO -  TEST-START | toolkit/modules/tests/xpcshell/test_Region.js
[task 2021-12-16T10:37:43.080Z] 10:37:43     INFO -  TEST-PASS | toolkit/modules/tests/xpcshell/test_Region.js | took 6126ms
[task 2021-12-16T10:37:43.085Z] 10:37:43     INFO -  INFO | Result summary:
[task 2021-12-16T10:37:43.085Z] 10:37:43     INFO -  INFO | Passed: 541
[task 2021-12-16T10:37:43.087Z] 10:37:43  WARNING -  INFO | Failed: 1
[task 2021-12-16T10:37:43.087Z] 10:37:43  WARNING -  One or more unittests failed.
[task 2021-12-16T10:37:43.087Z] 10:37:43     INFO -  INFO | Todo: 0
[task 2021-12-16T10:37:43.088Z] 10:37:43     INFO -  INFO | Retried: 4
[task 2021-12-16T10:37:43.088Z] 10:37:43     INFO -  SUITE-END | took 1168s
[task 2021-12-16T10:37:43.092Z] 10:37:43     INFO -  Node moz-http2 server shutting down ...
[task 2021-12-16T10:37:43.092Z] 10:37:43     INFO -  http3Server server shutting down ...
[task 2021-12-16T10:37:43.233Z] 10:37:43    ERROR - Return code: 1
```