run_all_benchmarks.sh
script fails for asset-conversion-ops
pallet
#6160
Labels
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
D0-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder.
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
T2-pallets
This PR/Issue is related to a particular pallet.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
The
run_all_benchmarks.sh
script fails for the asset-conversion-ops pallet because it tries to create a weight file inside of a/frame/asset-conversion-ops/src/
folder which doesn't exist. The asset-conversion-ops pallet is defined inside of the/frame/asset-conversion/ops/src/
folder instead.The reported error is
Error: Input("Could not write weight file to: \"./frame/asset-conversion-ops/src/weights.rs\". Error: Os { code: 2, kind: NotFound, message: \"No such file or directory\" }")
.The error comes from the implicit assumption in the script that every pallet with name
<pallet_name>
is defined inside the/frame/<pallet_name>/src/
folder.Possible solution: handle the asset-conversion-ops pallet separately, overring the
FOLDER
variable withasset-conversion/ops
. This would solve the issue, but it may be sensitive to possible future changes to the pallet.Steps to reproduce
The text was updated successfully, but these errors were encountered: