diff --git a/.github/workflows/fuzz.yml b/.github/workflows/cron-daily-fuzz.yml similarity index 89% rename from .github/workflows/fuzz.yml rename to .github/workflows/cron-daily-fuzz.yml index 3a0e4d1a..63986907 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/cron-daily-fuzz.yml @@ -1,12 +1,12 @@ # Automatically generated by fuzz/generate-files.sh name: Fuzz - on: - push: - branches: - - master - - 'test-ci/**' - pull_request: + schedule: + # 5am every day UTC, this correlates to: + # - 10pm PDT + # - 6am CET + # - 4pm AEDT + - cron: '00 05 * * *' jobs: fuzz: @@ -15,6 +15,8 @@ jobs: strategy: fail-fast: false matrix: + # We only get 20 jobs at a time, we probably don't want to go + # over that limit with fuzzing because of the hour run time. fuzz_target: [ bitcoin_deserialize_address, bitcoin_deserialize_block, diff --git a/fuzz/fuzz.sh b/fuzz/fuzz.sh index 5fc65ae6..a22e01cc 100755 --- a/fuzz/fuzz.sh +++ b/fuzz/fuzz.sh @@ -28,7 +28,7 @@ for targetFile in $targetFiles; do else HFUZZ_INPUT_ARGS="" fi - HFUZZ_RUN_ARGS="--run_time 30 --exit_upon_crash -v $HFUZZ_INPUT_ARGS" cargo hfuzz run "$targetName" + HFUZZ_RUN_ARGS="--run_time 3600 --exit_upon_crash -v $HFUZZ_INPUT_ARGS" cargo hfuzz run "$targetName" checkReport "$targetName" done