Skip to content

Commit 4ae03e3

Browse files
authored
Remove Kani temp files from book upload (rust-lang#1793)
When Kani crashes or timeout, it leaves behind all the temporary files. While running the bookrunner, that can happen because of some instability or timeout. Thus, we need to manually delete these files for now to avoid uploading them as part of the bookrunner artifacts.
1 parent fc43543 commit 4ae03e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/build-docs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ if [ -d $HTML_DIR ]; then
3636
# Replace artifacts by examples under test
3737
BOOKS_DIR=$KANI_DIR/tests/bookrunner/books
3838
rm -r src/bookrunner/artifacts
39+
# Remove any json files that Kani might've left behind due to crash or timeout.
40+
find $BOOKS_DIR -name '*.json' -exec rm {} \;
41+
find $BOOKS_DIR -name '*.out' -exec rm {} \;
3942
cp -r $BOOKS_DIR src/bookrunner/artifacts
4043
# Update paths in HTML report
4144
python $KANI_DIR/scripts/ci/update_bookrunner_report.py src/bookrunner/index.html new_index.html

0 commit comments

Comments
 (0)