From 16ad5c2bee2edffc009829a80da3561b66639d30 Mon Sep 17 00:00:00 2001 From: Max Kainov Date: Thu, 17 Oct 2024 11:04:23 +0200 Subject: [PATCH] CI: Aarch64 build with Asan --- tests/ci/ci_config.py | 9 +++++++++ tests/ci/ci_definitions.py | 3 ++- tests/ci/test_ci_config.py | 5 ++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/ci/ci_config.py b/tests/ci/ci_config.py index a34ef624ce3..b9885a89444 100644 --- a/tests/ci/ci_config.py +++ b/tests/ci/ci_config.py @@ -97,6 +97,15 @@ class CI: ), runner_type=Runners.BUILDER_ARM, ), + BuildNames.PACKAGE_AARCH64_ASAN: CommonJobConfigs.BUILD.with_properties( + build_config=BuildConfig( + name=BuildNames.PACKAGE_AARCH64_ASAN, + compiler="clang-18-aarch64", + sanitizer="address", + package_type="deb", + ), + runner_type=Runners.BUILDER_ARM, + ), BuildNames.PACKAGE_ASAN: CommonJobConfigs.BUILD.with_properties( build_config=BuildConfig( name=BuildNames.PACKAGE_ASAN, diff --git a/tests/ci/ci_definitions.py b/tests/ci/ci_definitions.py index 26f17ed56c1..fc67959013b 100644 --- a/tests/ci/ci_definitions.py +++ b/tests/ci/ci_definitions.py @@ -100,12 +100,13 @@ class BuildNames(metaclass=WithIter): """ PACKAGE_RELEASE = "package_release" - PACKAGE_AARCH64 = "package_aarch64" PACKAGE_ASAN = "package_asan" PACKAGE_UBSAN = "package_ubsan" PACKAGE_TSAN = "package_tsan" PACKAGE_MSAN = "package_msan" PACKAGE_DEBUG = "package_debug" + PACKAGE_AARCH64 = "package_aarch64" + PACKAGE_AARCH64_ASAN = "package_aarch64_asan" PACKAGE_RELEASE_COVERAGE = "package_release_coverage" BINARY_RELEASE = "binary_release" BINARY_TIDY = "binary_tidy" diff --git a/tests/ci/test_ci_config.py b/tests/ci/test_ci_config.py index fc280a426e5..29b184a4e61 100644 --- a/tests/ci/test_ci_config.py +++ b/tests/ci/test_ci_config.py @@ -34,7 +34,10 @@ class TestCIConfig(unittest.TestCase): f"Job [{job}] must have style-checker(-aarch64) runner", ) elif "binary_" in job.lower() or "package_" in job.lower(): - if job.lower() == CI.BuildNames.PACKAGE_AARCH64: + if job.lower() in ( + CI.BuildNames.PACKAGE_AARCH64, + CI.BuildNames.PACKAGE_AARCH64_ASAN, + ): self.assertTrue( CI.JOB_CONFIGS[job].runner_type in (CI.Runners.BUILDER_ARM,), f"Job [{job}] must have [{CI.Runners.BUILDER_ARM}] runner",