Skip to content

Commit

Permalink
feat: make debugging param estimator failures in docker easier (#4834)
Browse files Browse the repository at this point in the history
Docker runs take time, so let's make sure that we have a backtrace in
the case of panic.

Test Plan
---------

Manually verify that injected panic is displayed
  • Loading branch information
matklad authored Sep 20, 2021
1 parent 18548b9 commit 06d05bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/runtime-params-estimator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ cargo build --manifest-path /host/nearcore/Cargo.toml \
.args(&["--mount", &nearhome])
.args(&["--mount", "source=rust-emu-target-dir,target=/host/nearcore/target"])
.args(&["--mount", "source=rust-emu-cargo-dir,target=/usr/local/cargo"])
.args(&["--interactive", "--tty"]);
.args(&["--interactive", "--tty"])
.args(&["--env", "RUST_BACKTRACE=full"]);
if full {
cmd.args(&["--env", "CARGO_PROFILE_RELEASE_LTO=fat"])
.args(&["--env", "CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1"]);
Expand Down

0 comments on commit 06d05bc

Please sign in to comment.