Skip to content

Commit 484990f

Browse files
committed
Add scheduled github worklow job for Fuzzing
Signed-off-by: smoshiur1237 <moshiur.rahman@est.tech>
1 parent cf61ca9 commit 484990f

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Scheduled Fuzz Testing
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
fuzz_time:
8+
description: 'Fuzzing duration per test (e.g., 30s, 1m, 1h)'
9+
required: false
10+
default: '1m'
11+
type: string
12+
schedule:
13+
# Run every Monday at 4:42 AM UTC
14+
- cron: "42 4 * * 1"
15+
16+
permissions: {}
17+
18+
jobs:
19+
fuzz-tests:
20+
uses: metal3-io/project-infra/.github/workflows/scheduled-fuzz.yml@main # zizmor: ignore[unpinned-uses]
21+
permissions:
22+
contents: read
23+
issues: write
24+
with:
25+
fuzz_time: ${{ inputs.fuzz_time || '1m' }}
26+
create_issue: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fuzz-run: ## Run all fuzz tests sequentially with fuzzing enabled (use FUZZ_TIME
136136
@echo "Discovering fuzz tests..."
137137
@cd test/fuzz && go test -list='Fuzz.*' | grep '^Fuzz' | while read -r fuzz_test; do \
138138
echo "Running $$fuzz_test for $(FUZZ_TIME)..."; \
139-
go test -fuzz=$$fuzz_test -fuzztime=$(FUZZ_TIME) || exit 1; \
139+
go test -fuzz=$$fuzz_test -fuzztime='$(FUZZ_TIME)' || exit 1; \
140140
done
141141
@echo "All fuzz tests completed successfully!"
142142

0 commit comments

Comments
 (0)