aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/cifuzz/actions
diff options
context:
space:
mode:
authorGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2020-08-05 18:45:12 -0700
committerGravatar GitHub <noreply@github.com>2020-08-05 18:45:12 -0700
commit55d9a81cd799f34ffbd688766aef5f463c9aac73 (patch)
treea986ef8d51393a138f7ee24dbe0252ea48b75df6 /infra/cifuzz/actions
parent909db51a156141139bfa746cdd3ca485668a0121 (diff)
[CIFuzz] Allow supplying a manual source checkout (#4250)
Make CIFuzz building accept an env var `MANUAL_SRC_PATH` that points to a manually prepared checkout of the project-under-tests's source code. This allows projects like Skia which are not on OSS-Fuzz and/or need to make changes to the repo after checking out the right commit to use CIFuzz. Note that for now we aren't supporting this in GitHub, so projects that need to modify the source after checkout can't use it until we do support it. Also, use the local copy of OSS-Fuzz when building cifuzz-base instead of cloning it from GitHub. This makes local debugging/development much easier since it allows one to use CIFuzz with local changes.
Diffstat (limited to 'infra/cifuzz/actions')
-rw-r--r--infra/cifuzz/actions/build_fuzzers/build_fuzzers_entrypoint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/infra/cifuzz/actions/build_fuzzers/build_fuzzers_entrypoint.py b/infra/cifuzz/actions/build_fuzzers/build_fuzzers_entrypoint.py
index 74cd2d49..f46e6390 100644
--- a/infra/cifuzz/actions/build_fuzzers/build_fuzzers_entrypoint.py
+++ b/infra/cifuzz/actions/build_fuzzers/build_fuzzers_entrypoint.py
@@ -97,7 +97,8 @@ def main():
out_dir = os.path.join(workspace, 'out')
if cifuzz.check_fuzzer_build(out_dir, sanitizer=sanitizer):
- return 0
+ returncode = 0
+
return returncode