Skip to content

Commit 83c78b0

Browse files
authored
Merge pull request #7484 from roc-lang/new-fuzzer-workflow
added fuzzer workflow
2 parents b2f07cd + 891f5a7 commit 83c78b0

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/ci_manager.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ jobs:
124124
if: needs.check-changes.outputs.run_tests == 'full'
125125
uses: ./.github/workflows/benchmarks.yml
126126

127+
start-fuzzer-tests:
128+
needs: check-changes
129+
if: needs.check-changes.outputs.run_tests == 'full'
130+
uses: ./.github/workflows/fuzzer.yml
131+
127132
ran-full:
128133
runs-on: ubuntu-22.04
129134
needs: [
@@ -136,7 +141,7 @@ jobs:
136141
start-ubuntu-x86-64-nix-tests-debug,
137142
start-windows-release-build-test,
138143
start-windows-tests,
139-
start-roc-benchmarks,
144+
start-roc-benchmarks
140145
]
141146
steps:
142147
- run: echo "all workflows succeeded!"

.github/workflows/fuzzer.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
workflow_call:
3+
4+
name: CI
5+
6+
env:
7+
RUST_BACKTRACE: 1
8+
9+
jobs:
10+
fuzz-test-parser:
11+
name: Fuzz test parser (allowed to fail). Do check this if you've made changes to the parser.
12+
runs-on: [self-hosted, i7-6700K]
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: run fuzz tests - ok to merge if this one fails # for now!
18+
run: |
19+
cargo +nightly-2024-02-03 install --locked cargo-fuzz
20+
cd crates/compiler/test_syntax/fuzz && cargo +nightly-2024-02-03 fuzz run -j4 fuzz_expr --sanitizer=none -- -dict=dict.txt -max_total_time=60

0 commit comments

Comments
 (0)