-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathbuildbot_functions.sh
executable file
·612 lines (514 loc) · 17 KB
/
buildbot_functions.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
#!/usr/bin/env bash
set -eux
ulimit -Ss 12288
ROOT=`pwd`
LLVM=$ROOT/llvm-project/llvm
BUILDBOT_CLOBBER="${BUILDBOT_CLOBBER:-}"
BUILDBOT_REVISION="${BUILDBOT_REVISION:-origin/main}"
CMAKE_COMMON_OPTIONS+=" -DLLVM_APPEND_VC_REV=OFF -GNinja -DCMAKE_BUILD_TYPE=Release"
export LC_ALL=C
if ccache -s ; then
CMAKE_COMMON_OPTIONS+=" -DLLVM_CCACHE_BUILD=ON"
fi
if ld.lld --version ; then
CMAKE_COMMON_OPTIONS+=" -DLLVM_USE_LINKER=lld"
fi
SANITIZER_LOG_DIR=$ROOT/sanitizer_logs
function include_config() {
local P=.
while true ; do
local F=${P}/sanitizer_buildbot_config
if [[ -f ${F} ]] ; then
. ${F}
break
fi
[[ "${P}" -ef '/' ]] && break
P="${P}/.."
done
}
include_config
echo @@@BUILD_STEP Info@@@
(
set +e
date
env | sort
echo
ulimit -a
echo
df -h
echo
ccache -ps
echo
lscpu
echo
g++ --version
echo
cmake --version
echo
uname -a
echo
ldd --version
echo
uptime
echo
hostname -f
)
echo @@@BUILD_STEP Prepare@@@
export LIT_OPTS="--time-tests"
# --timeout requires psutil missing on some bots.
if [[ ! "$(arch)" =~ "ppc64" ]] ; then
LIT_OPTS+=" --timeout=900"
fi
CMAKE="$(which cmake)"
function cmake() {
(
set -x
"${CMAKE}" "$@"
)
}
function rm_dirs {
while ! rm -rf "$@" ; do sleep 1; done
}
function cleanup() {
[[ -v BUILDBOT_BUILDERNAME ]] || return 0
echo @@@BUILD_STEP cleanup@@@
rm_dirs llvm_build2_* llvm_build_* libcxx_build_* libcxx_install_* compiler_rt_build* symbolizer_build* "$@"
if ccache -s >/dev/null ; then
rm_dirs llvm_build64
fi
# Workaround the case when a new unittest was reverted, but incremental build continues to execute the leftover binary.
find -path ./llvm-project -prune -o -executable -type f -path '*unittests*' -print -exec rm -f {} \;
du -hs ./* | sort -h
}
function clobber {
if [[ "$BUILDBOT_CLOBBER" != "" ]]; then
echo @@@BUILD_STEP clobber@@@
if [[ ! -v BUILDBOT_BUILDERNAME ]]; then
echo "Clobbering is supported on buildbot only!"
exit 1
fi
# Keep sources in ./llvm-project and ./llvm_build0 for faster builds.
find -maxdepth 1 -mindepth 1 -path ./llvm-project -prune -o -path ./llvm_build0 -prune -o -print -exec rm -rf {} \;
du -hs ./* | sort -h
return 0
else
BUILDBOT_BUILDERNAME=1 cleanup "$@"
fi
}
BUILDBOT_MONO_REPO_PATH=${BUILDBOT_MONO_REPO_PATH:-}
function buildbot_update {
if [[ "${BUILDBOT_BISECT_MODE:-}" == "1" ]]; then
echo "@@@BUILD_STEP bisect status@@@"
(
cd llvm-project
git bisect visualize --oneline
git bisect log
git status
)
LLVM=$ROOT/llvm-project/llvm
return 0
fi
echo "@@@BUILD_STEP update $BUILDBOT_REVISION@@@"
if [[ -d "$BUILDBOT_MONO_REPO_PATH" ]]; then
LLVM=$BUILDBOT_MONO_REPO_PATH/llvm
else
(
local DEPTH=100
[[ -d llvm-project ]] || (
mkdir -p llvm-project
cd llvm-project
git init
git remote add origin https://github.com/llvm/llvm-project.git
git config --local advice.detachedHead false
)
cd llvm-project
git fetch origin
git clean -fd
git reset --hard
git checkout -f "${BUILDBOT_REVISION}"
git status
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
echo WARNING: Skipping outdated build request...
echo
exit 1
}
) || { build_warning ; exit 0 ; }
LLVM=$ROOT/llvm-project/llvm
fi
}
function print_sanitizer_logs() {
if compgen -G "${SANITIZER_LOG_DIR}"/* ; then
echo @@@BUILD_STEP sanitizer logs@@@
head -n -1 "${SANITIZER_LOG_DIR}"/*
buildbot_build && rm -rf "${SANITIZER_LOG_DIR}"/*
build_warning
fi
}
function run_ninja() {
env
local ec=0
/usr/bin/time -o ${ROOT}/time.txt -- ninja "$@" || ec=$?
buildbot_build || print_sanitizer_logs
if [[ $ec -ne 0 ]] ; then
build_failure
rm -f ${ROOT}/time.txt
fi
print_sanitizer_logs
}
function common_stage1_variables {
STAGE1_DIR=llvm_build0
stage1_clang_path=$ROOT/${STAGE1_DIR}/bin
llvm_symbolizer_path=${stage1_clang_path}/llvm-symbolizer
export LLVM_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
STAGE1_AS_COMPILER="-DCMAKE_C_COMPILER=${stage1_clang_path}/clang -DCMAKE_CXX_COMPILER=${stage1_clang_path}/clang++"
}
function build_stage1_clang_impl {
[[ ! -f "${STAGE1_DIR}/delete_next_time" ]] || rm -rf "${STAGE1_DIR}"
mkdir -p ${STAGE1_DIR}
local cmake_stage1_options="${CMAKE_COMMON_OPTIONS}"
cmake_stage1_options+=" -DLLVM_ENABLE_PROJECTS='clang;lld'"
cmake_stage1_options+=" -DLLVM_ENABLE_RUNTIMES='compiler-rt;libunwind;libcxx;libcxxabi'"
if clang -v ; then
cmake_stage1_options+=" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
fi
(cd ${STAGE1_DIR} && cmake ${cmake_stage1_options} $LLVM && ninja) || {
touch "${STAGE1_DIR}/delete_next_time"
return 1
}
}
function build_stage1_clang {
echo @@@BUILD_STEP stage1 build all@@@
common_stage1_variables
build_stage1_clang_impl
}
function download_clang_from_chromium {
common_stage1_variables
curl -s https://raw.githubusercontent.com/chromium/chromium/main/tools/clang/scripts/update.py \
| python3 - --output-dir=${STAGE1_DIR}
echo @@@BUILD_STEP using pre-built stage1 clang at $(cat ${STAGE1_DIR}/cr_build_revision)@@@
}
function build_clang_at_release_tag {
common_stage1_variables
local host_clang_revision=llvmorg-$(
git ls-remote --tags https://github.com/llvm/llvm-project.git | \
grep -oE "refs/tags/llvmorg-[0-9.]+$" | \
grep -Eo "[0-9.]+" | \
sort -n | \
tail -n1
)
if [ -r ${STAGE1_DIR}/host_clang_revision ] && \
[ "$(cat ${STAGE1_DIR}/host_clang_revision)" == $host_clang_revision ]
then
echo "@@@BUILD_STEP using pre-built stage1 clang at r${host_clang_revision}@@@"
else
SKIP_OLD=0 BUILDBOT_MONO_REPO_PATH="" BUILDBOT_REVISION="${host_clang_revision}" buildbot_update
rm -rf ${STAGE1_DIR}
echo @@@BUILD_STEP build stage1 clang at $host_clang_revision@@@
# PGO, can improve build time by 10%. However bots spend most of the time
# running tests and compilation mostly incremental or CCCACH-ed.
build_stage1_clang_impl && \
( echo $host_clang_revision > ${STAGE1_DIR}/host_clang_revision )
fi
}
function build_stage1_clang_at_revison {
build_clang_at_release_tag
}
function common_stage2_variables {
cmake_stage2_common_options="${CMAKE_COMMON_OPTIONS} ${STAGE1_AS_COMPILER}"
}
function build_stage2 {
local sanitizer_name=$1
echo @@@BUILD_STEP stage2/$sanitizer_name build libcxx@@@
local libcxx_build_dir=libcxx_build_${sanitizer_name}
local libcxx_install_dir=libcxx_install_${sanitizer_name}
local build_dir=llvm_build_${sanitizer_name}
export STAGE2_DIR=${build_dir}
local cmake_libcxx_cflags=
common_stage2_variables
ccache -z || true
local fno_sanitize_flag=
local cmake_options="-DLIBCXXABI_USE_LLVM_UNWINDER=OFF"
rm -rf "${SANITIZER_LOG_DIR}"
mkdir -p "${SANITIZER_LOG_DIR}"
local log_path="${SANITIZER_LOG_DIR}/report"
if [ "$sanitizer_name" == "msan" ]; then
export MSAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
export MSAN_OPTIONS="log_path=${log_path}:log_exe_name=1"
llvm_use_sanitizer="Memory"
fsanitize_flag="-fsanitize=memory"
elif [ "$sanitizer_name" == "msan_track_origins" ]; then
export MSAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
export MSAN_OPTIONS="log_path=${log_path}:log_exe_name=1"
llvm_use_sanitizer="MemoryWithOrigins"
fsanitize_flag="-fsanitize=memory -fsanitize-memory-track-origins"
elif [ "$sanitizer_name" == "asan" ]; then
export ASAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
export ASAN_OPTIONS="check_initialization_order=true"
export ASAN_OPTIONS+=":log_path=${log_path}:log_exe_name=1"
llvm_use_sanitizer="Address"
fsanitize_flag="-fsanitize=address"
elif [ "$sanitizer_name" == "hwasan" ]; then
export HWASAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
export HWASAN_OPTIONS="abort_on_error=1"
export HWASAN_OPTIONS+=":log_path=${log_path}:log_exe_name=1"
llvm_use_sanitizer="HWAddress"
fsanitize_flag="-fsanitize=hwaddress"
# FIXME: Support globals with DSO https://github.com/llvm/llvm-project/issues/57206
cmake_stage2_common_options+=" -DLLVM_ENABLE_PLUGINS=OFF"
elif [ "$sanitizer_name" == "ubsan" ]; then
export UBSAN_OPTIONS="external_symbolizer_path=${llvm_symbolizer_path}:print_stacktrace=1"
export UBSAN_OPTIONS+=":log_path=${log_path}:log_exe_name=1"
llvm_use_sanitizer="Undefined"
fsanitize_flag="-fsanitize=undefined -fno-sanitize-recover=all"
# FIXME: After switching to LLVM_ENABLE_RUNTIMES, vptr has infitine
# recursion.
fno_sanitize_flag+=" -fno-sanitize=vptr"
elif [ "$sanitizer_name" == "asan_ubsan" ]; then
export ASAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
export ASAN_OPTIONS="check_initialization_order=true"
export ASAN_OPTIONS+=":log_path=${log_path}:log_exe_name=1"
export UBSAN_OPTIONS="print_stacktrace=1"
llvm_use_sanitizer="Address;Undefined"
fsanitize_flag="-fsanitize=address,undefined -fno-sanitize-recover=all"
# FIXME: After switching to LLVM_ENABLE_RUNTIMES, vptr has infitine
# recursion.
fno_sanitize_flag+=" -fno-sanitize=vptr"
else
echo "Unknown sanitizer!"
exit 1
fi
mkdir -p ${libcxx_build_dir}
cmake -B ${libcxx_build_dir} \
${cmake_stage2_common_options} \
${cmake_options} \
-DCMAKE_INSTALL_PREFIX="${ROOT}/${libcxx_install_dir}" \
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' \
-DLIBCXX_TEST_PARAMS='long_tests=False' \
-DLIBCXX_INCLUDE_BENCHMARKS=OFF \
-DLLVM_USE_SANITIZER=${llvm_use_sanitizer} \
-DCMAKE_C_FLAGS="${fsanitize_flag} ${cmake_libcxx_cflags} ${fno_sanitize_flag}" \
-DCMAKE_CXX_FLAGS="${fsanitize_flag} ${cmake_libcxx_cflags} ${fno_sanitize_flag}" \
$LLVM/../runtimes || build_failure
run_ninja -C ${libcxx_build_dir}
run_ninja -C ${libcxx_build_dir} install
local libcxx_so_path="$(find "${ROOT}/${libcxx_install_dir}" -name libc++.so)"
test -f "${libcxx_so_path}" || build_failure
local libcxx_runtime_path=$(dirname "${libcxx_so_path}")
local sanitizer_ldflags="-Wl,--rpath=${libcxx_runtime_path} -L${libcxx_runtime_path}"
local sanitizer_cflags="-nostdinc++ -isystem ${ROOT}/${libcxx_install_dir}/include -isystem ${ROOT}/${libcxx_install_dir}/include/c++/v1 $fsanitize_flag"
echo @@@BUILD_STEP stage2/$sanitizer_name build@@@
# See http://llvm.org/bugs/show_bug.cgi?id=19071, http://www.cmake.org/Bug/view.php?id=15264
sanitizer_cflags+=" $sanitizer_ldflags -w"
mkdir -p ${build_dir}
local cmake_stage2_clang_options="-DLLVM_ENABLE_PROJECTS='clang;lld;clang-tools-extra;mlir'"
if [[ "$(arch)" == "aarch64" ]] ; then
# FIXME: clangd tests fail.
cmake_stage2_clang_options="-DLLVM_ENABLE_PROJECTS='clang;lld;mlir'"
fi
cmake -B ${build_dir} \
${cmake_stage2_common_options} \
${cmake_stage2_clang_options} \
-DLLVM_USE_SANITIZER=${llvm_use_sanitizer} \
-DLLVM_ENABLE_LIBCXX=ON \
-DCMAKE_C_FLAGS="${sanitizer_cflags}" \
-DCMAKE_CXX_FLAGS="${sanitizer_cflags}" \
-DCMAKE_EXE_LINKER_FLAGS="${sanitizer_ldflags}" \
$LLVM || {
build_failure
# No stats on failure.
return 0
}
run_ninja -C ${build_dir}
upload_stats stage2
ccache -s || true
}
function build_stage2_msan {
build_stage2 msan
}
function build_stage2_msan_track_origins {
build_stage2 msan_track_origins
}
function build_stage2_asan {
build_stage2 asan
}
function build_stage2_hwasan {
build_stage2 hwasan
}
function build_stage2_ubsan {
build_stage2 ubsan
}
function build_stage2_asan_ubsan {
build_stage2 asan_ubsan
}
function check_stage1 {
local sanitizer_name=$1
# covered by sanitizer-*-linux bot.
}
function check_stage1_msan {
check_stage1 msan
}
function check_stage1_asan {
check_stage1 asan
}
function check_stage1_hwasan {
check_stage1 hwasan
}
function check_stage1_ubsan {
check_stage1 ubsan
}
function check_stage1_asan_ubsan {
check_stage1 asan_ubsan
}
function check_stage2 {
local sanitizer_name=$1
if [[ "${STAGE2_SKIP_TEST_CXX:-}" != "1" ]] ; then
(
LIT_OPTS+=" --timeout=1500"
echo @@@BUILD_STEP stage2/$sanitizer_name check-cxx@@@
# Very slow.
export LIT_FILTER_OUT="std/utilities/format/format.functions/format.locale.runtime_format.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/format.runtime_format.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/format_to_n.locale.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/format_to_n.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/format_to.locale.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/format_to.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/format.locale.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/format.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/formatted_size.locale.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/formatted_size.pass.cpp"
LIT_FILTER_OUT+="|std/utilities/format/format.functions/vformat"
if [[ "$(arch)" == "aarch64" && "$sanitizer_name" == "msan" ]] ; then
# TODO: Investigate one slow tests.
LIT_FILTER_OUT+="|test_demangle.pass.cpp"
fi
if [[ "$(arch)" == "aarch64" && "$sanitizer_name" == "hwasan" ]] ; then
# TODO: Investigate one slow tests.
LIT_FILTER_OUT+="|test_demangle.pass.cpp"
fi
if [[ "$(arch)" == "aarch64" ]] ; then
# TODO: Investigate what is wrong with aarch64 unwinder.
LIT_FILTER_OUT+="|ostream.formatted.print/vprint_nonunicode.pass.cpp"
LIT_FILTER_OUT+="|ostream.formatted.print/vprint_unicode.pass.cpp"
fi
run_ninja -C libcxx_build_${sanitizer_name} check-runtimes
)
fi
echo @@@BUILD_STEP stage2/$sanitizer_name check@@@
run_ninja -C ${STAGE2_DIR} check-all
}
function check_stage2_msan {
check_stage2 msan
}
function check_stage2_msan_track_origins {
check_stage2 msan_track_origins
}
function check_stage2_asan {
check_stage2 asan
}
function check_stage2_hwasan {
check_stage2 hwasan
}
function check_stage2_ubsan {
check_stage2 ubsan
}
function check_stage2_asan_ubsan {
check_stage2 asan_ubsan
}
function build_stage3 {
local sanitizer_name=$1
echo @@@BUILD_STEP build stage3/$sanitizer_name build@@@
local build_dir=llvm_build2_${sanitizer_name}
local clang_path=$ROOT/${STAGE2_DIR}/bin
local sanitizer_cflags=
mkdir -p ${build_dir}
local stage3_projects='clang;lld;clang-tools-extra'
if [[ "$(arch)" == "aarch64" ]] ; then
# FIXME: clangd tests fail.
stage3_projects='clang;lld'
fi
# -DLLVM_CCACHE_BUILD=OFF to track real build time.
cmake -B ${build_dir} \
${CMAKE_COMMON_OPTIONS} \
-DLLVM_ENABLE_PROJECTS="${stage3_projects}" \
-DCMAKE_C_COMPILER=${clang_path}/clang \
-DCMAKE_CXX_COMPILER=${clang_path}/clang++ \
-DCMAKE_CXX_FLAGS="${sanitizer_cflags}" \
-DLLVM_CCACHE_BUILD=OFF \
$LLVM || {
build_failure
# No stats on failure.
return 0
}
run_ninja -C ${build_dir}
upload_stats stage3
}
function build_stage3_msan {
build_stage3 msan
}
function build_stage3_msan_track_origins {
build_stage3 msan_track_origins
}
function build_stage3_asan {
build_stage3 asan
}
function build_stage3_hwasan {
build_stage3 hwasan
}
function build_stage3_ubsan {
build_stage3 ubsan
}
function check_stage3 {
local sanitizer_name=$1
echo @@@BUILD_STEP stage3/$sanitizer_name check@@@
local build_dir=llvm_build2_${sanitizer_name}
run_ninja -C ${build_dir} check-all
}
function check_stage3_msan {
check_stage3 msan
}
function check_stage3_msan_track_origins {
check_stage3 msan_track_origins
}
function check_stage3_asan {
check_stage3 asan
}
function check_stage3_hwasan {
check_stage3 hwasan
}
function check_stage3_ubsan {
check_stage3 ubsan
}
function build_failure() {
# In bisect mode exit early.
echo
echo "How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild"
echo
sleep 5
echo "@@@STEP_FAILURE@@@"
buildbot_build || exit 1
}
function buildbot_build() {
[[ "${BUILDBOT_BISECT_MODE:-}" != "1" && -v BUILDBOT_BUILDERNAME ]]
}
function build_exception() {
sleep 5
echo "@@@STEP_EXCEPTION@@@"
buildbot_build || exit 2
}
function build_warning() {
sleep 5
echo "@@@STEP_WARNINGS@@@"
buildbot_build || exit 2
}
function upload_stats() {
if buildbot_build ; then
lscpu > "${ROOT}/cpu.txt"
curl http://metadata.google.internal/computeMetadata/v1/instance/machine-type \
-H Metadata-Flavor:Google > "${ROOT}/machine-type.txt" || true
gsutil cp "${ROOT}/"{time,cpu,machine-type}".txt" "gs://sanitizer-buildbot-out/${BUILDBOT_BUILDERNAME}/${1}/${BUILDBOT_REVISION}/" || true
fi
cat "${ROOT}/time.txt"
}