Skip to content

Commit

Permalink
Run for 2 hours
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Oct 28, 2024
1 parent f76c009 commit 2210f05
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,23 +220,32 @@ jobs:
if: matrix.platform == 'ubuntu-24.04'
run: chmod a+x ubpf_fuzzer

# If this is a workflow call, run ubpf_fuzzer over each file in the corpus as a regression test.
- name: Run fuzzing regression
if: github.event_name == 'workflow_call'
run: |
./ubpf_fuzzer -merge fuzz/corpus new_corpus
# If this is a scheduled run or a manual run, run ubpf_fuzzer to attempt to find new crashes. Runs for 2 hours.
- name: Run fuzzing
if: matrix.platform == 'ubuntu-24.04'
if: matrix.platform == 'ubuntu-24.04' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
run: |
ls
UBPF_FUZZER_CONSTRAINT_CHECK=1 ./ubpf_fuzzer new_corpus -artifact_prefix=artifacts/ -use_value_profile=1 -max_total_time=300 -dict=dictionary.txt
UBPF_FUZZER_CONSTRAINT_CHECK=1 ./ubpf_fuzzer new_corpus -artifact_prefix=artifacts/ -use_value_profile=1 -max_total_time=7200 -dict=dictionary.txt
# If this is a scheduled run or a manual run, run ubpf_fuzzer to attempt to find new crashes. Runs for 2 hours.
- name: Run fuzzing
if: matrix.platform == 'windows-latest'
if: matrix.platform == 'ubuntu-24.04' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
run: |
ls
./ubpf_fuzzer new_corpus -artifact_prefix=artifacts/ -use_value_profile=1 -max_total_time=300
./ubpf_fuzzer new_corpus -artifact_prefix=artifacts/ -use_value_profile=1 -max_total_time=7200
# Merge the new corpus into the existing corpus and push the changes to the repository.
- name: Merge corpus into fuzz/corpus
if: ${{ github.event_name == 'schedule' }}
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: |
git pull
./ubpf_fuzzer -merge=1 fuzz/corpus new_corpus
git pull
git add fuzz/corpus
git config --global user.email '[email protected]'
git config --global user.name 'Github Action'
Expand Down

0 comments on commit 2210f05

Please sign in to comment.