Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Run nomination-pool fuzzer tests in ci #14472

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions scripts/ci/gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -463,16 +463,29 @@ cargo-hfuzz:
HFUZZ_BUILD_ARGS: >
--config=patch.crates-io.honggfuzz.git="https://github.com/altaua/honggfuzz-rs"
--config=patch.crates-io.honggfuzz.rev="205f7c8c059a0d98fe1cb912cdac84f324cb6981"
SUBSTRATE_FUZZER_DIRS: >
frame/nomination-pools/fuzzer
primitives/arithmetic/fuzzer
artifacts:
name: "hfuzz-$CI_COMMIT_SHORT_SHA"
expire_in: 7 days
when: on_failure
paths:
- frame/nomination-pools/fuzzer/hfuzz_workspace/
- primitives/arithmetic/fuzzer/hfuzz_workspace/
allow_failure: true
script:
- cd ./primitives/arithmetic/fuzzer
- rusty-cachier snapshot create
- cargo hfuzz build
- for dir in ${SUBSTRATE_FUZZER_DIRS}; do
pushd "${dir}";
cargo hfuzz build;
popd;
done
- rusty-cachier cache upload
- for target in $(cargo read-manifest | jq -r '.targets | .[] | .name'); do
cargo hfuzz run "$target" || { printf "fuzzing failure for %s\n" "$target"; exit 1; }; done
- for dir in ${SUBSTRATE_FUZZER_DIRS}; do
pushd "${dir}";
for target in $(cargo read-manifest | jq -r '.targets | .[] | .name'); do
cargo hfuzz run "$target" || { printf "fuzzing failure for %s\n" "$target"; exit 1; };
done;
popd;
done;