Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 f7470a8b5 -> 928baae11


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/928baae1
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/928baae1
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/928baae1

Branch: refs/heads/branch-1.4
Commit: 928baae115f90c9beabeceeb0ed41db4afec29b0
Parents: f7470a8
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:43:24 2019 +0100

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/928baae1/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 6c99839..705d775 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