Command bot has been migrated, it is no longer a comment parser and now it is a GitHub action that works as a workflow_dispatch
event.
To run an action, you need to go to the actions tab and pick the one you desire to run.
The current available command actions are:
You need to select the action, and click on the dropdown that says: Run workflow
. It is located in the upper right.
If this dropdown is not visible, you may not have permission to run the action. Contact IT for help.
Each command will have the same two required values, but it could have more.
GitHub's official documentation: Manually running a workflow
The number of the pull request. Required so the action can fetch the correct branch and comment if it fails.
Runs benchmark pallet
or benchmark overhead
against your PR and commits back updated weights.
Posible combinations based on the benchmark
dropdown.
substrate-pallet
: Pallet Benchmark for Substrate for specific pallet- Requires
Subcommand
to bepallet
- Requires
Runtime
to bedev
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Target Directory
to besubstrate
- Requires
polkadot-pallet
: Pallet Benchmark for Polkadot for specific pallet- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be one of the following:rococo
westend
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Target Directory
to bepolkadot
- Requires
cumulus-assets
: Pallet Benchmark for Cumulus assets- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be one of the following:asset-hub-westend
asset-hub-rococo
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to beassets
- Requires
Target Directory
to becumulus
- Requires
cumulus-collectives
: Pallet Benchmark for Cumulus collectives- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to becollectives-westend
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to becollectives
- Requires
Target Directory
to becumulus
- Requires
cumulus-coretime
: Pallet Benchmark for Cumulus coretime- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be one of the following:coretime-rococo
coretime-westend
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to becoretime
- Requires
Target Directory
to becumulus
- Requires
cumulus-bridge-hubs
: Pallet Benchmark for Cumulus bridge-hubs- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be one of the following:bridge-hub-rococo
bridge-hub-westend
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to bebridge-hub
- Requires
Target Directory
to becumulus
- Requires
cumulus-contracts
: Pallet Benchmark for Cumulus contracts- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be onecontracts-rococo
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to becontracts
- Requires
Target Directory
to becumulus
- Requires
cumulus-glutton
: Pallet Benchmark for Cumulus glutton- Requires
Subcommand
to bepallet
- Requires
Runtime
to be one of the following:glutton-westend
glutton-westend-dev-1300
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to beglutton
- Requires
Target Directory
to becumulus
- Requires
cumulus-starters
: Pallet Benchmark for Cumulus starters- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be one of the following:seedling
shell
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to bestarters
- Requires
Target Directory
to becumulus
- Requires
cumulus-people
: Pallet Benchmark for Cumulus people- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be one of the following:people-westend
people-rococo
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to bepeople
- Requires
Target Directory
to becumulus
- Requires
cumulus-testing
: Pallet Benchmark for Cumulus testing- Requires
Subcommand
to be one of the following:pallet
xcm
- Requires
Runtime
to be one of the following:penpal
rococo-parachain
- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires
Runtime Dir
to betesting
- Requires
Target Directory
to becumulus
- Requires
This is a wrapper to run bench
for all pallets.
Posible combinations based on the benchmark
dropdown.
pallet
: Benchmark for Substrate/Polkadot/Cumulus/Trappist for specific pallet- Requires field
Pallet
to have an input that applies to^([a-z_]+)([:]{2}[a-z_]+)?$
- Requires field
substrate
: Pallet + Overhead + Machine Benchmark for Substrate for all pallets- Requires
Target Directory
to besubstrate
- Requires
polkadot
: Pallet + Overhead Benchmark for Polkadot- Requires
Runtime
to be one of the following:rococo
westend
- Requires
Target Directory
to bepolkadot
- Requires
cumulus
: Pallet Benchmark for Cumulus- Requires
Runtime
to be one of the following:rococo
westend
asset-hub-kusama
asset-hub-polkadot
asset-hub-rococo
asset-hub-westend
bridge-hub-kusama
bridge-hub-polkadot
bridge-hub-rococo
bridge-hub-westend
collectives-polkadot
collectives-westend
coretime-rococo
coretime-westend
contracts-rococo
glutton-kusama
glutton-westend
people-rococo
people-westend
- Requires
Target Directory
to becumulus
- Requires
Run benchmarks overhead and commit back results to PR.
Posible combinations based on the benchmark
dropdown.
default
: Runsbenchmark overhead
and commits back to PR the updatedextrinsic_weights.rs
files- Requires
Runtime
to be one of the following:rococo
westend
- Requires
Target directory
to bepolkadot
- Requires
substrate
: Runsbenchmark overhead
and commits back to PR the updatedextrinsic_weights.rs
files- Requires
Target directory
to besubstrate
- Requires
cumulus
: Runsbenchmark overhead
and commits back to PR the updatedextrinsic_weights.rs
files- Requires
Runtime
to be one of the following:asset-hub-rococo
asset-hub-westend
- Requires
Target directory
to becumulus
- Requires
If you want to modify an action and test it, you can do by simply pushing your changes and then selecting your branch in the Use worflow from
option.
This will use a file from a specified branch.