Skip to content

Commit

Permalink
Exit with non-zero code when there are weight warnings (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon authored Oct 30, 2023
1 parent ee62c2d commit 7125cb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
]

[workspace.package]
version = "0.3.3"
version = "0.3.4"
authors = ["Parity Technologies <[email protected]>"]
description = "Substrate's programmatic testing framework."
edition = "2021"
Expand Down
2 changes: 2 additions & 0 deletions core/src/commands/on_runtime_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ where
_ => {
log::warn!(target: LOG_TARGET, "⚠️ TryRuntime_on_runtime_upgrade executed \
successfully but with weight safety warnings.");
// Exit with a non-zero exit code to indicate that the runtime upgrade may not be safe.
std::process::exit(1);
}
}

Expand Down

0 comments on commit 7125cb2

Please sign in to comment.