From cfa78bffed386e695bb74ea8362fb92a7b72c636 Mon Sep 17 00:00:00 2001 From: syvb Date: Wed, 10 Jul 2024 00:36:19 -0400 Subject: [PATCH] try running memory sanitizer in CI --- tools/build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/build b/tools/build index 1c302b05..0b1a6682 100755 --- a/tools/build +++ b/tools/build @@ -102,7 +102,11 @@ while [ $# -gt 0 ]; do find_profile require_pg_version $nop cargo fetch - $nop cargo test --profile $profile --features "$pg pg_test" --no-default-features + export RUSTC_BOOTSTRAP=1 + export __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS=nightly + export RUSTFLAGS='-Z sanitizer=memory' + rustup component add rust-src --toolchain 1.74.0-x86_64-unknown-linux-gnu + $nop cargo test -Zbuild-std --profile $profile --target --target x86_64-unknown-linux-gnu --features "$pg pg_test" --no-default-features -- stats_agg::tests ;; install)