Skip to content
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

Remove trappist workaround #43

Merged
merged 6 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion commands/bench-all/bench-all.cmd.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"description": "Pallet Benchmark for Trappist",
"repos": ["trappist"],
"args": {
"runtime": { "label": "Runtime", "type_one_of": ["trappist", "stout"] }
"runtime": { "label": "Runtime", "type_one_of": ["trappist", "stout"] },
"target_dir": { "label": "Target Directory", "type_string": "trappist" }
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion commands/bench/bench.cmd.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
"args": {
"subcommand": { "label": "Subcommand", "type_one_of": ["runtime", "xcm"] },
"runtime": { "label": "Runtime", "type_one_of": ["trappist", "stout"] },
"pallet": { "label": "Pallet", "type_rule": "^([a-z_]+)([:]{2}[a-z_]+)?$", "example": "pallet_name" }
"pallet": { "label": "Pallet", "type_rule": "^([a-z_]+)([:]{2}[a-z_]+)?$", "example": "pallet_name" },
"target_dir": { "label": "Target Directory", "type_string": "trappist" }
}
}
}
Expand Down
10 changes: 2 additions & 8 deletions commands/bench/lib/bench-all-trappist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

# Runs all benchmarks for all pallets, for a given runtime, provided by $1

# This is a workaround for `UnknownOpcode(192)` error.
# TODO. Remove this when migrated to 0.9.42+
echo "[+] Apply workaround... (remove after 0.9.42+)"
rustup toolchain install nightly-2023-01-01 --profile minimal --component rustfmt
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-01-01
ln -sfn /usr/local/rustup/toolchains/nightly-2023-01-01-x86_64-unknown-linux-gnu /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu
echo "Toolchains available:"
rustup toolchain list
echo "Rust setup:"
rustup show

get_arg required --runtime "$@"
runtime="${out:-""}"
Expand Down