-
Notifications
You must be signed in to change notification settings - Fork 683
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
Rename integrity_test
to post_runtime_check
#1604
Conversation
|
Naming is hard; Maybe |
@gupnik I wonder if you have ideas such that you can improve this, or make it more explicit in #1378? |
For the name, I would propose To make it explicit after #1378, I can think of a syntax like so: #[frame_support::construct_runtime_v2]
mod runtime {
#[frame::pallets]
pub struct AllPallets { ... }
#[cfg(test)]
pub fn post_runtime_check() {
AllPallets::post_runtime_check();
}
} |
integrity_test
to on_construct_runtime
integrity_test
to post_runtime_check
I think there's some confusion with bridges here - we have our own bridge integrity tests, which have nothing common with |
This was actually the initial idea of
This is still more confusing than |
maybe this was not a great idea then and no matter what we call it, it would be confusing to some 🤷 |
So let's close this and the issue @kianenigma? |
As discussed with @kianenigma this can close. Thank you @bkchr |
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
* clipy * revert some fixes that newest clippy reports as issues, but older does not
As noted in paritytech/substrate#10174, this hook has a very opaque name. Based on @kianenigma 's feedback, it has never been used as much as it should have been and there are experienced substrate developers who don't know it exists, or can't really tell what it is from the name. As a result there is a need to rename this to
on_construct_runtime()
post_runtime_check
to be more aligned with the rest of the hooks.Closes #258