Closed ruseinov closed 2 years ago
The implementation of the OnRuntimeUpgrade
trait for tuples could, if try-runtime
feature is enabled, run pre_check
and post_check
before/after the on_runtime_upgrade
call of a single tuple element. This should solve your problem here.
@bkchr yep, I'm going to investigate this today.
The problem:
When we have several migrations for the same pallet supplied for the runtime - their pre-update checks are being executed before any of the migrations, which means that at least storage version checks are failing. This makes it impossible to test several migrations at a time, which sometimes is a necessity and requires manual intervention.
Code example:
The solution: We need to somehow make sure that the execution is sequential:
This needs further investigation to see how to make the scenario possible.
cc @kianenigma