From 0e0a99c24597c9e5005c62e7e8cd1b539a73c925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Gaspard?= Date: Mon, 19 Feb 2024 17:27:22 +0000 Subject: [PATCH 1/2] =?UTF-8?q?remove=20unused=20import=20that=E2=80=99s?= =?UTF-8?q?=20breaking=20fuzzer=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runtime/near-vm/compiler-test-derive/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/near-vm/compiler-test-derive/src/lib.rs b/runtime/near-vm/compiler-test-derive/src/lib.rs index 16b6979e304..c1961e24d1d 100644 --- a/runtime/near-vm/compiler-test-derive/src/lib.rs +++ b/runtime/near-vm/compiler-test-derive/src/lib.rs @@ -1,7 +1,6 @@ use proc_macro::TokenStream; use quote::quote; use std::path::PathBuf; -use syn::parse; use syn::*; mod ignores; From ce75b2dd14be80e578fb8a04f99c1e695b997dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Gaspard?= Date: Mon, 19 Feb 2024 17:27:45 +0000 Subject: [PATCH 2/2] also disable -D warnings for fuzzer builds --- .github/workflows/master_fuzzer_binaries.yml | 2 +- .github/workflows/ondemand_fuzzer_binaries.yml | 2 +- Cargo.toml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master_fuzzer_binaries.yml b/.github/workflows/master_fuzzer_binaries.yml index 774b9c7bd5f..f5b961b9609 100644 --- a/.github/workflows/master_fuzzer_binaries.yml +++ b/.github/workflows/master_fuzzer_binaries.yml @@ -50,5 +50,5 @@ jobs: - name: "Compile fuzzers and upload to GCS" run: | NAME="nearcore-${{ github.ref_name }}-$(env TZ=Etc/UTC date +"%Y%m%d%H%M%S")" - RUSTFLAGS="-A warnings --cfg fuzz" cargo +nightly bolero build-clusterfuzz --all-features --profile fuzz + RUSTFLAGS="--cfg fuzz" cargo +nightly bolero build-clusterfuzz --all-features --profile fuzz gsutil cp -Z target/fuzz/clusterfuzz.tar "gs://fuzzer_targets/${{ github.ref_name }}/$NAME.tar.gz" diff --git a/.github/workflows/ondemand_fuzzer_binaries.yml b/.github/workflows/ondemand_fuzzer_binaries.yml index a9a5bc09881..9d8a350ab71 100644 --- a/.github/workflows/ondemand_fuzzer_binaries.yml +++ b/.github/workflows/ondemand_fuzzer_binaries.yml @@ -86,5 +86,5 @@ jobs: - name: "Compile fuzzers and upload to GCS" run: | NAME="nearcore-$branch_type-$(env TZ=Etc/UTC date +"%Y%m%d%H%M%S")" - RUSTFLAGS="-A warnings --cfg fuzz" cargo +nightly bolero build-clusterfuzz --all-features --profile fuzz + RUSTFLAGS="--cfg fuzz" cargo +nightly bolero build-clusterfuzz --all-features --profile fuzz gsutil cp -Z target/fuzz/clusterfuzz.tar "gs://fuzzer_targets/$branch_type/$NAME.tar.gz" diff --git a/Cargo.toml b/Cargo.toml index 0d5ef704436..4903bdfad4b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -97,6 +97,9 @@ members = [ [workspace.lints.rust] warnings = "deny" +[workspace.profile.fuzz.lints.rust] +warnings = { level = "allow", priority = 10 } + [workspace.lints.clippy] all = { level = "allow", priority = -100 } correctness = { level = "deny", priority = -50 }