-
Notifications
You must be signed in to change notification settings - Fork 47
fix: update benchmarks #790
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
Conversation
f123833 to
63bf5eb
Compare
|
|
||
| /// Workaround for a bug in the benchmarking code around instances. | ||
| /// Upstream fix PR: https://github.com/paritytech/polkadot-sdk/pull/6435 | ||
| #[allow(unused_imports)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See paritytech/polkadot-sdk#6435 for the issue and the fix.
| [pallet_collective, Council] | ||
| [pallet_technical_committee_collective, TechnicalCommittee] | ||
| // pallet_membership instances | ||
| [pallet_membership, TipsMembership] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't run benchmarks for this instance at all before.
|
I looked into the benchmark error Pr on the polkadot-sdk, but I am struggling to understand what the underlying issue is. For pallets with multiple instances in the runtime, the benchmarking was executed for each instance with all different config configuration? |
Ad96el
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two minior questions
That is exactly the issue. Plus, a related error and a somewhat consequence of this is that the calculated weights are actually the interpolation of the results combined, for each instance, that is why we had to rename the pallet of each instance, so that one instance run would not interfere with the others. This is a pretty serious bug in Substrate, and it should have been caught way way earlier. |
I see thanks for the conformation |
bc7c458 to
56d14e0
Compare
WIP. Fixes https://github.com/KILTprotocol/ticket/issues/3672. Built on top of #790. ## Checklist - [x] Review Peregrine code - [x] Ask for review - [x] Apply to Spiritnet code
Part of https://github.com/KILTprotocol/ticket/issues/3650, built on top of KILTprotocol/kilt-node#787. What started as a simple fix for the web3name pallet benchmarks, turned out to be a bigger changeset due to a couple of bugs found in the Substrate code, which are mentioned in the self-review I gave myself [below](KILTprotocol/kilt-node#790 (review)). In a gist, what I did is: 1. Update the benchmarking logic for the web3name pallet to delegate the name creation to a `BenchmarkHelper` type. 2. Implement the trait above for both web3names (which uses the old implementation) and the dotnames 3. Work around the Substrate bug for our pallets as well as the `pallet_collective` and `pallet_membership` pallets which we deploy multiple times 4. Add the benchmarking of the `pallet_membership` deployments of the `TipsMembership` pallet
WIP. Fixes https://github.com/KILTprotocol/ticket/issues/3672. Built on top of KILTprotocol/kilt-node#790. ## Checklist - [x] Review Peregrine code - [x] Ask for review - [x] Apply to Spiritnet code
Part of https://github.com/KILTprotocol/ticket/issues/3650, built on top of KILTprotocol/kilt-node#787. What started as a simple fix for the web3name pallet benchmarks, turned out to be a bigger changeset due to a couple of bugs found in the Substrate code, which are mentioned in the self-review I gave myself [below](KILTprotocol/kilt-node#790 (review)). In a gist, what I did is: 1. Update the benchmarking logic for the web3name pallet to delegate the name creation to a `BenchmarkHelper` type. 2. Implement the trait above for both web3names (which uses the old implementation) and the dotnames 3. Work around the Substrate bug for our pallets as well as the `pallet_collective` and `pallet_membership` pallets which we deploy multiple times 4. Add the benchmarking of the `pallet_membership` deployments of the `TipsMembership` pallet
WIP. Fixes https://github.com/KILTprotocol/ticket/issues/3672. Built on top of KILTprotocol/kilt-node#790. ## Checklist - [x] Review Peregrine code - [x] Ask for review - [x] Apply to Spiritnet code
Part of https://github.com/KILTprotocol/ticket/issues/3650, built on top of #787.
What started as a simple fix for the web3name pallet benchmarks, turned out to be a bigger changeset due to a couple of bugs found in the Substrate code, which are mentioned in the self-review I gave myself below.
In a gist, what I did is:
BenchmarkHelpertype.pallet_collectiveandpallet_membershippallets which we deploy multiple timespallet_membershipdeployments of theTipsMembershippallet