Reduce iCloud backup to zero and cover with tests #5558
Labels
A-Backups
A-Startup
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Enhancement
New features, changes in functionality, performance boosts, user-facing improvements
iCloud backup
A previous issue noticed that some data was being backed up, both to iCloud as well as to manual iTunes backups. Whilst the local side have been resolved so that no data is backed up at all, iCloud still reports 200-300kb of data, not present in the local backup.
From the application and API perspective, there is no difference between local and iCloud backups, meaning the difference in size is likely some undocumented disparity on Apple's side. It could for example be the size of empty directories for SiriIntents, extensions etc, but it isn't any of the application data.
One possible way to find out what is being backed up in iCloud is to restore a device from that backup and then manually backup via iTunes to observe the content.
Tests
We would like to ensure there are no future regressions with files being backed up to iCloud. Writing tests item-by-item is not robust enough, because future items that are not excluded will clearly not have any tests written either.
A better approach might be to launch the application inside a newly setup UI tests and itterate through the entire file structure (or top level directories) via
FileManager
. For each of these items, we can useresourceValues
method to check that.isExcludedFromBackupKey
value is set to false.The text was updated successfully, but these errors were encountered: