[zorg] r359365 - [sanitizer] Add BUILDBOT_MONO_REPO_PATH to use for local debugging
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 26 19:23:18 PDT 2019
Author: vitalybuka
Date: Fri Apr 26 19:23:18 2019
New Revision: 359365
URL: http://llvm.org/viewvc/llvm-project?rev=359365&view=rev
Log:
[sanitizer] Add BUILDBOT_MONO_REPO_PATH to use for local debugging
Modified:
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh?rev=359365&r1=359364&r2=359365&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh Fri Apr 26 19:23:18 2019
@@ -6,6 +6,7 @@ function update_or_checkout {
local rev_arg=$1
local repo=$2
local tree=$3
+
if [ -d ${tree} ]; then
svn cleanup "${tree}" || echo @@@STEP_EXCEPTION@@@
svn revert -R "${tree}" || echo @@@STEP_EXCEPTION@@@
@@ -17,6 +18,30 @@ function update_or_checkout {
fi
}
+function get_sources {
+ local rev_arg=$1
+ local repo_name=$2
+ local tree=$3
+
+ BUILDBOT_MONO_REPO_PATH=${BUILDBOT_MONO_REPO_PATH:-}
+ if [ -d "$BUILDBOT_MONO_REPO_PATH" ]; then
+ # Excludes are needed only for llvm but they should not hurt for the rest.
+ rsync -avh --delete \
+ --exclude=projects/compiler-rt/ \
+ --exclude=projects/libcxx/ \
+ --exclude=projects/libcxxabi/ \
+ --exclude=projects/libunwind/ \
+ --exclude=tools/clang/ \
+ --exclude=tools/lld/ \
+ $BUILDBOT_MONO_REPO_PATH/${repo_name/cfe/clang}/ \
+ $tree/ || exit 1
+ return
+ fi
+
+ update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/$repo_name/trunk $tree &
+}
+
+
function buildbot_update {
if [ "$BUILDBOT_REVISION" == "-" ]; then
return
@@ -33,18 +58,18 @@ function buildbot_update {
rm -rf svn_checkout
- update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/llvm/trunk llvm &
+ get_sources "$rev_arg" llvm llvm
# XXX: Keep this list in sync with the change filter in buildbot/osuosl/master/master.cfg.
- update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/cfe/trunk llvm/tools/clang &
- update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/compiler-rt/trunk llvm/projects/compiler-rt &
+ get_sources "$rev_arg" cfe llvm/tools/clang
+ get_sources "$rev_arg" compiler-rt llvm/projects/compiler-rt
if [ "$CHECK_LIBCXX" != "0" ]; then
- update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/libcxx/trunk llvm/projects/libcxx &
- update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/libcxxabi/trunk llvm/projects/libcxxabi &
- update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/libunwind/trunk llvm/projects/libunwind &
+ get_sources "$rev_arg" libcxx llvm/projects/libcxx
+ get_sources "$rev_arg" libcxxabi llvm/projects/libcxxabi
+ get_sources "$rev_arg" libunwind llvm/projects/libunwind
fi
if [ "$CHECK_LLD" != "0" ]; then
- update_or_checkout "$rev_arg" http://llvm.org/svn/llvm-project/lld/trunk llvm/tools/lld &
+ get_sources "$rev_arg" lld llvm/tools/lld
fi
wait
More information about the llvm-commits
mailing list