This commit is contained in:
Yakov Olkhovskiy 2024-11-21 00:57:32 -05:00 committed by GitHub
commit 2d6c4790c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,2 @@
clickhouse_add_executable(data_type_deserialization_fuzzer data_type_deserialization_fuzzer.cpp ${SRCS}) clickhouse_add_executable(data_type_deserialization_fuzzer data_type_deserialization_fuzzer.cpp ${SRCS})
target_link_libraries(data_type_deserialization_fuzzer PRIVATE clickhouse_aggregate_functions dbms) target_link_libraries(data_type_deserialization_fuzzer PRIVATE clickhouse_aggregate_functions dbms)

View File

@ -274,6 +274,7 @@ class CI:
build_config=BuildConfig( build_config=BuildConfig(
name=BuildNames.FUZZERS, name=BuildNames.FUZZERS,
compiler="clang-18", compiler="clang-18",
sanitizer="address",
package_type="fuzzers", package_type="fuzzers",
), ),
run_by_labels=[Tags.libFuzzer], run_by_labels=[Tags.libFuzzer],

View File

@ -21,7 +21,7 @@ from s3_helper import S3Helper
from stopwatch import Stopwatch from stopwatch import Stopwatch
from tee_popen import TeePopen from tee_popen import TeePopen
TIMEOUT = 60 TIMEOUT = 60 * 5
NO_CHANGES_MSG = "Nothing to run" NO_CHANGES_MSG = "Nothing to run"
s3 = S3Helper() s3 = S3Helper()
@ -286,7 +286,15 @@ def main():
retcode = process.wait() retcode = process.wait()
if retcode == 0: if retcode == 0:
logging.info("Run successfully") logging.info("Run successfully")
if (
pr_info.number == 0
and pr_info.base_ref == "master"
and pr_info.head_ref == "master"
):
logging.info("Uploading corpus - running in master")
upload_corpus(fuzzers_path) upload_corpus(fuzzers_path)
else:
logging.info("Not uploading corpus - running in PR")
else: else:
logging.info("Run failed") logging.info("Run failed")