Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 cdc40767e -> 2ef33e151


HBASE-21547 Precommit uses master flaky list for other branches

Signed-off-by: Sean Busbey <[email protected]>


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

Branch: refs/heads/branch-1.2
Commit: 2ef33e1515dcbc2b23c05edb3e41478b0421654c
Parents: cdc4076
Author: Peter Somogyi <[email protected]>
Authored: Fri Dec 28 15:16:48 2018 +0100
Committer: Peter Somogyi <[email protected]>
Committed: Wed Jan 2 08:55:39 2019 +0100

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/2ef33e15/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 3c52dae..b05f76f 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -255,6 +255,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