Skip to content

Commit 88bc513

Browse files
authored
Merge pull request #58 from DataDog/anilm3/fuzzer-wd
Add workflow dispatch option to fuzzer
2 parents 910df60 + d7dac87 commit 88bc513

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/fuzz.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
pull_request:
77
branches:
88
- "**"
9+
workflow_dispatch:
10+
inputs:
11+
duration:
12+
description: 'Duration of the fuzzing run in seconds'
13+
required: true
14+
default: "60"
15+
type: string
16+
917

1018
jobs:
1119
fuzzing:
@@ -24,8 +32,8 @@ jobs:
2432
- name: Build
2533
run: ./fuzzing/build.sh
2634

27-
- name: Run fuzzer for 1 minute
28-
run: ./fuzzing/run.sh 60
35+
- name: Run fuzzer
36+
run: ./fuzzing/run.sh ${{ github.event.inputs.duration }}
2937

3038
- name: Log
3139
if: ${{ always() }}

fuzzing/run.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ export ASAN_OPTIONS=detect_leaks=1
1010

1111
rm -f fuzz-*.log
1212

13-
echo "Run fuzzer for ${1:-30} seconds"
14-
./fuzzer -timeout=0.1 -report_slow_units=0.01 -max_total_time=${1:-30} -max_len=1000 -rss_limit_mb=4096 -use_value_profile=1 -dict=sample_dict.txt -artifact_prefix=results/ -jobs=4 -workers=4 -reload=0 corpus
15-
# ./fuzzer -timeout=0.1 -report_slow_units=0.01 -max_total_time=${1:-30} -max_len=1000 -rss_limit_mb=4096 -use_value_profile=1 -dict=sample_dict.txt -artifact_prefix=results/ -reload=0 corpus
13+
echo "Run fuzzer for ${1:-60} seconds"
14+
./fuzzer -timeout=0.1 -report_slow_units=0.01 -max_total_time=${1:-60} -max_len=1000 -rss_limit_mb=4096 -use_value_profile=1 -dict=sample_dict.txt -artifact_prefix=results/ -jobs=4 -workers=4 -reload=0 corpus

0 commit comments

Comments
 (0)