-
Notifications
You must be signed in to change notification settings - Fork 821
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically retry failed MIRI runs to work around intermittent fail…
…ures (#922) * Move MIRI checks into a shell script * add retry loop
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# | ||
# Script | ||
# | ||
# Must be run with nightly rust for example | ||
# rustup default nightly | ||
|
||
|
||
export MIRIFLAGS="-Zmiri-disable-isolation" | ||
cargo miri setup | ||
cargo clean | ||
|
||
run_miri() { | ||
# Currently only the arrow crate is tested with miri | ||
# IO related tests and some unsupported tests are skipped | ||
cargo miri test -p arrow -- --skip csv --skip ipc --skip json | ||
} | ||
|
||
# If MIRI fails, automatically retry | ||
# Seems like miri is occasionally killed by the github runner | ||
# https://github.com/apache/arrow-rs/issues/879 | ||
for i in `seq 1 5`; do | ||
echo "Starting Arrow MIRI run..." | ||
run_miri && break | ||
echo "foo" > /tmp/data.txt | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters