Skip to content

Commit

Permalink
Adds timeout on fuzz script execution (#12024)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzaldysanchez authored Feb 14, 2024
1 parent 1e6b42e commit f185128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/bin/go_core_fuzz
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ use_tee() {

# the amount of --seconds here is subject to change based on how long the CI job takes in the future
# as we add more fuzz tests, we should take into consideration increasing this timelapse, so we can have enough coverage.
cd ./fuzz && ./fuzz_all_native.py --ci --seconds 420 | use_tee $OUTPUT_FILE
# We are timing out after ~10mins in case the tests hang. (Current CI duration is ~8m, modify if needed)
cd ./fuzz && timeout 10m ./fuzz_all_native.py --ci --seconds 420 | use_tee $OUTPUT_FILE
EXITCODE=${PIPESTATUS[0]}

# Assert no known sensitive strings present in test logger output
Expand Down

0 comments on commit f185128

Please sign in to comment.