Skip to content

Commit 0d09429

Browse files
committed
[sanitizer] Switch skipped builds to warnings
1 parent 6467b8c commit 0d09429

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

zorg/buildbot/builders/sanitizers/buildbot_functions.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ function buildbot_update {
148148
git rev-list --pretty --max-count=1 HEAD
149149
# FIXME: Workaround for https://github.com/llvm/llvm-zorg/issues/250
150150
[[ "${SKIP_OLD:-1}" == "0" ]] || [[ ! -v BUILDBOT_SCHEDULER ]] || [[ "${BUILDBOT_SCHEDULER}" == "force-build-scheduler" ]] || (git log -1 --after='3 hours ago' | grep .) || {
151-
echo Revision is not recent enough
151+
echo
152+
echo WARNING: Skipping outdated build request...
153+
echo
152154
exit 1
153155
}
154-
) || { build_exception ; exit 1 ; }
156+
) || { build_warning ; exit 0 ; }
155157
LLVM=$ROOT/llvm-project/llvm
156158
fi
157159
}
@@ -598,6 +600,14 @@ function build_exception() {
598600
fi
599601
}
600602

603+
function build_warning() {
604+
sleep 5
605+
echo "@@@STEP_WARNINGS@@@"
606+
if [[ "${BUILDBOT_BISECT_MODE:-}" == "1" || ! -v BUILDBOT_BUILDERNAME ]] ; then
607+
exit 2
608+
fi
609+
}
610+
601611
function upload_stats() {
602612
if [[ "${BUILDBOT_BISECT_MODE:-}" != "1" && -v BUILDBOT_BUILDERNAME ]] ; then
603613
lscpu > "${ROOT}/cpu.txt"

0 commit comments

Comments
 (0)