Skip to content

ci(fuzzing): treat timeout as a successful workflow run #5256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,10 @@ jobs:
at_index=$(((10#$(date -u +%U)) % ${#fuzzing_scripts[@]}))
selected_script="${fuzzing_scripts[$at_index]}"
echo "Selected script: $selected_script"
timeout --preserve-status --signal=SIGINT 60m python $selected_script
# Disable the default Github runner fail-fast behaviour for better timeout handling
set +e
timeout --signal=SIGINT 60m python $selected_script
# "timeout" returns 124 when the command times out.
# We treat this as a success (nothing found during the allotted time) and pass other exit codes through.
fuzz_exitcode=$?
[ $fuzz_exitcode -eq 124 ] && exit 0 || exit $fuzz_exitcode