-
Notifications
You must be signed in to change notification settings - Fork 25
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
List migrations included in a runtime #68
Comments
I am afraid not. This information is not in the runtime unless we decide to add new metadata to it. |
@ggwpez do you know if the list of migrations could be included in the runtime metadata ? If no then we can close this issue. Providing this feature by analysing the code might be a bad idea as outside of metadatas runtime code doesn't seem to be standardized. |
In general, we can add additional sections with whatever data we want in the wasm blob.
I have already ideas where adding a few information such as the rust compiler used, etc... used to build the runtime would be super helpful for deterministic checks but I don't think adding migration documenation would be very useful. |
We recently added a check in paritytech/substrate#13417 and it reported a lot of missing migrations paritytech/polkadot#7187. It runs in the CI or locally (in Otherwise, i guess only parsing the code would work. But is a pain in the ass to implement and breaks easily 😆 |
Thank you for this very interesting discussion. In view of those improvements in Substrate. It doesn't seem too important to have this feature anymore. |
I did run the experiment mainly to see how long that can work :)
tldr:
output:
You can also filter to get a single runtime. See readme. As mentioned in the readme and pointed out by @ggwpez, I would NOT rely on that solution too much as it may collapse when the code structure changes. |
Wow @chevdor you did it again. You created yet another CLI ! |
Lol nice. Lets see how long it works 🤣 |
Recently, polkadot runtimes started to include migrations of past releases as well (eg. paritytech/polkadot#7168).
Would it be possible to list to those migrations with subwasm ?
The text was updated successfully, but these errors were encountered: