From d88b5e4aa728515ab1a668fcc60dbb17c1658286 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Wed, 4 Aug 2021 06:42:17 -0700 Subject: [CIFuzz] Add support for external projects to helper.py (#6141) Add support to helper.py for external projects for all subcommands except `download_corpora`. External users just need to specify `build_integration_path`, `project_src_path` and `external`. Also do a big refactor to pass a project object as part of args instead of a string containing the name of the project or its path. Related: #6125 --- infra/build_specified_commit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'infra/build_specified_commit.py') diff --git a/infra/build_specified_commit.py b/infra/build_specified_commit.py index 798010b7b..4768275e1 100644 --- a/infra/build_specified_commit.py +++ b/infra/build_specified_commit.py @@ -147,7 +147,7 @@ def copy_src_from_docker(project_name, host_dir): @retry.wrap(_IMAGE_BUILD_TRIES, 2) def _build_image_with_retries(project_name): """Build image with retries.""" - return helper.build_image_impl(project_name) + return helper.build_image_impl(helper.Project(project_name)) def get_required_post_checkout_steps(dockerfile_path): @@ -223,7 +223,8 @@ def build_fuzzers_from_commit(commit, post_checkout_step, ]) - result = helper.build_fuzzers_impl(project_name=build_data.project_name, + project = helper.Project(build_data.project_name) + result = helper.build_fuzzers_impl(project=project, clean=True, engine=build_data.engine, sanitizer=build_data.sanitizer, -- cgit v1.2.3