mirror of https://github.com/google/oss-fuzz.git
![]() Share more code between the 4 implementations of `prepare_for_fuzzer_build`. This simplifies the code of these implementations, reduces repetition and makes them easier to understand. Create helper functions/methods for: 1. Creating a failed `BuildPreparationResult`: `get_build_preparation_failure` 2. Building an external project docker image: `_build_external_project_docker_image` 3. Cloning a repo and checking out the specified commit/pr: `_clone_repo_and_checkout` 4. Detecting the main repo `_detect_main_repo` 5. Creating a repo manager from an existing checkout: `_create_repo_manager_for_project_src_path` Change `ExternalGeneric` implementation of `prepare_for_fuzzer_build` to: 1. Call `_create_repo_manager_for_project_src_path` 2. Call `_build_external_project_docker_image` Change `InternalGeneric` implementation of `prepare_for_fuzzer_build` to: 1. Call `_detect_main_repo` 2. Call `_create_repo_manager_for_project_src_path` Change `ExternalGithub` implementation of `prepare_for_fuzzer_build` to: 1. Call `_clone_repo_and_checkout` 2. Call `_build_external_project_docker_image` Change `InternalGithub` implementation of `prepare_for_fuzzer_build` to: 1. Call `_detect_main_repo` 2. Call `_clone_repo_and_checkout` |
||
---|---|---|
.. | ||
actions | ||
cifuzz-base | ||
external-actions | ||
filestore | ||
test_data | ||
affected_fuzz_targets.py | ||
affected_fuzz_targets_test.py | ||
base_runner_utils.py | ||
build-images.sh | ||
build_fuzzers.py | ||
build_fuzzers_entrypoint.py | ||
build_fuzzers_test.py | ||
cifuzz_combined_entrypoint.py | ||
cifuzz_end_to_end_test.py | ||
cloudbuild.yaml | ||
clusterfuzz_deployment.py | ||
clusterfuzz_deployment_test.py | ||
config_utils.py | ||
config_utils_test.py | ||
continuous_integration.py | ||
continuous_integration_test.py | ||
docker.py | ||
docker_test.py | ||
environment.py | ||
example_main.yml | ||
filestore_utils.py | ||
filestore_utils_test.py | ||
fuzz_target.py | ||
fuzz_target_test.py | ||
generate_coverage_report.py | ||
generate_coverage_report_test.py | ||
get_coverage.py | ||
get_coverage_test.py | ||
http_utils.py | ||
http_utils_test.py | ||
logs.py | ||
package-lock.json | ||
package.json | ||
requirements.txt | ||
run_cifuzz.py | ||
run_fuzzers.py | ||
run_fuzzers_entrypoint.py | ||
run_fuzzers_test.py | ||
stack_parser.py | ||
stack_parser_test.py | ||
test_helpers.py | ||
workspace_utils.py |