update: prevent uploading corpus if running in PR, add sanitizers

This commit is contained in:
Yakov Olkhovskiy 2024-11-21 01:59:12 +00:00
parent 6d4c26dda5
commit 2313b7ca78
3 changed files with 41 additions and 1 deletions

View File

@ -278,6 +278,42 @@ class CI:
),
run_by_labels=[Tags.libFuzzer],
),
BuildNames.FUZZERS_ASAN: CommonJobConfigs.BUILD.with_properties(
build_config=BuildConfig(
name=BuildNames.FUZZERS_ASAN,
compiler="clang-18",
sanitizer="address",
package_type="fuzzers",
),
run_by_labels=[Tags.libFuzzer],
),
BuildNames.FUZZERS_UBSAN: CommonJobConfigs.BUILD.with_properties(
build_config=BuildConfig(
name=BuildNames.FUZZERS_UBSAN,
compiler="clang-18",
sanitizer="undefined",
package_type="fuzzers",
),
run_by_labels=[Tags.libFuzzer],
),
BuildNames.FUZZERS_TSAN: CommonJobConfigs.BUILD.with_properties(
build_config=BuildConfig(
name=BuildNames.FUZZERS_TSAN,
compiler="clang-18",
sanitizer="thread",
package_type="fuzzers",
),
run_by_labels=[Tags.libFuzzer],
),
BuildNames.FUZZERS_MSAN: CommonJobConfigs.BUILD.with_properties(
build_config=BuildConfig(
name=BuildNames.FUZZERS_MSAN,
compiler="clang-18",
sanitizer="memory",
package_type="fuzzers",
),
run_by_labels=[Tags.libFuzzer],
),
JobNames.BUILD_CHECK: CommonJobConfigs.BUILD_REPORT.with_properties(),
JobNames.INSTALL_TEST_AMD: CommonJobConfigs.INSTALL_TEST.with_properties(
required_builds=[BuildNames.PACKAGE_RELEASE]

View File

@ -123,6 +123,10 @@ class BuildNames(metaclass=WithIter):
BINARY_S390X = "binary_s390x"
BINARY_LOONGARCH64 = "binary_loongarch64"
FUZZERS = "fuzzers"
FUZZERS_ASAN = "fuzzers_asan"
FUZZERS_UBSAN = "fuzzers_ubsan"
FUZZERS_TSAN = "fuzzers_tsan"
FUZZERS_MSAN = "fuzzers_msan"
class JobNames(metaclass=WithIter):

View File

@ -292,7 +292,7 @@ def main():
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: