Skip to content

Commit b1c6d52

Browse files
committed
Reduce CI fuzz iterations as we're now timing out
When we made `test_node_counter_consistency` more aggressively run, our `process_network_graph` fuzzer got materially slower, resulting in consistent fuzz CI job timeouts. Thus, here, we tweak the iteration count on all our fuzz jobs to get them running in more consistent times. Further, we further reduce `full_stack_target` iterations in anticipation of a later commit which will start using our hard-coded fuzz seeds, creating substantially more coverage and slowing down fuzzing iterations.
1 parent c4d23bc commit b1c6d52

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

fuzz/ci-fuzz.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ rm *_target.rs
1414
popd
1515

1616
cargo install --color always --force honggfuzz --no-default-features
17+
# Because we're fuzzing relatively few iterations, the maximum possible
18+
# compiler optimizations aren't necessary, so switch to defaults.
1719
sed -i 's/lto = true//' Cargo.toml
1820

1921
export RUSTFLAGS="--cfg=secp256k1_fuzz --cfg=hashes_fuzz"
@@ -25,11 +27,13 @@ for TARGET in src/bin/*.rs; do
2527
FILE="${FILENAME%.*}"
2628
HFUZZ_RUN_ARGS="--exit_upon_crash -v -n2"
2729
if [ "$FILE" = "chanmon_consistency_target" ]; then
28-
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N100000"
29-
elif [ "$FILE" = "full_stack_target" ]; then
30-
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -t0 -N1000000"
30+
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64 -N5000"
31+
elif [ "$FILE" = "process_network_graph_target" -o "$FILE" = "full_stack_target" -o "$FILE" = "router_target" ]; then
32+
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N50000"
33+
elif [ "$FILE" = "indexedmap_target" ]; then
34+
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N500000"
3135
else
32-
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"
36+
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N2500000"
3337
fi
3438
export HFUZZ_RUN_ARGS
3539
cargo --color always hfuzz run $FILE

0 commit comments

Comments
 (0)