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: runtime upgrade utils and migrations #4258
Conversation
chore: remove on_runtime_upgrade calls from pallets fix: upgrade utils clippy
d0d61d0
to
abbf4b2
Compare
813b29d
to
2bfb570
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4258 +/- ##
=====================================
- Coverage 72% 72% -0%
=====================================
Files 384 385 +1
Lines 63571 63487 -84
Branches 63571 63487 -84
=====================================
- Hits 45482 45404 -78
+ Misses 15749 15740 -9
- Partials 2340 2343 +3 ☔ View full report in Codecov by Sentry. |
* fix: use executive pallet to run tuple migrations chore: remove on_runtime_upgrade calls from pallets fix: upgrade utils clippy * doc: update README * fix: run try-runtime tests on CI
PRO-976 Pre/Post runtime upgrade checks are not applied
Parity changed how the runtime upgrade checks are called, and as a consequence, the pre/post upgrade checks of tuples of runtime upgrades are no-ops(!). The solution that in the pallets, instead of overriding pre/post upgrade checks in the hooks, we should override the
As part of this, the Any old migrations can be deleted. IMO we might as well keep the boilerplate and use |
Co-authored-by: dandanlen <3168260+dandanlen@users.noreply.github.com> Co-authored-by: Alastair Holmes <42404303+AlastairHolmes@users.noreply.github.com> Co-authored-by: Albert Llimos <53186777+albert-llimos@users.noreply.github.com> Co-authored-by: Martin Rieke <121793148+martin-chainflip@users.noreply.github.com> Co-authored-by: Maxim Shishmarev <msgmaxim@gmail.com> Co-authored-by: Marcello <marcello@chainflip.io> Co-authored-by: Roy Yang <roy@chainflip.io> Co-authored-by: kylezs <kyle@chainflip.io> Co-authored-by: Jamie Ford <jamie@chainflip.io> fix naming of session keys (#4242) fix: revert restricted balances (#4237) fix: add missing spans in multisig logs (#4239) fix cargo features (#4249) fix: remove bound addresses on account deletion (#4244) fix: remove existential deposit (#4243) fix: egress id race condition (#4235) fix: remove unwrap when getting tx receipt (#4231) fix: protect against double witnessing after safe mode (#4254) fix: runtime upgrade utils and migrations (#4258)
Closes: PRO-976
Pull Request
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Somewhere at some point parity changed the way migrations run and ought to be run, and this changes it to run as parity runs them now.
The
VersionedMigration
struct that we have will eventually be replaced by the version included inpolkadot-sdk
here: paritytech/polkadot-sdk@4137aa6 once we upgrade to a version that includes it.