This is an automated email from the ASF dual-hosted git repository.
jacktengg 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 e6d24420abb [fix](ci) clear coredump files to avoid disk full (#34900)
e6d24420abb is described below
commit e6d24420abb68b2a7fde05107b912878beb4d185
Author: Dongyang Li <[email protected]>
AuthorDate: Thu May 16 15:32:30 2024 +0800
[fix](ci) clear coredump files to avoid disk full (#34900)
Co-authored-by: stephen <[email protected]>
---
regression-test/pipeline/cloud_p0/prepare.sh | 3 ++-
regression-test/pipeline/common/doris-utils.sh | 5 +++++
regression-test/pipeline/performance/prepare.sh | 3 ++-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/regression-test/pipeline/cloud_p0/prepare.sh
b/regression-test/pipeline/cloud_p0/prepare.sh
index 89bfa3150bc..211870d99d5 100644
--- a/regression-test/pipeline/cloud_p0/prepare.sh
+++ b/regression-test/pipeline/cloud_p0/prepare.sh
@@ -35,7 +35,7 @@ if ${DEBUG:-false}; then
fi
# shellcheck source=/dev/null
-# stop_doris, clean_fdb, install_fdb, install_java
+# stop_doris, clean_fdb, install_fdb, install_java, clear_coredump
source
"${teamcity_build_checkoutDir}"/regression-test/pipeline/common/doris-utils.sh
# shellcheck source=/dev/null
# check_oss_file_exist, download_oss_file
@@ -100,6 +100,7 @@ echo "#### 3. try to kill old doris process"
DORIS_HOME="${teamcity_build_checkoutDir}/output"
export DORIS_HOME
stop_doris
+clear_coredump
echo "#### 4. prepare fundationdb"
install_fdb
diff --git a/regression-test/pipeline/common/doris-utils.sh
b/regression-test/pipeline/common/doris-utils.sh
index 25ce7b5ac6e..c1cc1f6be57 100644
--- a/regression-test/pipeline/common/doris-utils.sh
+++ b/regression-test/pipeline/common/doris-utils.sh
@@ -531,6 +531,11 @@ wait_coredump_file_ready() {
done
}
+clear_coredump() {
+ echo -e "INFO: clear coredump files \n$(ls /var/lib/apport/coredump/)"
+ rm -rf /var/lib/apport/coredump/*
+}
+
archive_doris_coredump() {
if [[ ! -d "${DORIS_HOME:-}" ]]; then return 1; fi
archive_name="$1"
diff --git a/regression-test/pipeline/performance/prepare.sh
b/regression-test/pipeline/performance/prepare.sh
index 0a78ed136ed..1e5231bd2b4 100644
--- a/regression-test/pipeline/performance/prepare.sh
+++ b/regression-test/pipeline/performance/prepare.sh
@@ -70,7 +70,7 @@ fi
# shellcheck source=/dev/null
source "$(bash
"${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh
'get')"
# shellcheck source=/dev/null
-# install_java
+# install_java, clear_coredump
source
"${teamcity_build_checkoutDir}"/regression-test/pipeline/common/doris-utils.sh
if ${skip_pipeline:=false}; then echo "INFO: skip build pipline" && exit 0;
else echo "INFO: no skip"; fi
@@ -126,3 +126,4 @@ echo "#### 3. try to kill old doris process"
# stop_doris
source
"${teamcity_build_checkoutDir}"/regression-test/pipeline/common/doris-utils.sh
if stop_doris; then echo; fi
+clear_coredump
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]