Skip to content

Commit 42085b9

Browse files
authored
Merge pull request #3916 from tnull/2025-07-avoid-fuzz-disk-fullness
Try to avoid `fuzz` disk fullness
2 parents 389b6d1 + f6238fc commit 42085b9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ jobs:
4949
run: |
5050
rustup target add thumbv7m-none-eabi
5151
sudo apt-get -y install gcc-arm-none-eabi
52+
sudo apt-get clean
5253
- name: shellcheck the CI and `contrib` scripts
5354
if: "matrix.platform == 'ubuntu-latest'"
5455
run: |
5556
sudo apt-get -y install shellcheck
57+
sudo apt-get clean
5658
shellcheck ci/*.sh -aP ci
5759
shellcheck contrib/*.sh -aP contrib
5860
- name: Set RUSTFLAGS to deny warnings
@@ -260,6 +262,7 @@ jobs:
260262
run: |
261263
sudo apt-get update
262264
sudo apt-get -y install build-essential binutils-dev libunwind-dev
265+
sudo apt-get clean
263266
- name: Pin the regex dependency
264267
run: |
265268
cd fuzz && cargo update -p regex --precise "1.9.6" --verbose

fuzz/ci-fuzz.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ export RUSTFLAGS="--cfg=secp256k1_fuzz --cfg=hashes_fuzz"
1818
mkdir -p hfuzz_workspace/full_stack_target/input
1919
pushd write-seeds
2020
RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" cargo run ../hfuzz_workspace/full_stack_target/input
21+
cargo clean
2122
popd
2223

2324
cargo install --color always --force honggfuzz --no-default-features
25+
2426
# Because we're fuzzing relatively few iterations, the maximum possible
25-
# compiler optimizations aren't necessary, so switch to defaults.
27+
# compiler optimizations aren't necessary, so we turn off LTO
2628
sed -i 's/lto = true//' Cargo.toml
27-
sed -i 's/codegen-units = 1//' Cargo.toml
2829

2930
export HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz"
3031

0 commit comments

Comments
 (0)