-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add bare bone test for migration to 154 to 155 #24496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bare bone test for migration to 154 to 155 #24496
Conversation
Generated by 🚫 Danger |
|
App Name | WordPress | |
Configuration | Release-Alpha | |
Build Number | 27499 | |
Version | PR #24496 | |
Bundle ID | org.wordpress.alpha | |
Commit | 2a17e73 | |
Installation URL | 7kvips8m2c8tg |
|
App Name | Jetpack | |
Configuration | Release-Alpha | |
Build Number | 27499 | |
Version | PR #24496 | |
Bundle ID | com.jetpack.alpha | |
Commit | 2a17e73 | |
Installation URL | 7lkjp4q4tb7e8 |
3ff73ba
to
050734f
Compare
See the silent failure https://buildkite.com/automattic/wordpress-ios/builds/27496 due to the pipe
See how the following build failed https://buildkite.com/automattic/wordpress-ios/builds/27498/steps?sid=01966692-5a11-457c-8c19-e75c0b550aa7 This commit does not add all the necessary imports
First, convert all entities to "Global Namespace" with ``` sed -i '' -E 's/representedClassName="(WordPress)?(\.)?([^"]+)"/representedClassName="\3"/g' \ Sources/WordPressData/Resources/WordPress.xcdatamodeld/WordPress\ *.xcdatamodel/contents ``` Then, set the entities that need the "Current Product Module", using #24494 as the source for which to pick ``` sed -i '' -E 's/representedClassName="(ManagedAccountSettings|BlogAuthor|BloggingPrompt|BloggingPromptSettings|BloggingPromptSettingsReminderDays|BlogSettings|DiffAbstractValue|DiffContentValue|DiffTitleValue|ManagedDomain|ManagedPerson|Plan|PlanFeature|PlanGroup|PublicizeConnection|PublicizeService|ReaderCard|Revision|RevisionDiff|Role)"/representedClassName=".\1"/g' \ Sources/WordPressData/Resources/WordPress.xcdatamodeld/WordPress\ *.xcdatamodel/contents ``` Notice that `Sources/WordPressData/Resources/WordPress.xcdatamodeld/WordPress 155.xcdatamodel/contents` did not change, which is a point in favor of showing this scripted change being correct.
|
@@ -814,7 +814,7 @@ | |||
<attribute name="slug" attributeType="String" syncable="YES"/> | |||
<relationship name="blog" maxCount="1" deletionRule="Nullify" destinationEntity="Blog" inverseName="roles" inverseEntity="Blog" syncable="YES"/> | |||
</entity> | |||
<entity name="SharingButton" representedClassName="WordPress.SharingButton" syncable="YES"> | |||
<entity name="SharingButton" representedClassName="SharingButton" syncable="YES"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no .
in the SharingButton
class name, and a few other entities. Is that expected?
Closing after @kean's input here
👋 |
See discussion at #24494 (comment)
Problem: How do we know the migration from model version 154 to 155 works, in particular because the module for the entities changed in 155?
Proposed solution: Add unit tests to exercise the 154 -> 155 migration
We don't even have to merge this, might be enough to just see them green in CI and make a note.