-
Notifications
You must be signed in to change notification settings - Fork 135
153 lines (143 loc) · 5.34 KB
/
fuzz.yml
File metadata and controls
153 lines (143 loc) · 5.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: Fuzz
concurrency:
# The group causes runs to queue instead of running in parallel.
group: fuzz
# This ensures each run builds on the previous run's corpus discoveries rather than losing them to
# failed compare-and-swap uploads.
cancel-in-progress: false
on:
schedule:
- cron: "0 */4 * * *" # every 4 hours
workflow_dispatch: { }
jobs:
# ============================================================================
# IO Fuzzer
# ============================================================================
io_fuzz:
name: "IO Fuzz"
uses: ./.github/workflows/run-fuzzer.yml
with:
fuzz_target: file_io
family: "m8g.large"
image: "ubuntu24-full-arm64"
secrets:
R2_FUZZ_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
R2_FUZZ_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
report-io-fuzz-failures:
name: "Report IO Fuzz Failures"
needs: io_fuzz
if: always() && needs.io_fuzz.outputs.crashes_found == 'true'
permissions:
issues: write
contents: read
id-token: write
pull-requests: read
uses: ./.github/workflows/report-fuzz-crash.yml
with:
fuzz_target: file_io
crash_file: ${{ needs.io_fuzz.outputs.first_crash_name }}
artifact_url: ${{ needs.io_fuzz.outputs.artifact_url }}
artifact_name: file_io-crash-artifacts
logs_artifact_name: file_io-logs
branch: ${{ github.ref_name }}
commit: ${{ github.sha }}
secrets:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
incident_io_alert_token: ${{ secrets.INCIDENT_IO_ALERT_TOKEN }}
attempt-fix-io:
name: "Attempt Fix for IO Fuzz Crash"
needs: report-io-fuzz-failures
if: needs.report-io-fuzz-failures.outputs.issue_number != ''
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
uses: ./.github/workflows/fuzzer-fix-automation.yml
with:
issue_number: ${{ needs.report-io-fuzz-failures.outputs.issue_number }}
secrets: inherit
# ============================================================================
# Array Operations Fuzzer
# ============================================================================
ops_fuzz:
name: "Array Operations Fuzz"
uses: ./.github/workflows/run-fuzzer.yml
with:
fuzz_target: array_ops
family: "m8g.large"
image: "ubuntu24-full-arm64"
secrets:
R2_FUZZ_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
R2_FUZZ_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
report-ops-fuzz-failures:
name: "Report Array Operations Fuzz Failures"
needs: ops_fuzz
if: always() && needs.ops_fuzz.outputs.crashes_found == 'true'
permissions:
issues: write
contents: read
id-token: write
pull-requests: read
uses: ./.github/workflows/report-fuzz-crash.yml
with:
fuzz_target: array_ops
crash_file: ${{ needs.ops_fuzz.outputs.first_crash_name }}
artifact_url: ${{ needs.ops_fuzz.outputs.artifact_url }}
artifact_name: array_ops-crash-artifacts
logs_artifact_name: array_ops-logs
branch: ${{ github.ref_name }}
commit: ${{ github.sha }}
secrets:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
incident_io_alert_token: ${{ secrets.INCIDENT_IO_ALERT_TOKEN }}
# ============================================================================
# Compress Roundtrip Fuzzer
# ============================================================================
compress_fuzz:
name: "Compress Roundtrip Fuzz"
uses: ./.github/workflows/run-fuzzer.yml
with:
fuzz_target: compress_roundtrip
family: "m8g.large"
image: "ubuntu24-full-arm64"
secrets:
R2_FUZZ_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
R2_FUZZ_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
# ============================================================================
# GPU Compress Fuzzer (CUDA)
# ============================================================================
gpu_compress_fuzz:
name: "GPU Compress Fuzz"
uses: ./.github/workflows/run-fuzzer.yml
with:
fuzz_target: compress_gpu
family: "g4dn"
image: "ubuntu24-gpu-x64"
extra_features: "cuda"
secrets:
R2_FUZZ_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
R2_FUZZ_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
# report-gpu-compress-fuzz-failures:
# name: "Report GPU Compress Fuzz Failures"
# needs: gpu_compress_fuzz
# if: always() && needs.gpu_compress_fuzz.outputs.crashes_found == 'true'
# permissions:
# issues: write
# contents: read
# id-token: write
# pull-requests: read
# uses: ./.github/workflows/report-fuzz-crash.yml
# with:
# fuzz_target: compress_gpu
# crash_file: ${{ needs.gpu_compress_fuzz.outputs.first_crash_name }}
# artifact_url: ${{ needs.gpu_compress_fuzz.outputs.artifact_url }}
# artifact_name: compress_gpu-crash-artifacts
# logs_artifact_name: compress_gpu-logs
# branch: ${{ github.ref_name }}
# commit: ${{ github.sha }}
# secrets:
# claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# gh_token: ${{ secrets.GITHUB_TOKEN }}