From 28b35e36fea5284c45f56d92e06153cc5b502945 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Fri, 19 Feb 2021 11:54:15 -0800 Subject: [CIFuzz] Support languages non-C++ projects (e.g. Python projects) (#5222) Allow use of non-C++ projects by specifying the language in the workflow file. Fixes #5195 --- infra/cifuzz/build_fuzzers_entrypoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'infra/cifuzz/build_fuzzers_entrypoint.py') diff --git a/infra/cifuzz/build_fuzzers_entrypoint.py b/infra/cifuzz/build_fuzzers_entrypoint.py index 9c4b98215..ddae68197 100644 --- a/infra/cifuzz/build_fuzzers_entrypoint.py +++ b/infra/cifuzz/build_fuzzers_entrypoint.py @@ -75,7 +75,8 @@ def main(): # yapf: disable if build_fuzzers.check_fuzzer_build( out_dir, - sanitizer=config.sanitizer, + config.sanitizer, + config.language, allowed_broken_targets_percentage=config.allowed_broken_targets_percentage ): # yapf: enable -- cgit v1.2.3 From 00ad715801a8d3a2041b571968526221b7d9668f Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Tue, 23 Mar 2021 09:22:53 -0700 Subject: [CIFuzz] Make it possible to skip bad build check. (#5475) This will mainly be useful for non-OSS-Fuzz users. Though it can also be used by OSS-Fuzz users to speed things up (very slightly in most cases). Fixes #4377 --- infra/cifuzz/build_fuzzers_entrypoint.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'infra/cifuzz/build_fuzzers_entrypoint.py') diff --git a/infra/cifuzz/build_fuzzers_entrypoint.py b/infra/cifuzz/build_fuzzers_entrypoint.py index ddae68197..04f562068 100644 --- a/infra/cifuzz/build_fuzzers_entrypoint.py +++ b/infra/cifuzz/build_fuzzers_entrypoint.py @@ -72,8 +72,13 @@ def main(): return returncode out_dir = os.path.join(config.workspace, 'out') + + if not config.bad_build_check: + # If we've gotten to this point and we don't need to do bad_build_check, + # then the build has succeeded. + returncode = 0 # yapf: disable - if build_fuzzers.check_fuzzer_build( + elif build_fuzzers.check_fuzzer_build( out_dir, config.sanitizer, config.language, -- cgit v1.2.3