-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix: outdated storage versions on Demo #1820
Conversation
Demo
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1820 +/- ##
==========================================
- Coverage 48.58% 48.55% -0.03%
==========================================
Files 168 168
Lines 13359 13345 -14
==========================================
- Hits 6490 6480 -10
+ Misses 6869 6865 -4 ☔ View full report in Codecov by Sentry. |
pallet_democracy::migrations::v1::v1::Migration<crate::Runtime>, | ||
// v0 -> v1 | ||
pallet_xcm::migration::v1::VersionUncheckedMigrateToV1<crate::Runtime>, | ||
runtime_common::migrations::increase_storage_version::Migration<crate::PoolSystem, 0, 2>, |
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.
FYI, we have now a legacy version for this: paritytech/substrate#14311
/// The migration set for Development & Demo. | ||
/// It includes all the migrations that have to be applied on that chain. | ||
pub type UpgradeDevelopment1046 = | ||
pallet_collator_selection::migration::v1::MigrateToV1<crate::Runtime>; | ||
pub type UpgradeDevelopment1046 = ( |
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.
Wow! a lot of migrations. How can we ensure this is done in the demo but not in dev? Is it because all of them are idempotent?
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.
Yes exactly! Dev is up-to-date with all the latest versions whereas Demo is not. This PR fixes that.
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.
Thanks for this!!
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.
Reapproving!
Description
There are a bunch of pallets which have a lower version than the latest one. Some of these our local pallets, others are frame ones. There are still some undecodable storage entries after applying these migrations but it is out of scope to clean up all of these.
Includes the reset of underlying rewards instance of
BlockRewards
. Apparently, the re-initialization is necessary!Dev Logs
Demo Logs
Checklist: