You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2019/04/27 07:20:05 UTC

[flink] branch master updated: [hotfix][travis] Extend cache info logging

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 44d601d  [hotfix][travis] Extend cache info logging
44d601d is described below

commit 44d601d314c00efde7d37c25f478eb989c133df1
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Fri Apr 26 13:42:29 2019 +0200

    [hotfix][travis] Extend cache info logging
---
 tools/travis_controller.sh   | 27 +++++++++++++++++++++++++++
 tools/travis_mvn_watchdog.sh | 24 ------------------------
 2 files changed, 27 insertions(+), 24 deletions(-)

diff --git a/tools/travis_controller.sh b/tools/travis_controller.sh
index cd11189..7b0f591 100755
--- a/tools/travis_controller.sh
+++ b/tools/travis_controller.sh
@@ -43,6 +43,33 @@ source "${HERE}/travis/fold.sh"
 source "${HERE}/travis/stage.sh"
 source "${HERE}/travis/shade.sh"
 
+print_system_info() {
+	FOLD_ESCAPE="\x0d\x1b"
+	COLOR_ON="\x5b\x30\x4b\x1b\x5b\x33\x33\x3b\x31\x6d"
+	COLOR_OFF="\x1b\x5b\x30\x6d"
+
+	start_fold "cpu_info" "CPU information"
+	lscpu
+	end_fold "cpu_info"
+
+	start_fold "mem_info" "Memory information"
+	cat /proc/meminfo
+	end_fold "mem_info"
+
+	start_fold "disk_info" "Disk information"
+	df -hH
+	end_fold "disk_info"
+
+	start_fold "cache_info" "Cache information"
+	echo "Maven: $(du -s --si $HOME/.m2)"
+	echo "RVM: $(du -s --si $HOME/.rvm)"
+	echo "Flink: $(du -s --si $HOME/flink_cache)"
+	echo "Maven (binaries): $(du -s --si $HOME/maven_cache)"
+	end_fold "cache_info"
+}
+
+print_system_info
+
 function deleteOldCaches() {
 	while read CACHE_DIR; do
 		local old_number="${CACHE_DIR##*/}"
diff --git a/tools/travis_mvn_watchdog.sh b/tools/travis_mvn_watchdog.sh
index 3104c00..6d9d7d0 100755
--- a/tools/travis_mvn_watchdog.sh
+++ b/tools/travis_mvn_watchdog.sh
@@ -82,28 +82,6 @@ ARTIFACTS_FILE=${TRAVIS_JOB_NUMBER}.tar.gz
 # FUNCTIONS
 # =============================================================================
 
-print_system_info() {
-	FOLD_ESCAPE="\x0d\x1b"
-	COLOR_ON="\x5b\x30\x4b\x1b\x5b\x33\x33\x3b\x31\x6d"
-	COLOR_OFF="\x1b\x5b\x30\x6d"
-
-	echo -e "travis_fold:start:cpu_info${FOLD_ESCAPE}${COLOR_ON}CPU information${COLOR_OFF}"
-	lscpu
-	echo -en "travis_fold:end:cpu_info${FOLD_ESCAPE}"
-
-	echo -e "travis_fold:start:mem_info${FOLD_ESCAPE}${COLOR_ON}Memory information${COLOR_OFF}"
-	cat /proc/meminfo
-	echo -en "travis_fold:end:mem_info${FOLD_ESCAPE}"
-
-	echo -e "travis_fold:start:disk_info${FOLD_ESCAPE}${COLOR_ON}Disk information${COLOR_OFF}"
-	df -hH
-	echo -en "travis_fold:end:disk_info${FOLD_ESCAPE}"
-
-	echo -e "travis_fold:start:cache_info${FOLD_ESCAPE}${COLOR_ON}Cache information${COLOR_OFF}"
-	du -s --si $HOME/.m2
-	echo -en "travis_fold:end:cache_info${FOLD_ESCAPE}"
-}
-
 upload_artifacts_s3() {
 	echo "PRODUCED build artifacts."
 
@@ -211,8 +189,6 @@ WD_PID=$!
 
 echo "STARTED watchdog (${WD_PID})."
 
-print_system_info
-
 # Make sure to be in project root
 cd $HERE/../