From 20f269d49085b87fd430e6b92493253b33c56a2e Mon Sep 17 00:00:00 2001 From: Dave Thaler Date: Tue, 31 May 2022 09:57:09 -0700 Subject: [PATCH] Fix fuzzers in CI/CD Signed-off-by: Dave Thaler --- .github/workflows/cicd.yml | 28 +++++++++++++--------------- ebpf-for-windows.sln | 3 +++ 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 61294d2f87..585500e489 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -172,26 +172,24 @@ jobs: uses: ./.github/workflows/reusable-test.yml with: name: core_helper_fuzzer - test_command: core_helper_fuzzer core_helper_corpus -max_len=139 -runs=3000 -use_value_profile=1 + test_command: core_helper_fuzzer core_helper_corpus -max_len=139 -runs=2000 -use_value_profile=1 build_artifact: Build-x64-fuzzer environment: windows-2019 code_coverage: false gather_dumps: true - # TODO: Enable this once a corpus is available. - # - #execution_context_fuzzer: - # needs: libfuzzer - # # Always run this job. - # if: github.event_name == 'schedule' || github.event_name == 'pull_request' - # uses: ./.github/workflows/reusable-test.yml - # with: - # name: execution_context_fuzzer - # test_command: execution_context_fuzzer.exe execution_context_fuzzer_corpus -use_value_profile=1 -max_total_time=1800 - # build_artifact: Build-x64-fuzzer - # environment: windows-2019 - # code_coverage: false - # gather_dumps: true + execution_context_fuzzer: + needs: libfuzzer + # Always run this job. + if: github.event_name == 'schedule' || github.event_name == 'pull_request' + uses: ./.github/workflows/reusable-test.yml + with: + name: execution_context_fuzzer + test_command: execution_context_fuzzer.exe execution_context_fuzzer_corpus -use_value_profile=1 -runs=3000 + build_artifact: Build-x64-fuzzer + environment: windows-2019 + code_coverage: false + gather_dumps: true verifier_fuzzer: needs: libfuzzer diff --git a/ebpf-for-windows.sln b/ebpf-for-windows.sln index 4234b11a6f..4e0fa845b1 100644 --- a/ebpf-for-windows.sln +++ b/ebpf-for-windows.sln @@ -154,6 +154,9 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "execution_context_fuzzer", "tests\libfuzzer\execution_context\execution_context_fuzzer.vcxproj", "{6116AE11-5296-4DE9-8A8E-5380B789907E}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bpf2c_fuzzer", "tests\libfuzzer\bpf2c\bpf2c_fuzzer.vcxproj", "{A0A0D663-DCF7-4BB1-9DDB-7964C3C31603}" + ProjectSection(ProjectDependencies) = postProject + {B4AD72E3-754E-40CA-9CEA-D3F2C9170E51} = {B4AD72E3-754E-40CA-9CEA-D3F2C9170E51} + EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "verifier_fuzzer", "tests\libfuzzer\verifier\verifier_fuzzer.vcxproj", "{DCF12929-B975-4874-A80F-9EAF1CC5A5A0}" EndProject