Repository: hbase
Updated Branches:
  refs/heads/branch-2.0 205e39c57 -> c2c38a637


HBASE-21547 Precommit uses master flaky list for other branches

Signed-off-by: Sean Busbey <bus...@apache.org>


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

Branch: refs/heads/branch-2.0
Commit: c2c38a63708415cb4258206ab29f1dd84f3c5875
Parents: 205e39c
Author: Peter Somogyi <psomo...@apache.org>
Authored: Fri Dec 28 15:16:48 2018 +0100
Committer: Peter Somogyi <psomo...@apache.org>
Committed: Wed Jan 2 08:38:36 2019 +0100

----------------------------------------------------------------------
 dev-support/hbase-personality.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c2c38a63/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 7192041..ba5bc37 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -259,6 +259,20 @@ function get_include_exclude_tests_arg
         yetus_error "Wget error $? in fetching includes file from url" \
              "${INCLUDE_TESTS_URL}. Ignoring and proceeding."
       fi
+  else
+    # Use branch specific exclude list when EXCLUDE_TESTS_URL and 
INCLUDE_TESTS_URL are empty
+    
FLAKY_URL="https://builds.apache.org/job/HBase-Find-Flaky-Tests/job/${PATCH_BRANCH}/lastSuccessfulBuild/artifact/excludes/";
+    if wget "${FLAKY_URL}" -O "excludes"; then
+      excludes=$(cat excludes)
+        yetus_debug "excludes=${excludes}"
+        if [[ -n "${excludes}" ]]; then
+          eval "${__resultvar}='-Dtest.exclude.pattern=${excludes}'"
+        fi
+        rm excludes
+      else
+        yetus_error "Wget error $? in fetching excludes file from url" \
+             "${FLAKY_URL}. Ignoring and proceeding."
+      fi
   fi
 }
 

Reply via email to