-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix: update benchmarks #790
Conversation
f123833
to
63bf5eb
Compare
|
||
frame_support::parameter_types! { | ||
pub const MaxBalance: crate::Balance = crate::Balance::max_value(); | ||
} | ||
|
||
/// 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? |
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 KILTprotocol/ticket#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 #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:
BenchmarkHelper
type.pallet_collective
andpallet_membership
pallets which we deploy multiple timespallet_membership
deployments of theTipsMembership
pallet