Skip to content

Commit

Permalink
Improve logging of try-runtime makefile targets (#836)
Browse files Browse the repository at this point in the history
* Use Native execution for try_runtime

Using native execution leads to more specific error descriptions and a backtrace that pinpoints the line that caused the error

* Use more elaborate logs when executing try-runtime

* Use staging chain
  • Loading branch information
sea212 authored Oct 25, 2022
1 parent 5994559 commit fa3dbaa
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,24 @@ check:
check-dummy:
BUILD_DUMMY_WASM_BINARY= cargo check

# Pseudo private target is invoked by public targets for different chains
--try-runtime:
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
cargo run \
--bin=zeitgeist \
--features=parachain,try-runtime \
try-runtime \
--execution=Native \
--chain=${TRYRUNTIME_CHAIN} \
on-runtime-upgrade \
live \
--uri=${TRYRUNTIME_URL}

try-runtime-upgrade-battery-station:
cargo run --release --bin=zeitgeist --features=parachain,try-runtime try-runtime on-runtime-upgrade live --uri wss://bsr.zeitgeist.pm:443
@$(MAKE) TRYRUNTIME_CHAIN="battery_station_staging" TRYRUNTIME_URL="wss://bsr.zeitgeist.pm:443" -- --try-runtime

try-runtime-upgrade-zeitgeist:
cargo run --release --bin=zeitgeist --features=parachain,try-runtime try-runtime on-runtime-upgrade live --uri wss://zeitgeist-rpc.dwellir.com
@$(MAKE) TRYRUNTIME_CHAIN="zeitgeist_staging" TRYRUNTIME_URL="wss://zeitgeist-rpc.dwellir.com:443" -- --try-runtime

build:
SKIP_WASM_BUILD= cargo build
Expand Down

0 comments on commit fa3dbaa

Please sign in to comment.