You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2020/08/04 17:30:10 UTC

[kudu] branch master updated: [benchmarks] fetch last 10 weeks of stats for graphs

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

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


The following commit(s) were added to refs/heads/master by this push:
     new e58cfb7  [benchmarks] fetch last 10 weeks of stats for graphs
e58cfb7 is described below

commit e58cfb7608410ec0ea6bd058baba50b8470eae53
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Mon Aug 3 21:58:17 2020 -0700

    [benchmarks] fetch last 10 weeks of stats for graphs
    
    Updated the benchmarks.sh script to fetch last 10 weeks of stats when
    building graphs of performance metrics (it was 4 weeks prior).
    
    Change-Id: Iaff4dd916874cec6e31afc5cd5c69b3e4a9f5ff2
    Reviewed-on: http://gerrit.cloudera.org:8080/16282
    Tested-by: Alexey Serbin <as...@cloudera.com>
    Reviewed-by: Grant Henke <gr...@apache.org>
---
 src/kudu/scripts/benchmarks.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/kudu/scripts/benchmarks.sh b/src/kudu/scripts/benchmarks.sh
index cb3eeef..b027e41 100755
--- a/src/kudu/scripts/benchmarks.sh
+++ b/src/kudu/scripts/benchmarks.sh
@@ -35,6 +35,9 @@ set -o pipefail
 MODE_JENKINS="jenkins"
 MODE_LOCAL="local"
 
+# In Jenkins mode, get last 10 weeks of stats stored in the database.
+STATS_DAYS_TO_FETCH=70
+
 LOCAL_STATS_BASE="local-stats"
 
 NUM_MT_TABLET_TESTS=5
@@ -121,8 +124,7 @@ record_result() {
 load_stats() {
   local TEST_NAME="$1"
   if [ "$BENCHMARK_MODE" = "$MODE_JENKINS" ]; then
-    # Get last 4 weeks of stats
-    python get-job-stats-from-mysql.py $TEST_NAME 28
+    python get-job-stats-from-mysql.py $TEST_NAME $STATS_DAYS_TO_FETCH
   else
     # Convert MySQL wildcards to shell wildcards.
     local TEST_NAME=$(echo $TEST_NAME | perl -pe 's/%/*/g')