Skip to content

Commit

Permalink
MINOR: [CI][C++] Make ASan job faster
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pitrou committed May 24, 2023
1 parent 53c0d33 commit 534a49e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 534a49e

Please sign in to comment.