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

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


The following commit(s) were added to refs/heads/master by this push:
     new 388f067300 [chore](workflow) Disable memory tracker by default on BE 
UT (macOS) (#14508)
388f067300 is described below

commit 388f067300d16324c38ee259b05f8217513e99a5
Author: Adonis Ling <[email protected]>
AuthorDate: Wed Nov 23 16:25:42 2022 +0800

    [chore](workflow) Disable memory tracker by default on BE UT (macOS) 
(#14508)
---
 .github/workflows/be-ut-clang.yml |  3 ++-
 .github/workflows/be-ut-mac.yml   |  3 ++-
 run-be-ut.sh                      | 10 +++++++++-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/be-ut-clang.yml 
b/.github/workflows/be-ut-clang.yml
index 5e2914ebdd..c00d010361 100644
--- a/.github/workflows/be-ut-clang.yml
+++ b/.github/workflows/be-ut-clang.yml
@@ -38,8 +38,9 @@ jobs:
       - name: Ccache ${{ github.ref }}
         uses: ./.github/actions/ccache-action
         with:
-          key: BE UT Clang
+          key: BE-UT-Clang
           max-size: "2G"
+          restore-keys: BE-UT-Clang-
 
       - name: Paths filter
         uses: ./.github/actions/paths-filter
diff --git a/.github/workflows/be-ut-mac.yml b/.github/workflows/be-ut-mac.yml
index 76ec00988c..9b15bce7d0 100644
--- a/.github/workflows/be-ut-mac.yml
+++ b/.github/workflows/be-ut-mac.yml
@@ -38,8 +38,9 @@ jobs:
       - name: Ccache ${{ github.ref }}
         uses: ./.github/actions/ccache-action
         with:
-          key: BE UT macOS
+          key: BE-UT-macOS
           max-size: "2G"
+          restore-keys: BE-UT-macOS-
 
       - name: Paths filter
         uses: ./.github/actions/paths-filter
diff --git a/run-be-ut.sh b/run-be-ut.sh
index ad43ce3f22..c3e76a0d6a 100755
--- a/run-be-ut.sh
+++ b/run-be-ut.sh
@@ -152,6 +152,14 @@ if [[ -z "${USE_LIBCPP}" ]]; then
     fi
 fi
 
+if [[ -z "${USE_MEM_TRACKER}" ]]; then
+    if [[ "$(uname -s)" != 'Darwin' ]]; then
+        USE_MEM_TRACKER='ON'
+    else
+        USE_MEM_TRACKER='OFF'
+    fi
+fi
+
 if [[ -z "${USE_DWARF}" ]]; then
     USE_DWARF='OFF'
 fi
@@ -172,7 +180,7 @@ cd "${CMAKE_BUILD_DIR}"
     -DBUILD_BENCHMARK_TOOL="${BUILD_BENCHMARK_TOOL}" \
     -DWITH_MYSQL=OFF \
     -DUSE_DWARF="${USE_DWARF}" \
-    -DUSE_MEM_TRACKER=ON \
+    -DUSE_MEM_TRACKER="${USE_MEM_TRACKER}" \
     -DUSE_JEMALLOC=OFF \
     -DSTRICT_MEMORY_USE=OFF \
     -DEXTRA_CXX_FLAGS="${EXTRA_CXX_FLAGS}" \


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to