Skip to content

Commit

Permalink
[sanitizer] Switch skipped builds to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Dec 10, 2024
1 parent 6467b8c commit 0d09429
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@ function buildbot_update {
git rev-list --pretty --max-count=1 HEAD
# FIXME: Workaround for https://github.com/llvm/llvm-zorg/issues/250
[[ "${SKIP_OLD:-1}" == "0" ]] || [[ ! -v BUILDBOT_SCHEDULER ]] || [[ "${BUILDBOT_SCHEDULER}" == "force-build-scheduler" ]] || (git log -1 --after='3 hours ago' | grep .) || {
echo Revision is not recent enough
echo
echo WARNING: Skipping outdated build request...
echo
exit 1
}
) || { build_exception ; exit 1 ; }
) || { build_warning ; exit 0 ; }
LLVM=$ROOT/llvm-project/llvm
fi
}
Expand Down Expand Up @@ -598,6 +600,14 @@ function build_exception() {
fi
}

function build_warning() {
sleep 5
echo "@@@STEP_WARNINGS@@@"
if [[ "${BUILDBOT_BISECT_MODE:-}" == "1" || ! -v BUILDBOT_BUILDERNAME ]] ; then
exit 2
fi
}

function upload_stats() {
if [[ "${BUILDBOT_BISECT_MODE:-}" != "1" && -v BUILDBOT_BUILDERNAME ]] ; then
lscpu > "${ROOT}/cpu.txt"
Expand Down

0 comments on commit 0d09429

Please sign in to comment.