Bug: Intermittent services/sync/tests/unit/test_extension_storage_engine.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2025-01-21 19:18:02+00:00
Resolved: 2025-02-17 12:05:50+00:00

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

---
```
[task 2025-01-21T18:54:35.519Z] 18:54:35     INFO -  TEST-PASS | toolkit/modules/tests/xpcshell/test_Region_geocoding.js | took 87759ms
[task 2025-01-21T18:54:35.534Z] 18:54:35     INFO -  Retrying tests that failed when run in parallel.
[task 2025-01-21T18:54:35.535Z] 18:54:35     INFO -  TEST-START | dom/streams/test/xpcshell/large-pipeto.js
[task 2025-01-21T18:54:35.535Z] 18:54:35     INFO -  TEST-SKIP | dom/streams/test/xpcshell/large-pipeto.js | took 0ms
[task 2025-01-21T18:54:35.542Z] 18:54:35     INFO -  TEST-START | services/sync/tests/unit/test_extension_storage_engine.js
[task 2025-01-21T18:54:37.504Z] 18:54:37  WARNING -  TEST-UNEXPECTED-FAIL | services/sync/tests/unit/test_extension_storage_engine.js | xpcshell return code: 2147483651
[task 2025-01-21T18:54:37.504Z] 18:54:37     INFO -  TEST-INFO took 1962ms
[task 2025-01-21T18:54:37.504Z] 18:54:37     INFO -  >>>>>>>
[task 2025-01-21T18:54:37.506Z] 18:54:37     INFO -  PID 9452 | [Parent 8124, Main Thread] WARNING: Failed to get directory to cache.: file /builds/worker/checkouts/gecko/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp:148
[task 2025-01-21T18:54:37.506Z] 18:54:37     INFO -  PID 9452 | [Parent 8124, Main Thread] WARNING: Failed to get directory to cache.: file /builds/worker/checkouts/gecko/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp:148
[task 2025-01-21T18:54:37.507Z] 18:54:37     INFO -  PID 9452 | [Parent 8124, 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:2895
[task 2025-01-21T18:54:37.507Z] 18:54:37     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2025-01-21T18:54:37.507Z] 18:54:37     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2025-01-21T18:54:37.508Z] 18:54:37     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2025-01-21T18:54:37.508Z] 18:54:37     INFO -  running event loop
[task 2025-01-21T18:54:37.508Z] 18:54:37     INFO -  services/sync/tests/unit/test_extension_storage_engine.js | Starting setup head_setup
[task 2025-01-21T18:54:37.508Z] 18:54:37     INFO -  (xpcshell/head.js) | test head_setup pending (2)
[task 2025-01-21T18:54:37.509Z] 18:54:37     INFO -  PID 9452 | 1737485676268	Sync.Status	INFO	Resetting Status.
[task 2025-01-21T18:54:37.509Z] 18:54:37     INFO -  PID 9452 | 1737485676268	Sync.Status	DEBUG	Status.service: undefined => success.status_ok
[task 2025-01-21T18:54:37.509Z] 18:54:37     INFO -  PID 9452 | 1737485676274	FirefoxAccounts	TRACE	initializing new storage manager
[task 2025-01-21T18:54:37.509Z] 18:54:37     INFO -  PID 9452 | 1737485676274	FirefoxAccounts	TRACE	starting fetch of json user data
[task 2025-01-21T18:54:37.510Z] 18:54:37     INFO -  PID 9452 | 1737485676281	Sync.SyncScheduler	TRACE	Setting SyncScheduler policy values to defaults.
[task 2025-01-21T18:54:37.510Z] 18:54:37     INFO -  PID 9452 | 1737485676281	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
[task 2025-01-21T18:54:37.510Z] 18:54:37     INFO -  PID 9452 | 1737485676283	Sync.Status	DEBUG	Status.login: success.login => error.login.reason.no_username
[task 2025-01-21T18:54:37.511Z] 18:54:37     INFO -  PID 9452 | 1737485676283	Sync.Status	DEBUG	Status.service: success.status_ok => service.client_not_configured
[task 2025-01-21T18:54:37.511Z] 18:54:37     INFO -  PID 9452 | 1737485676283	Sync.Status	DEBUG	Status.service: service.client_not_configured => service.client_not_configured
[task 2025-01-21T18:54:37.511Z] 18:54:37     INFO -  PID 9452 | 1737485676284	Sync.Service	INFO	Loading Weave 1.130.0
[task 2025-01-21T18:54:37.512Z] 18:54:37     INFO -  PID 9452 | 1737485676287	Sync.Engine.Clients	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.512Z] 18:54:37     INFO -  PID 9452 | 1737485676291	Sync.Engine.Clients	DEBUG	Resetting clients last sync time
[task 2025-01-21T18:54:37.512Z] 18:54:37     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2025-01-21T18:54:37.512Z] 18:54:37     INFO -  PID 9452 | 1737485676304	Sync.Engine.Addons	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.513Z] 18:54:37     INFO -  PID 9452 | 1737485676307	FirefoxAccounts	TRACE	initializing of new storage manager done
[task 2025-01-21T18:54:37.513Z] 18:54:37     INFO -  PID 9452 | 1737485676309	Sync.Engine.Addons	DEBUG	SyncEngine initialized: addons
[task 2025-01-21T18:54:37.514Z] 18:54:37     INFO -  PID 9452 | 1737485676309	Sync.AddonsReconciler	TRACE	Loading json from disk: C:\\Users\\task_173748285400223\\AppData\\Local\\Temp\\xpc-profile-nhjd4b0d\\weave\\addonsreconciler.json
[task 2025-01-21T18:54:37.514Z] 18:54:37     INFO -  PID 9452 | 1737485676310	Sync.AddonsReconciler	DEBUG	No data seen in loaded file: addonsreconciler
[task 2025-01-21T18:54:37.514Z] 18:54:37     INFO -  PID 9452 | 1737485676321	Sync.Engine.Passwords	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.515Z] 18:54:37     INFO -  PID 9452 | 1737485676323	Sync.Engine.Passwords	DEBUG	SyncEngine initialized: passwords
[task 2025-01-21T18:54:37.515Z] 18:54:37     INFO -  PID 9452 | 1737485676327	Sync.Engine.Prefs	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.515Z] 18:54:37     INFO -  PID 9452 | 1737485676329	Sync.Engine.Prefs	DEBUG	SyncEngine initialized: prefs
[task 2025-01-21T18:54:37.515Z] 18:54:37     INFO -  PID 9452 | 1737485676337	Sync.Engine.Bookmarks	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.516Z] 18:54:37     INFO -  PID 9452 | 1737485676340	Sync.Engine.Bookmarks	DEBUG	SyncEngine initialized: bookmarks
[task 2025-01-21T18:54:37.516Z] 18:54:37     INFO -  PID 9452 | 1737485676344	Sync.Engine.Forms	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.516Z] 18:54:37     INFO -  PID 9452 | 1737485676346	Sync.Engine.Forms	DEBUG	SyncEngine initialized: forms
[task 2025-01-21T18:54:37.516Z] 18:54:37     INFO -  PID 9452 | 1737485676351	Sync.Engine.History	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.517Z] 18:54:37     INFO -  PID 9452 | 1737485676354	Sync.Engine.History	DEBUG	SyncEngine initialized: history
[task 2025-01-21T18:54:37.517Z] 18:54:37     INFO -  PID 9452 | 1737485676359	Sync.Engine.Tabs	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.517Z] 18:54:37     INFO -  PID 9452 | 1737485676361	Sync.Engine.Tabs	DEBUG	SyncEngine initialized: tabs
[task 2025-01-21T18:54:37.517Z] 18:54:37     INFO -  PID 9452 | 1737485676372	Sync.Engine.Tabs	INFO	Got a bridged engine!
[task 2025-01-21T18:54:37.518Z] 18:54:37     INFO -  PID 9452 | 1737485676376	Sync.Engine.CreditCards	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.518Z] 18:54:37     INFO -  PID 9452 | 1737485676377	Sync.Engine.CreditCards	DEBUG	SyncEngine initialized: creditcards
[task 2025-01-21T18:54:37.518Z] 18:54:37     INFO -  PID 9452 | 1737485676381	Sync.Engine.Extension-Storage	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.518Z] 18:54:37     INFO -  PID 9452 | 1737485676382	Sync.Engine.Extension-Storage	DEBUG	SyncEngine initialized: extension-storage
[task 2025-01-21T18:54:37.519Z] 18:54:37     INFO -  PID 9452 | 1737485676383	Sync.Service	INFO	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 XPCShell/1
[task 2025-01-21T18:54:37.519Z] 18:54:37     INFO -  PID 9452 | 1737485676406	Sync.Status	DEBUG	Status.login: error.login.reason.no_username => error.login.reason.no_username
[task 2025-01-21T18:54:37.519Z] 18:54:37     INFO -  PID 9452 | 1737485676406	Sync.Status	DEBUG	Status.service: service.client_not_configured => service.client_not_configured
[task 2025-01-21T18:54:37.520Z] 18:54:37     INFO -  PID 9452 | 1737485676406	Sync.Status	DEBUG	Status.service: service.client_not_configured => service.client_not_configured
[task 2025-01-21T18:54:37.520Z] 18:54:37     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2025-01-21T18:54:37.520Z] 18:54:37     INFO -  (xpcshell/head.js) | test head_setup finished (2)
[task 2025-01-21T18:54:37.520Z] 18:54:37     INFO -  PID 9452 | 1737485676411	Sync.Telemetry	TRACE	observed weave:service:ready null
[task 2025-01-21T18:54:37.521Z] 18:54:37     INFO -  PID 9452 | 1737485676415	Sync.Telemetry	TRACE	Not sending telemetry ping for self-hosted Sync user
[task 2025-01-21T18:54:37.521Z] 18:54:37     INFO -  services/sync/tests/unit/test_extension_storage_engine.js | Starting test_switching_between_kinto_and_bridged
[task 2025-01-21T18:54:37.522Z] 18:54:37     INFO -  (xpcshell/head.js) | test test_switching_between_kinto_and_bridged pending (2)
[task 2025-01-21T18:54:37.522Z] 18:54:37     INFO -  TEST-PASS | services/sync/tests/unit/test_extension_storage_engine.js | test_switching_between_kinto_and_bridged - [test_switching_between_kinto_and_bridged : 29] Should use bridged engine before flipping pref - true == true
[task 2025-01-21T18:54:37.522Z] 18:54:37     INFO -  PID 9452 | Flip pref
[task 2025-01-21T18:54:37.523Z] 18:54:37     INFO -  PID 9452 | 1737485676419	Sync.EngineManager	INFO	Switching extension-storage engine ("webextensions.storage.sync.kinto" went from false => true)
[task 2025-01-21T18:54:37.523Z] 18:54:37     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2025-01-21T18:54:37.523Z] 18:54:37     INFO -  PID 9452 | 1737485676420	Sync.Engine.Extension-Storage.Tracker	TRACE	stop().
[task 2025-01-21T18:54:37.523Z] 18:54:37     INFO -  PID 9452 | 1737485676421	Sync.Engine.Extension-Storage	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.524Z] 18:54:37     INFO -  PID 9452 | 1737485676425	Sync.Engine.Extension-Storage	DEBUG	SyncEngine initialized: extension-storage
[task 2025-01-21T18:54:37.524Z] 18:54:37     INFO -  PID 9452 | 1737485676425	Sync.EngineManager	INFO	Switched the extension-storage engine to use ExtensionStorageEngineKinto
[task 2025-01-21T18:54:37.524Z] 18:54:37     INFO -  TEST-PASS | services/sync/tests/unit/test_extension_storage_engine.js | test_switching_between_kinto_and_bridged - [test_switching_between_kinto_and_bridged : 25] Should use Kinto engine after flipping pref - true == true
[task 2025-01-21T18:54:37.525Z] 18:54:37     INFO -  PID 9452 | Clean up
[task 2025-01-21T18:54:37.525Z] 18:54:37     INFO -  PID 9452 | 1737485676426	Sync.EngineManager	INFO	Switching extension-storage engine ("webextensions.storage.sync.kinto" went from true => false)
[task 2025-01-21T18:54:37.525Z] 18:54:37     INFO -  PID 9452 | 1737485676427	Sync.Engine.Extension-Storage.Tracker	TRACE	stop().
[task 2025-01-21T18:54:37.525Z] 18:54:37     INFO -  PID 9452 | 1737485676428	Sync.Engine.Extension-Storage	DEBUG	Engine constructed
[task 2025-01-21T18:54:37.526Z] 18:54:37     INFO -  PID 9452 | 1737485676429	Sync.Engine.Extension-Storage	DEBUG	SyncEngine initialized: extension-storage
[task 2025-01-21T18:54:37.526Z] 18:54:37     INFO -  PID 9452 | 1737485676430	Sync.EngineManager	INFO	Switched the extension-storage engine to use ExtensionStorageEngineBridge
[task 2025-01-21T18:54:37.526Z] 18:54:37     INFO -  (xpcshell/head.js) | test run_next_test 2 pending (2)
[task 2025-01-21T18:54:37.526Z] 18:54:37     INFO -  (xpcshell/head.js) | test test_switching_between_kinto_and_bridged finished (2)
[task 2025-01-21T18:54:37.527Z] 18:54:37     INFO -  services/sync/tests/unit/test_extension_storage_engine.js | Starting test_enable
[task 2025-01-21T18:54:37.527Z] 18:54:37     INFO -  (xpcshell/head.js) | test test_enable pending (2)
[task 2025-01-21T18:54:37.527Z] 18:54:37     INFO -  TEST-PASS | services/sync/tests/unit/test_extension_storage_engine.js | test_enable - [test_enable : 64] Add-ons engine should be enabled by default - true == true
[task 2025-01-21T18:54:37.528Z] 18:54:37     INFO -  TEST-PASS | services/sync/tests/unit/test_extension_storage_engine.js | test_enable - [test_enable : 68] Extension storage engine should be enabled by default - true == true

```