From ab317bc0dd063b38b0e91ae0380ee24e19d65a64 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Thu, 5 Mar 2020 10:00:48 -0800 Subject: [PATCH] CI: Run fuzzer corpora with `RUST_BACKTRACE=1` This way if we get regression panics -- like in https://github.com/bytecodealliance/wasmtime/pull/1192 -- then we actually have some hope of debugging them properly. --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c30a097a3c..8f7b03d77e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -88,26 +88,36 @@ jobs: | shuf \ | head -n 3000 \ | xargs cargo fuzz run compile --release --debug-assertions + env: + RUST_BACKTRACE: 1 - run: | find fuzz/corpus/instantiate -type f \ | shuf \ | head -n 2000 \ | xargs cargo fuzz run instantiate --release --debug-assertions + env: + RUST_BACKTRACE: 1 - run: | find fuzz/corpus/instantiate_translated -type f \ | shuf \ | head -n 1000 \ | xargs cargo fuzz run instantiate_translated --release --debug-assertions + env: + RUST_BACKTRACE: 1 - run: | find fuzz/corpus/api_calls -type f \ | shuf \ | head -n 100 \ | xargs cargo fuzz run api_calls --release --debug-assertions + env: + RUST_BACKTRACE: 1 - run: | find fuzz/corpus/differential -type f \ | shuf \ | head -n 100 \ | xargs cargo fuzz run differential --release --debug-assertions + env: + RUST_BACKTRACE: 1 # Install wasm32-unknown-emscripten target, and ensure `crates/wasi-common` # compiles to Emscripten.