-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
bot rebase |
Rebasing |
}, | ||
_ => Err("Sub-command is not supported".into()), | ||
}) | ||
}, |
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.
Why not add the other sub commands to the node template? Seems like they would be helpful if someone is basing a new project off the template
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.
Yea that's a good follow-up, I'll put it in an issue. Just wanted to get it done faster 😄
The node-template currently uses the weights from frame_support
, so even when you run the benchmarks yourself, it would require some updating to actually use them in the node-template.
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.
Okay I added it now in the last commit since @shawntabrizi also wanted it.
There is infrastructure missing in the node-template, therefore the copy&paste from the substrate node.
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.
LGTM - just had some optional suggestions
Co-authored-by: Zeke Mostov <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
bot merge |
* Restructure benchmark commands Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add benchmark block test Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fixup imports Signed-off-by: Oliver Tale-Yazdi <[email protected]> * CI Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Review fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Extend error message Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Apply suggestions from code review Co-authored-by: Zeke Mostov <[email protected]> * Review fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add commands to node-template Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Zeke Mostov <[email protected]>
Needed after substrate `benchmark` sub-command change PR paritytech/substrate#11164
* chore: bump deps to Polkadot v0.9.19 * fix: LengthToFee https://github.com/paritytech/substrate/pull/10785/files * fix: remove u32_trait paritytech/substrate#10850 * fix: client paritytech/substrate#11164 paritytech/cumulus#963 paritytech/cumulus#1069 paritytech/substrate#10878 * fix: clippy runtime * fix: clippy clone * feat: add para runtime enum for client * ci: bump paritytech/ci-linux image * fix: clippy * refactor: benchmark cmd match * fix: peregrune runtime api
* chore: bump deps to Polkadot v0.9.19 * fix: LengthToFee https://github.com/paritytech/substrate/pull/10785/files * fix: remove u32_trait paritytech/substrate#10850 * fix: client paritytech/substrate#11164 paritytech/cumulus#963 paritytech/cumulus#1069 paritytech/substrate#10878 * fix: clippy runtime * fix: clippy clone * feat: add para runtime enum for client * ci: bump paritytech/ci-linux image * fix: clippy * refactor: benchmark cmd match * fix: peregrune runtime api (cherry picked from commit 6f2016b)
* Restructure benchmark commands Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add benchmark block test Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fixup imports Signed-off-by: Oliver Tale-Yazdi <[email protected]> * CI Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Review fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Extend error message Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Apply suggestions from code review Co-authored-by: Zeke Mostov <[email protected]> * Review fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add commands to node-template Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Zeke Mostov <[email protected]>
* Restructure benchmark commands Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add benchmark block test Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fixup imports Signed-off-by: Oliver Tale-Yazdi <[email protected]> * CI Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Review fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Extend error message Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Apply suggestions from code review Co-authored-by: Zeke Mostov <[email protected]> * Review fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add commands to node-template Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Zeke Mostov <[email protected]>
Changes:
benchmark pallet
sub-command.shared
modulebenchmark block
Many of the changes are just moved files, the interesting part is in
node/cli/src/
.The output of the
benchmark
command now looks like this:Polkadot companion: paritytech/polkadot#5247
Cumulus companion: paritytech/cumulus#1156
Closes #11140, #11153