Bug: Intermittent toolkit/components/nimbus/test/unit/test_RemoteSettingsExperimentLoader.js | test_optIn_studies_disabled - [test_optIn_studies_disabled : 271] A promise chain failed to handle a rejection: Data is not ready. - stack: get data@JSONFile.jsm
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2022-06-20 18:31:58+00:00
Resolved: 2023-03-20 15:39:38+00:00

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

---
```
[task 2022-06-20T17:07:52.915Z] 17:07:52     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_RemoteSettingsExperimentLoader.js | test_optIn_studies_disabled - [test_optIn_studies_disabled : 1]
[task 2022-06-20T17:07:52.915Z] 17:07:52     INFO -  (xpcshell/head.js) | test run_next_test 12 pending (2)
[task 2022-06-20T17:07:52.915Z] 17:07:52     INFO -  (xpcshell/head.js) | test test_optIn_studies_disabled finished (2)
[task 2022-06-20T17:07:52.915Z] 17:07:52     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "can't access property "length", recipes is undefined" {file: "resource://nimbus/lib/RemoteSettingsExperimentLoader.jsm" line: 209}]
[task 2022-06-20T17:07:52.916Z] 17:07:52     INFO -  updateRecipes@resource://nimbus/lib/RemoteSettingsExperimentLoader.jsm:209:29
[task 2022-06-20T17:07:52.916Z] 17:07:52     INFO -  _do_main@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:240:6
[task 2022-06-20T17:07:52.916Z] 17:07:52     INFO -  _execute_test@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:597:5
[task 2022-06-20T17:07:52.916Z] 17:07:52     INFO -  @-e:1:1
[task 2022-06-20T17:07:52.916Z] 17:07:52     INFO -  "
[task 2022-06-20T17:07:52.917Z] 17:07:52     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB: main/nimbus-desktop-experiments getLastModified() IndexedDB:   The operation failed for reasons unrelated to the database itself and not covered by any other error code." {file: "resource://services-settings/IDBHelpers.jsm" line: 18}]
[task 2022-06-20T17:07:52.917Z] 17:07:52     INFO -  IndexedDBError@resource://services-settings/IDBHelpers.jsm:18:5
[task 2022-06-20T17:07:52.917Z] 17:07:52     INFO -  getLastModified@resource://services-settings/Database.jsm:180:13
[task 2022-06-20T17:07:52.917Z] 17:07:52     INFO -  _do_main@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:240:6
[task 2022-06-20T17:07:52.917Z] 17:07:52     INFO -  _execute_test@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:597:5
[task 2022-06-20T17:07:52.917Z] 17:07:52     INFO -  @-e:1:1
[task 2022-06-20T17:07:52.917Z] 17:07:52     INFO -  "
[task 2022-06-20T17:07:52.918Z] 17:07:52     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "can't access property "length", recipes is undefined" {file: "resource://nimbus/lib/RemoteSettingsExperimentLoader.jsm" line: 209}]
[task 2022-06-20T17:07:52.918Z] 17:07:52     INFO -  updateRecipes@resource://nimbus/lib/RemoteSettingsExperimentLoader.jsm:209:29
[task 2022-06-20T17:07:52.918Z] 17:07:52     INFO -  _do_main@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:240:6
[task 2022-06-20T17:07:52.918Z] 17:07:52     INFO -  _execute_test@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:597:5
[task 2022-06-20T17:07:52.918Z] 17:07:52     INFO -  @-e:1:1
[task 2022-06-20T17:07:52.918Z] 17:07:52     INFO -  "
[task 2022-06-20T17:07:52.919Z] 17:07:52     INFO -  (xpcshell/head.js) | test run_next_test 12 finished (1)
[task 2022-06-20T17:07:52.919Z] 17:07:52     INFO -  exiting test
[task 2022-06-20T17:07:52.919Z] 17:07:52     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB: main/nimbus-desktop-experiments getLastModified() IndexedDB:   The operation failed for reasons unrelated to the database itself and not covered by any other error code." {file: "resource://services-settings/IDBHelpers.jsm" line: 18}]
[task 2022-06-20T17:07:52.919Z] 17:07:52     INFO -  IndexedDBError@resource://services-settings/IDBHelpers.jsm:18:5
[task 2022-06-20T17:07:52.920Z] 17:07:52     INFO -  getLastModified@resource://services-settings/Database.jsm:180:13
[task 2022-06-20T17:07:52.920Z] 17:07:52     INFO -  _do_main@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:240:6
[task 2022-06-20T17:07:52.920Z] 17:07:52     INFO -  _execute_test@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:597:5
[task 2022-06-20T17:07:52.920Z] 17:07:52     INFO -  @-e:1:1
[task 2022-06-20T17:07:52.920Z] 17:07:52     INFO -  "
[task 2022-06-20T17:07:52.920Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, 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:1571
[task 2022-06-20T17:07:52.921Z] 17:07:52     INFO -  PID 1144 | JavaScript error: resource://gre/modules/JSONFile.jsm, line 184: Error: Data is not ready.
[task 2022-06-20T17:07:52.921Z] 17:07:52     INFO -  PID 1144 | JavaScript error: resource://gre/modules/JSONFile.jsm, line 184: Error: Data is not ready.
[task 2022-06-20T17:07:52.921Z] 17:07:52     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Error: Data is not ready." {file: "resource://gre/modules/JSONFile.jsm" line: 184}]"
[task 2022-06-20T17:07:52.921Z] 17:07:52     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Error: Data is not ready." {file: "resource://gre/modules/JSONFile.jsm" line: 184}]"
[task 2022-06-20T17:07:52.922Z] 17:07:52  WARNING -  TEST-UNEXPECTED-FAIL | toolkit/components/nimbus/test/unit/test_RemoteSettingsExperimentLoader.js | test_optIn_studies_disabled - [test_optIn_studies_disabled : 271] A promise chain failed to handle a rejection: Data is not ready. - stack: get data@resource://gre/modules/JSONFile.jsm:184:13
[task 2022-06-20T17:07:52.922Z] 17:07:52     INFO -  set@resource://nimbus/lib/SharedDataMap.jsm:109:5
[task 2022-06-20T17:07:52.922Z] 17:07:52     INFO -  addEnrollment@resource://nimbus/lib/ExperimentStore.jsm:433:10
[task 2022-06-20T17:07:52.922Z] 17:07:52     INFO -  manager/<@resource://testing-common/NimbusTestUtils.jsm:174:14
[task 2022-06-20T17:07:52.922Z] 17:07:52     INFO -  _do_main@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:242:6
[task 2022-06-20T17:07:52.923Z] 17:07:52     INFO -  _execute_test@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:597:5
[task 2022-06-20T17:07:52.923Z] 17:07:52     INFO -  @-e:1:1
[task 2022-06-20T17:07:52.923Z] 17:07:52     INFO -  Rejection date: Mon Jun 20 2022 17:07:52 GMT+0000 (Greenwich Mean Time) - false == true
[task 2022-06-20T17:07:52.923Z] 17:07:52     INFO -  resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-06-20T17:07:52.923Z] 17:07:52     INFO -  Z:\task_165573769462577\build\tests\xpcshell\head.js:_execute_test:598
[task 2022-06-20T17:07:52.923Z] 17:07:52     INFO -  -e:null:1
[task 2022-06-20T17:07:52.924Z] 17:07:52     INFO -  exiting test
[task 2022-06-20T17:07:52.924Z] 17:07:52  WARNING -  TEST-UNEXPECTED-FAIL | toolkit/components/nimbus/test/unit/test_RemoteSettingsExperimentLoader.js | test_optIn_studies_disabled - [test_optIn_studies_disabled : 271] A promise chain failed to handle a rejection: Data is not ready. - stack: get data@resource://gre/modules/JSONFile.jsm:184:13
[task 2022-06-20T17:07:52.924Z] 17:07:52     INFO -  set@resource://nimbus/lib/SharedDataMap.jsm:109:5
[task 2022-06-20T17:07:52.924Z] 17:07:52     INFO -  addEnrollment@resource://nimbus/lib/ExperimentStore.jsm:433:10
[task 2022-06-20T17:07:52.925Z] 17:07:52     INFO -  manager/<@resource://testing-common/NimbusTestUtils.jsm:174:14
[task 2022-06-20T17:07:52.925Z] 17:07:52     INFO -  _do_main@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:242:6
[task 2022-06-20T17:07:52.925Z] 17:07:52     INFO -  _execute_test@Z:\\task_165573769462577\\build\\tests\\xpcshell\\head.js:597:5
[task 2022-06-20T17:07:52.925Z] 17:07:52     INFO -  @-e:1:1
[task 2022-06-20T17:07:52.925Z] 17:07:52     INFO -  Rejection date: Mon Jun 20 2022 17:07:52 GMT+0000 (Greenwich Mean Time) - false == true
[task 2022-06-20T17:07:52.926Z] 17:07:52     INFO -  resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-06-20T17:07:52.926Z] 17:07:52     INFO -  Z:\task_165573769462577\build\tests\xpcshell\head.js:_execute_test:716
[task 2022-06-20T17:07:52.926Z] 17:07:52     INFO -  -e:null:1
[task 2022-06-20T17:07:52.926Z] 17:07:52     INFO -  exiting test
[task 2022-06-20T17:07:52.926Z] 17:07:52     INFO -  PID 1144 | JavaScript error: Z:\task_165573769462577\build\tests\xpcshell\head.js, line 868: NS_ERROR_ABORT:
[task 2022-06-20T17:07:52.926Z] 17:07:52     INFO -  PID 1144 | [2022-06-20T17:07:52Z WARN  glean_core] Shutdown called before Glean is initialized
[task 2022-06-20T17:07:52.927Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, Main Thread] WARNING: A runnable was posted to a worker that is already shutting down!: file /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:1535
[task 2022-06-20T17:07:52.927Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, Main Thread] WARNING: Failed to dispatch offline status change event!: file /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:2012
[task 2022-06-20T17:07:52.927Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-06-20T17:07:52.928Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, Main Thread] WARNING: OOPDeinit() without successful OOPInit(): file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:3428
[task 2022-06-20T17:07:52.928Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4569
[task 2022-06-20T17:07:52.928Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, Main Thread] WARNING: XPCOM object PerThreadData destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:206
[task 2022-06-20T17:07:52.929Z] 17:07:52     INFO -  PID 1144 | [Parent 1144, Main Thread] WARNING: XPCOM object SourceList destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:206
[task 2022-06-20T17:07:52.929Z] 17:07:52     INFO -  <<<<<<<
[task 2022-06-20T17:07:52.932Z] 17:07:52     INFO -  TEST-START | toolkit/components/nimbus/test/unit/test_RemoteSettingsExperimentLoader.js
[task 2022-06-20T17:07:53.820Z] 17:07:53     INFO -  TEST-PASS | toolkit/components/nimbus/test/unit/test_RemoteSettingsExperimentLoader.js | took 889ms
```