Bug: Intermittent toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2023-04-25 17:24:43+00:00
Resolved: 2023-05-01 06:31:36+00:00

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

---
```
[task 2023-04-25T17:19:19.340Z] 17:19:19     INFO -  TEST-START | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js
[task 2023-04-25T17:19:19.980Z] 17:19:19  WARNING -  TEST-UNEXPECTED-FAIL | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | xpcshell return code: 0
[task 2023-04-25T17:19:19.980Z] 17:19:19     INFO -  TEST-INFO took 640ms
[task 2023-04-25T17:19:19.981Z] 17:19:19     INFO -  >>>>>>>
[task 2023-04-25T17:19:19.981Z] 17:19:19     INFO -  PID 2136 | [Parent 2136, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:2908
[task 2023-04-25T17:19:19.981Z] 17:19:19     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2023-04-25T17:19:19.981Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2023-04-25T17:19:19.981Z] 17:19:19     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2023-04-25T17:19:19.981Z] 17:19:19     INFO -  running event loop
[task 2023-04-25T17:19:19.982Z] 17:19:19     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | Starting test_onStartup_setExperimentActive_called
[task 2023-04-25T17:19:19.982Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_onStartup_setExperimentActive_called pending (2)
[task 2023-04-25T17:19:19.982Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onStartup_setExperimentActive_called - [test_onStartup_setExperimentActive_called : 45] Sanity check the temporary file doesn't exist. - true == true
[task 2023-04-25T17:19:19.982Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2023-04-25T17:19:19.983Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onStartup_setExperimentActive_called - [test_onStartup_setExperimentActive_called : 34] should call setExperimentActive for active experiment: foo - true == true
[task 2023-04-25T17:19:19.983Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onStartup_setExperimentActive_called - [test_onStartup_setExperimentActive_called : 34] should call setExperimentActive for active experiment: bar - true == true
[task 2023-04-25T17:19:19.984Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onStartup_setExperimentActive_called - [test_onStartup_setExperimentActive_called : 42] should not call setExperimentActive for inactive experiment: baz - false == false
[task 2023-04-25T17:19:19.984Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onStartup_setExperimentActive_called - [test_onStartup_setExperimentActive_called : 42] should not call setExperimentActive for inactive experiment: qux - false == false
[task 2023-04-25T17:19:19.984Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2023-04-25T17:19:19.985Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_onStartup_setExperimentActive_called finished (2)
[task 2023-04-25T17:19:19.985Z] 17:19:19     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | Starting test_onStartup_setRolloutActive_called
[task 2023-04-25T17:19:19.985Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_onStartup_setRolloutActive_called pending (2)
[task 2023-04-25T17:19:19.985Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2023-04-25T17:19:19.986Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onStartup_setRolloutActive_called - [test_onStartup_setRolloutActive_called : 66] should call setExperimentActive for rollout: foo - true == true
[task 2023-04-25T17:19:19.986Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onStartup_setRolloutActive_called - [test_onStartup_setRolloutActive_called : 66] should call setExperimentActive for rollout: bar - true == true
[task 2023-04-25T17:19:19.986Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 2 pending (2)
[task 2023-04-25T17:19:19.986Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_onStartup_setRolloutActive_called finished (2)
[task 2023-04-25T17:19:19.987Z] 17:19:19     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | Starting test_startup_unenroll
[task 2023-04-25T17:19:19.987Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_startup_unenroll pending (2)
[task 2023-04-25T17:19:19.987Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 2 finished (2)
[task 2023-04-25T17:19:19.987Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_startup_unenroll - [test_startup_unenroll : 97] Unenrolled from active experiment if user opt out is true - true == true
[task 2023-04-25T17:19:19.988Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_startup_unenroll - [test_startup_unenroll : 101] Called unenroll for expected recipe - true == true
[task 2023-04-25T17:19:19.988Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 3 pending (2)
[task 2023-04-25T17:19:19.988Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_startup_unenroll finished (2)
[task 2023-04-25T17:19:19.988Z] 17:19:19     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | Starting test_onRecipe_track_slug
[task 2023-04-25T17:19:19.989Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_onRecipe_track_slug pending (2)
[task 2023-04-25T17:19:19.989Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 3 finished (2)
[task 2023-04-25T17:19:19.989Z] 17:19:19     INFO -  PID 2136 | [Parent 2136, Main Thread] WARNING: NSS will be initialized without a profile directory. Some things may not work as expected.: file /builds/worker/checkouts/gecko/security/manager/ssl/nsNSSComponent.cpp:1527
[task 2023-04-25T17:19:19.989Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onRecipe_track_slug - [test_onRecipe_track_slug : 128] should add slug to sessions[test] - true == true
[task 2023-04-25T17:19:19.990Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 4 pending (2)
[task 2023-04-25T17:19:19.990Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_onRecipe_track_slug finished (2)
[task 2023-04-25T17:19:19.990Z] 17:19:19     INFO -  toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | Starting test_onRecipe_enroll
[task 2023-04-25T17:19:19.990Z] 17:19:19     INFO -  (xpcshell/head.js) | test test_onRecipe_enroll pending (2)
[task 2023-04-25T17:19:19.990Z] 17:19:19     INFO -  (xpcshell/head.js) | test run_next_test 4 finished (2)
[task 2023-04-25T17:19:19.991Z] 17:19:19     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onRecipe_enroll - [test_onRecipe_enroll : 147] should call .enroll() the first time a recipe is seen - true == true
[task 2023-04-25T17:19:19.991Z] 17:19:19  WARNING -  TEST-UNEXPECTED-FAIL | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js | test_onRecipe_enroll - [test_onRecipe_enroll : 152] should add recipe to the store - false == true
[task 2023-04-25T17:19:19.991Z] 17:19:19     INFO -  /opt/worker/tasks/task_168244240140081/build/tests/xpcshell/tests/toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js:test_onRecipe_enroll:152
[task 2023-04-25T17:19:19.992Z] 17:19:19     INFO -  /opt/worker/tasks/task_168244240140081/build/tests/xpcshell/head.js:_do_main:238
[task 2023-04-25T17:19:19.992Z] 17:19:19     INFO -  /opt/worker/tasks/task_168244240140081/build/tests/xpcshell/head.js:_execute_test:585
[task 2023-04-25T17:19:19.992Z] 17:19:19     INFO -  -e:null:1
[task 2023-04-25T17:19:19.992Z] 17:19:19     INFO -  exiting test
[task 2023-04-25T17:19:19.992Z] 17:19:19     INFO -  Unexpected exception NS_ERROR_ABORT:
[task 2023-04-25T17:19:19.992Z] 17:19:19     INFO -  _abort_failed_test@/opt/worker/tasks/task_168244240140081/build/tests/xpcshell/head.js:868:20
[task 2023-04-25T17:19:19.993Z] 17:19:19     INFO -  do_report_result@/opt/worker/tasks/task_168244240140081/build/tests/xpcshell/head.js:977:5
[task 2023-04-25T17:19:19.993Z] 17:19:19     INFO -  Assert<@/opt/worker/tasks/task_168244240140081/build/tests/xpcshell/head.js:71:21
[task 2023-04-25T17:19:19.993Z] 17:19:19     INFO -  Assert.prototype.report@resource://testing-common/Assert.sys.mjs:240:10
[task 2023-04-25T17:19:19.993Z] 17:19:19     INFO -  equal@resource://testing-common/Assert.sys.mjs:282:8
[task 2023-04-25T17:19:19.994Z] 17:19:19     INFO -  test_onRecipe_enroll@/opt/worker/tasks/task_168244240140081/build/tests/xpcshell/tests/toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js:152:10
[task 2023-04-25T17:19:19.994Z] 17:19:19     INFO -  _do_main@/opt/worker/tasks/task_168244240140081/build/tests/xpcshell/head.js:238:6
[task 2023-04-25T17:19:19.994Z] 17:19:19     INFO -  _execute_test@/opt/worker/tasks/task_168244240140081/build/tests/xpcshell/head.js:585:5
[task 2023-04-25T17:19:19.994Z] 17:19:19     INFO -  @-e:1:1
[task 2023-04-25T17:19:19.994Z] 17:19:19     INFO -  exiting test
[task 2023-04-25T17:19:19.995Z] 17:19:19     INFO -  PID 2136 | [WARN  glean_core] Shutdown called before Glean is initialized
[task 2023-04-25T17:19:19.995Z] 17:19:19     INFO -  PID 2136 | [Parent 2136, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3426
[task 2023-04-25T17:19:19.995Z] 17:19:19     INFO -  PID 2136 | [Parent 2136, Main Thread] WARNING: OOPDeinit() without successful OOPInit(): file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:3376
[task 2023-04-25T17:19:19.996Z] 17:19:19     INFO -  PID 2136 | [Parent 2136, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4688
[task 2023-04-25T17:19:19.996Z] 17:19:19     INFO -  PID 2136 | [Parent 2136, Main Thread] WARNING: XPCOM object PerThreadData destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:216
[task 2023-04-25T17:19:19.996Z] 17:19:19     INFO -  PID 2136 | [Parent 2136, Main Thread] WARNING: XPCOM object SourceList destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:216
[task 2023-04-25T17:19:19.996Z] 17:19:19     INFO -  <<<<<<<
[task 2023-04-25T17:19:19.997Z] 17:19:19     INFO -  TEST-START | toolkit/components/nimbus/test/unit/test_ExperimentManager_lifecycle.js
```