You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2023/05/25 00:05:19 UTC

[arrow] branch main updated: MINOR: [CI][C++] Make ASan job faster (#35738)

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 7dce448676 MINOR: [CI][C++] Make ASan job faster (#35738)
7dce448676 is described below

commit 7dce448676af91f828c004f2f570ef9599575d81
Author: Antoine Pitrou <an...@python.org>
AuthorDate: Thu May 25 02:05:11 2023 +0200

    MINOR: [CI][C++] Make ASan job faster (#35738)
    
    ASAN + UBSAN massively increase the generated code size.
    
    The default compile cache size (1 GB) wasn't sufficient to hold all generated outputs, therefore the cache hit rate would be close to 0% (a cached object would be evicted before the first time it could be requested again).
    
    Also, save 5GB in the build directory by disabling static libraries.
    
    Authored-by: Antoine Pitrou <an...@python.org>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 docker-compose.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docker-compose.yml b/docker-compose.yml
index 5881460754..2f5513f0f5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -586,6 +586,8 @@ services:
       <<: *ccache
       CC: clang-${CLANG_TOOLS}
       CXX: clang++-${CLANG_TOOLS}
+      # Avoid creating huge static libraries
+      ARROW_BUILD_STATIC: "OFF"
       ARROW_ENABLE_TIMING_TESTS:  # inherit
       # GH-33920: Disable Flight SQL to reduce build time.
       # We'll be able to re-enable this with Ubuntu 24.04 because
@@ -598,6 +600,8 @@ services:
       ARROW_S3: "OFF"
       ARROW_USE_ASAN: "ON"
       ARROW_USE_UBSAN: "ON"
+      # 1 GB isn't enough for a single sanitizer build
+      CCACHE_MAXSIZE: 2G
       Protobuf_SOURCE: "AUTO"
     command: *cpp-command