Skip to content

Commit

Permalink
CI: limit max RSS for libFuzzer since it is OOMing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Sep 10, 2019
1 parent 0202337 commit 6d2a163
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Expand Up @@ -67,12 +67,6 @@ matrix:
script:
|
which cargo-fuzz || cargo install cargo-fuzz

(for (( ; ; )); do
tail -n 100 fuzz.log || true
sleep 10
done) &

# When the fuzzing fails, the logs are too big for Travis, so just
# show the relevant tail portion of the log.
cargo fuzz run wasm-opt-ttf -- -max_total_time=300 > fuzz.log 2>&1 || {
Expand All @@ -85,7 +79,7 @@ matrix:
which cargo-fuzz || cargo install cargo-fuzz
# When the fuzzing fails, the logs are too big for Travis, so just
# show the relevant tail portion of the log.
cargo fuzz run raw -- -max_total_time=300 > fuzz.log 2>&1 || {
cargo fuzz run raw -- -max_total_time=300 -rss_limit_mb=4096 > fuzz.log 2>&1 || {
tail -n 1000 fuzz.log && exit 1
}

Expand Down

0 comments on commit 6d2a163

Please sign in to comment.