Skip to content

Commit

Permalink
update fuzzer workflow (#1310)
Browse files Browse the repository at this point in the history
Co-authored-by: dafifynn <[email protected]>
  • Loading branch information
daphneherlambda and dafifynn authored Jul 3, 2023
1 parent 6e7d83b commit a1ec8d8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/fuzzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
# At the end of every day
- cron: "0 0 * * *"
jobs:
changelog:
run-fuzzers:
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -37,19 +37,17 @@ jobs:
- name: Install Honggfuzz
run: cargo install honggfuzz

- if: ${{ steps.cache-inputs.outputs.cache-hit != 'true' }}
# If didn´t have any inputs starts from 0
name: Initializing fuzzer from 0
# If has cached inputs starts with them or else starts from 0
- name: Initializing fuzzer with previous inputs
run: |
cd fuzzer
HFUZZ_RUN_ARGS="--dict=json.dict --run_time 10800 --timeout 60 -T" cargo hfuzz run fuzz_json
# If has cached inputs starts with them and run with minimize
- if: ${{ steps.cache-inputs.outputs.cache-hit != 'false' }}
name: Initializing fuzzer with previous inputs
# run the fuzzer with minimize to reduce inputs
- name: Initializing fuzzer with minimize
run: |
cd fuzzer
HFUZZ_RUN_ARGS="--dict=json.dict --run_time 10800 --minimize --timeout 60 -T" cargo hfuzz run fuzz_json
HFUZZ_RUN_ARGS="--dict=json.dict --minimize --timeout 60 -T" cargo hfuzz run fuzz_json
- uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

1 comment on commit a1ec8d8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: a1ec8d8 Previous: 6e7d83b Ratio
add_u64_with_felt/1 3 ns/iter (± 0) 2 ns/iter (± 0) 1.50
add_u64_with_felt/5 2 ns/iter (± 0) 1 ns/iter (± 0) 2

This comment was automatically generated by workflow using github-action-benchmark.

CC: @unbalancedparentheses

Please sign in to comment.