You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ap...@apache.org on 2019/05/15 14:26:54 UTC

[arrow] branch master updated: ARROW-5323: [CI] Compress clcache files [skip travis]

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 85420d5  ARROW-5323: [CI] Compress clcache files [skip travis]
85420d5 is described below

commit 85420d5e1a2239ac2ffdd2cce0284a553f2c3ccd
Author: Antoine Pitrou <an...@python.org>
AuthorDate: Wed May 15 16:26:43 2019 +0200

    ARROW-5323: [CI] Compress clcache files [skip travis]
    
    It seems this makes the cache 8x smaller for a similar set of files.
    
    Author: Antoine Pitrou <an...@python.org>
    
    Closes #4315 from pitrou/ARROW-5323-clcache-compression and squashes the following commits:
    
    a7ac1ad5d <Antoine Pitrou> ARROW-5323:  Compress clcache files
---
 appveyor.yml               | 9 ++++++++-
 ci/appveyor-cpp-setup.bat  | 2 --
 ci/cpp-msvc-build-main.bat | 1 -
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml
index 6432fb7..bf54ed5 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -32,7 +32,7 @@ only_commits:
     - rust/
 
 cache:
-  - C:\Users\Appveyor\clcache
+  - C:\Users\Appveyor\clcache1
   - C:\Users\Appveyor\.cargo\registry
   - '%LocalAppData%\\go-build'
 
@@ -41,7 +41,14 @@ matrix:
 
 environment:
   global:
+    # Make these variables visible in all jobs and build steps
     USE_CLCACHE: true
+    # Change the clcache dir to reset caches everywhere when a setting
+    # is changed incompatibly (e.g. CLCACHE_COMPRESS).
+    CLCACHE_DIR: C:\Users\Appveyor\clcache1
+    CLCACHE_SERVER: 1
+    CLCACHE_COMPRESS: 1
+    CLCACHE_COMPRESSLEVEL: 6
     ARROW_BUILD_GANDIVA: "OFF"
     ARROW_LLVM_VERSION: "7.0.*"
     PYTHON: "3.6"
diff --git a/ci/appveyor-cpp-setup.bat b/ci/appveyor-cpp-setup.bat
index 4cae2cb..0f5868a 100644
--- a/ci/appveyor-cpp-setup.bat
+++ b/ci/appveyor-cpp-setup.bat
@@ -48,7 +48,5 @@ if "%USE_CLCACHE%" == "true" (
     clcache -M 500000000
     clcache -c
     clcache -s
-    set CLCACHE_SERVER=1
-    set CLCACHE_HARDLINK=1
     powershell.exe -Command "Start-Process clcache-server"
 )
diff --git a/ci/cpp-msvc-build-main.bat b/ci/cpp-msvc-build-main.bat
index 13dab24..c9f8b4d 100644
--- a/ci/cpp-msvc-build-main.bat
+++ b/ci/cpp-msvc-build-main.bat
@@ -60,7 +60,6 @@ cmake -G "%GENERATOR%" %CMAKE_ARGS% ^
       -DARROW_BUILD_STATIC=OFF ^
       -DARROW_BUILD_TESTS=ON ^
       -DARROW_BUILD_EXAMPLES=ON ^
-      -DARROW_BUILD_EXAMPLES=ON ^
       -DARROW_VERBOSE_THIRDPARTY_BUILD=ON ^
       -DARROW_CXXFLAGS="%ARROW_CXXFLAGS%" ^
       -DCMAKE_CXX_FLAGS_RELEASE="/MD %CMAKE_CXX_FLAGS_RELEASE%" ^