From d548f7d218b3ee0ceec22adbc79d20ede8749ff5 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Mon, 6 Apr 2026 12:25:41 -0500 Subject: [PATCH] fuzz: exclude the SDK and CRT from code coverage reporting Right now, our coverage sits at 41%. If we exclude the code we did not author, that number should grow to _79%_. --- test/fuzz/OneFuzzConfig.json | 8 +++++--- test/fuzz/fuzzing-sources.txt | 10 ++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 test/fuzz/fuzzing-sources.txt diff --git a/test/fuzz/OneFuzzConfig.json b/test/fuzz/OneFuzzConfig.json index aadabc2..ae17c2c 100644 --- a/test/fuzz/OneFuzzConfig.json +++ b/test/fuzz/OneFuzzConfig.json @@ -27,7 +27,8 @@ "fuzz-inflate.pdb", "clang_rt.asan_dynamic-x86_64.dll" ], - "SdlWorkItemId": 58760469 + "SdlWorkItemId": 58760469, + "SourcesAllowListPath": "fuzzing-sources.txt" }, { "jobNotificationEmail": "condev@microsoft.com", @@ -55,7 +56,8 @@ "fuzz-inflate64.pdb", "clang_rt.asan_dynamic-x86_64.dll" ], - "SdlWorkItemId": 58760469 + "SdlWorkItemId": 58760469, + "SourcesAllowListPath": "fuzzing-sources.txt" } ] -} \ No newline at end of file +} diff --git a/test/fuzz/fuzzing-sources.txt b/test/fuzz/fuzzing-sources.txt new file mode 100644 index 0000000..f40fde7 --- /dev/null +++ b/test/fuzz/fuzzing-sources.txt @@ -0,0 +1,10 @@ +# When using a source-allow-list (which this is), you have to specify * for everything to be included +* + +# Now, exclude via wildcarded paths all of the following locations. +# This is because code-coverage data on our fuzzers shouldn't be covering +# how well we exercise the CRT, STL, etc. +! *vctools* +! *externalapis* +! *internal_shared.h +! *type_traits