zotero/test
Dan Stillman 37bf9d0965
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
Trigger full sync when server library version goes backward
When a user's account is deleted and then undeleted on the server, the
dataserver creates a fresh shardLibraries row at a low version, while the
client still has a much higher local library version. Subsequent syncs
then throw "_libraryVersion cannot decrease" and the user is stuck.

Tag the cannot-decrease errors from the library version setters with a
named error, catch it in Engine.start(), reset libraryVersion and
storageVersion to -1, and restart. The retry hits the existing
libraryVersion == -1 branch and runs _fullSync(), which re-uploads the
local library against the recreated server library.
2026-05-20 23:11:35 -04:00
..
components fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
content Set Recently Read threshold relative to most recent item (#5878) 2026-04-07 14:10:18 -04:00
resource Remove Chai as Promised 2025-07-30 22:31:08 -04:00
tests Trigger full sync when server library version goes backward 2026-05-20 23:11:35 -04:00
chrome.manifest fx115: Restore test runner 2024-03-30 00:58:53 -04:00
runtests.sh Add support for test retries and enable three retries on CI 2026-03-11 14:35:39 -04:00