Repository: flink
Updated Branches:
  refs/heads/master 2e11a404c -> 7e5a978ce


[hotfix] [build] Print cache info

Print the size of the Maven cache copied for each TravisCI job.

This closes #5279.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/7e5a978c
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/7e5a978c
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/7e5a978c

Branch: refs/heads/master
Commit: 7e5a978ce39b8b69271e2e26ef6b3e87fe0a2a53
Parents: 2e5b9dd
Author: Greg Hogan <[email protected]>
Authored: Wed Jan 10 14:07:57 2018 -0500
Committer: zentol <[email protected]>
Committed: Wed Jan 24 12:46:38 2018 +0100

----------------------------------------------------------------------
 tools/travis_mvn_watchdog.sh | 41 ++++++++++++++++++++++-----------------
 1 file changed, 23 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/7e5a978c/tools/travis_mvn_watchdog.sh
----------------------------------------------------------------------
diff --git a/tools/travis_mvn_watchdog.sh b/tools/travis_mvn_watchdog.sh
index 0ebe14e..884e275 100755
--- a/tools/travis_mvn_watchdog.sh
+++ b/tools/travis_mvn_watchdog.sh
@@ -183,6 +183,28 @@ 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."
 
@@ -433,24 +455,7 @@ WD_PID=$!
 
 echo "STARTED watchdog (${WD_PID})."
 
-
-# Print and fold CPU, memory, and filesystem 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}"
-
+print_system_info
 
 # Make sure to be in project root
 cd $HERE/../

Reply via email to