RFC: Remove obsolete database versions - #22284
Conversation
|
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr22284-171b38f | |
| Version | 24.0 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 171b38f | |
| App Center Build | WPiOS - One-Offs #8361 |
|
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr22284-171b38f | |
| Version | 24.0 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 171b38f | |
| App Center Build | jetpack-installable-builds #7383 |
This is necessary to get up to date with a CI configuration change that requires running on Xcode 15.1. See #22270
Generated by 🚫 dangerJS |
|
What are the impacts of removing old database versions? If customers update an old version of the app that uses the deleted database version to the latest one, I guess the database migration would fail and they would lose their on-device data? |
The number of customers on these versions is likely exceedingly small and can be ignored. I haven't tested what happens, but it's likely going to lead to a crash. The PR that removes the old versions could tackles this. I think logging the user out and removing all local data would be a good option. I highly doubt that if someone upgrades from version 85 to 251, it'll go smoothly. Chances are it'll either take forever, or crash, or lead to lost or corrupt data. |


As surfaced in one of the recent posts by @mokagio, a few tests in the test suite take over a second, which is unacceptable. Fortunately, some are testing obsolete database version migrations from 5+ years ago. Removing these tests reduces the time it takes to run the test by 10 seconds (on M2 Pro).
CoreDataMigrationTests time: 10s → 0.5s (-9.5 s)
This PR only removes the tests, which is a safe call. But I suggest taking it a step further and removing the obsolete database version from 1 to 100. I measured the before and after, and the impact of eliminating these versions is measurable.
App size: 329.2 MB → 323.3 MB (-5.9 MB) (I measure the debug .ipa; the release per-device builds might differ)
MOM Compile time: 7.3 s → 3.0 s (-4.3 s)
Regression Notes
PR submission checklist:
RELEASE-NOTES.txtif necessary.UI Changes testing checklist: