-
Notifications
You must be signed in to change notification settings - Fork 34
95 lines (92 loc) · 3.48 KB
/
fuzz.yml
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
name: Fuzz
on:
schedule:
- cron: '0 0 * * *' # daily
workflow_dispatch:
jobs:
io_fuzz:
name: 'IO Fuzz'
runs-on:
- runs-on=${{ github.run_id }}
- family=c7i.xlarge
- image=ubuntu24-full-x64
- disk=large
- tag=io-fuzz
steps:
- uses: runs-on/action@v1
- uses: actions/checkout@v4
- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-rust
- name: Install cargo fuzz
run: cargo install cargo-fuzz
- name: Restore corpus
shell: bash
run: |
aws s3 cp s3://vortex-fuzz-corpus/io_corpus.tar.zst .
tar -xf io_corpus.tar.zst
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
AWS_ENDPOINT_URL: 'https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com'
- name: Run fuzzing target
run: RUST_BACKTRACE=1 cargo fuzz run file_io -- -max_total_time=7200
continue-on-error: true
- name: Archive crash artifacts
uses: actions/upload-artifact@v4
with:
name: io-fuzzing-crash-artifacts
path: fuzz/artifacts
- name: Persist corpus
shell: bash
run: |
tar -acf io_corpus.tar.zst fuzz/corpus/file_io
aws s3api put-object --bucket vortex-fuzz-corpus --key "io_corpus.tar.zst" --body io_corpus.tar.zst --checksum-algorithm CRC32
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
AWS_ENDPOINT_URL: 'https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com'
ops_fuzz:
name: 'Array Operations Fuzz'
runs-on:
- runs-on=${{ github.run_id }}
- family=c7i.xlarge
- image=ubuntu24-full-x64
- disk=large
- tag=ops-fuzz
steps:
- uses: runs-on/action@v1
- uses: actions/checkout@v4
- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-rust
- name: Install cargo fuzz
run: cargo install cargo-fuzz
- name: Restore corpus
shell: bash
run: |
aws s3 cp s3://vortex-fuzz-corpus/array_ops_corpus.tar.zst .
tar -xf array_ops_corpus.tar.zst
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
AWS_ENDPOINT_URL: 'https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com'
- name: Run fuzzing target
run: RUST_BACKTRACE=1 cargo fuzz run array_ops -- -max_total_time=7200
continue-on-error: true
- name: Archive crash artifacts
uses: actions/upload-artifact@v4
with:
name: operations-fuzzing-crash-artifacts
path: fuzz/artifacts
- name: Persist corpus
shell: bash
run: |
tar -acf array_ops_corpus.tar.zst fuzz/corpus/array_ops
aws s3api put-object --bucket vortex-fuzz-corpus --key "array_ops_corpus.tar.zst" --body array_ops_corpus.tar.zst --checksum-algorithm CRC32
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_FUZZ_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
AWS_ENDPOINT_URL: 'https://01e9655179bbec953276890b183039bc.r2.cloudflarestorage.com'