Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 a75a458e0 -> 4b9622429


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

Branch: refs/heads/branch-1.3
Commit: 4b9622429eae5a6c93d69867f3c1610353e9a0a7
Parents: a75a458
Author: Peter Somogyi <[email protected]>
Authored: Fri Dec 28 15:16:48 2018 +0100
Committer: Peter Somogyi <[email protected]>
Committed: Wed Jan 2 08:46:52 2019 +0100

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/4b962242/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