Skip to content

Commit c53c30e

Browse files
committed
chore: Add time option to manual fuzz trigger.
This allows us to test things with less than 1 hour of waiting time.
1 parent 2ccecdc commit c53c30e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/cflite_batch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
schedule:
77
- cron: '0 6,8 * * *' # Run twice a day at low activity times
88
workflow_dispatch: # Manual trigger for testing
9+
inputs:
10+
fuzz-seconds:
11+
description: 'Number of seconds to fuzz (total, not per test)'
12+
required: false
13+
type: number
14+
default: 3600
915

1016
permissions: read-all
1117

@@ -30,7 +36,8 @@ jobs:
3036
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
3137
with:
3238
github-token: ${{ secrets.GITHUB_TOKEN }}
33-
fuzz-seconds: 3600 # 60min
39+
# 1 hour on schedule, configurable on manual trigger.
40+
fuzz-seconds: ${{ github.event.inputs.fuzz-seconds || 3600 }}
3441
mode: 'batch'
3542
sanitizer: ${{ matrix.sanitizer }}
3643
# Optional but recommended: For storing certain artifacts from fuzzing.

0 commit comments

Comments
 (0)