HBASE-21547 Precommit uses master flaky list for other branches

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Peter Somogyi 2018-12-28 15:16:48 +01:00
parent ba9a49b8a5
commit 0b086087b2
1 changed files with 14 additions and 0 deletions

View File

@ -271,6 +271,20 @@ function get_include_exclude_tests_arg
yetus_error "Wget error $? in fetching includes file from url" \ yetus_error "Wget error $? in fetching includes file from url" \
"${INCLUDE_TESTS_URL}. Ignoring and proceeding." "${INCLUDE_TESTS_URL}. Ignoring and proceeding."
fi 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 fi
} }