Skip to content

Commit

Permalink
Remove Kani temp files from book upload (rust-lang#1793)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
celinval authored Oct 18, 2022
1 parent fc43543 commit 4ae03e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ if [ -d $HTML_DIR ]; then
# Replace artifacts by examples under test
BOOKS_DIR=$KANI_DIR/tests/bookrunner/books
rm -r src/bookrunner/artifacts
# Remove any json files that Kani might've left behind due to crash or timeout.
find $BOOKS_DIR -name '*.json' -exec rm {} \;
find $BOOKS_DIR -name '*.out' -exec rm {} \;
cp -r $BOOKS_DIR src/bookrunner/artifacts
# Update paths in HTML report
python $KANI_DIR/scripts/ci/update_bookrunner_report.py src/bookrunner/index.html new_index.html
Expand Down

0 comments on commit 4ae03e3

Please sign in to comment.