Skip to content

Commit 6fb44c4

Browse files
authored
Reapply "[sanitize] Don't build older then 1h requests" (#295)
Reapply #250. This reverts commit 3c5528c.
1 parent 44d6f25 commit 6fb44c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

zorg/buildbot/builders/sanitizers/buildbot_functions.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ function buildbot_update {
144144
git checkout -f "${BUILDBOT_REVISION}"
145145
git status
146146
git rev-list --pretty --max-count=1 HEAD
147+
# FIXME: Workaround for https://github.com/llvm/llvm-zorg/issues/250
148+
[[ "${SKIP_OLD:-1}" == "0" ]] || [[ ! -v BUILDBOT_SCHEDULER ]] || [[ "${BUILDBOT_SCHEDULER}" == "force-build-scheduler" ]] || (git log -1 --after='3 hours ago' | grep .) || {
149+
echo Revision is not recent enough
150+
exit 1
151+
}
147152
) || { build_exception ; exit 1 ; }
148153
LLVM=$ROOT/llvm-project/llvm
149154
fi
@@ -204,7 +209,7 @@ function build_clang_at_release_tag {
204209
then
205210
echo "@@@BUILD_STEP using pre-built stage1 clang at r${host_clang_revision}@@@"
206211
else
207-
BUILDBOT_MONO_REPO_PATH= BUILDBOT_REVISION="${host_clang_revision}" buildbot_update
212+
SKIP_OLD=0 BUILDBOT_MONO_REPO_PATH= BUILDBOT_REVISION="${host_clang_revision}" buildbot_update
208213

209214
rm -rf ${STAGE1_DIR}
210215
echo @@@BUILD_STEP build stage1 clang at $host_clang_revision@@@

0 commit comments

Comments
 (0)