-
Notifications
You must be signed in to change notification settings - Fork 1.6k
configuration: optionally read pending configs in migration #7489
Conversation
Despite the fact that the warning is gone, there's still |
Reasoning behind failing CI:https://github.com/paritytech/polkadot/blob/master/runtime/parachains/src/configuration/migration_ump.rs Note that this migration does it based on current code of host config, the one we're supposed to have after applying new (v7) migration. It adds another item to Why is this harmless?We can't skip this migration based on pallet storage version, it's supposed to be applied for v6, the same way my config migration is supposed to be applied for v6. Solution?Linked migration was supposed to bump storage version (unfortunately it didn't). Then we could guard against re-executing it, thus mitigating read-error. However, altering migration that was already applied sounds bad to me, even though it could work in theory. So unless V0943 migrations get dropped, only option is to ignore this warning. |
UMP migration was not applied on Polkadot yet: polkadot/runtime/polkadot/src/lib.rs Lines 1560 to 1563 in aa5c822
But it probably will be by the time v7 hits the runtime. |
Polkadot should upgrade to .43 in 16 days or so? |
Why are runtime migration checks are failing btw? Is that expected? I don't see them failing on other PRs. |
We can do this in a follow-up to address the warning. |
#7489 (comment) is exact explanation. I've merged config migration very recently so there're no PRs built on top of it |
Then we have to ensure that this does not get into a release. I am not sure if the runtime 1.0.0 release is already branched off. |
It's safe to be released as long as we drop earlier migrations? I meant that this PR addresses unrelated thing and don't want to include these changes here. |
bot merge |
Please do.
Yeah, sorry, I misinterpreted the explanation to be for the previous PR. |
Follows up #7396
CI was failing because of warning caused in migration. The warning is coming from
defensive_proof
call on optional value ofPendingConfigs
, which is actually allowed to beNone
. My bad for blindly copying code from #6271.