[libcxx-commits] [libcxx] r359404 - attempt to unbreak build bots
Eric Fiselier via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Apr 28 09:42:49 PDT 2019
Author: ericwf
Date: Sun Apr 28 09:42:49 2019
New Revision: 359404
URL: http://llvm.org/viewvc/llvm-project?rev=359404&view=rev
Log:
attempt to unbreak build bots
Modified:
libcxx/trunk/utils/docker/debian9/Dockerfile
libcxx/trunk/utils/docker/scripts/run_buildbot_new.sh
Modified: libcxx/trunk/utils/docker/debian9/Dockerfile
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/docker/debian9/Dockerfile?rev=359404&r1=359403&r2=359404&view=diff
==============================================================================
--- libcxx/trunk/utils/docker/debian9/Dockerfile (original)
+++ libcxx/trunk/utils/docker/debian9/Dockerfile Sun Apr 28 09:42:49 2019
@@ -36,8 +36,10 @@ RUN apt-get update && \
software-properties-common \
gnupg \
apt-transport-https \
+ sudo \
systemd \
- sysvinit-utils && \
+ sysvinit-utils \
+ systemd-sysv && \
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 && \
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10 && \
rm -rf /var/lib/apt/lists/*
@@ -166,7 +168,6 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \
bash-completion \
vim \
- systemd-sysv \
buildbot-slave \
&& rm -rf /var/lib/apt/lists/*
Modified: libcxx/trunk/utils/docker/scripts/run_buildbot_new.sh
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/docker/scripts/run_buildbot_new.sh?rev=359404&r1=359403&r2=359404&view=diff
==============================================================================
--- libcxx/trunk/utils/docker/scripts/run_buildbot_new.sh (original)
+++ libcxx/trunk/utils/docker/scripts/run_buildbot_new.sh Sun Apr 28 09:42:49 2019
@@ -15,6 +15,8 @@ popd
apt-get update -y
apt-get upgrade -y
+apt-get install sudo -y
+
# FIXME(EricWF): Remove this hack. It's only in place to temporarily fix linking libclang_rt from the
# debian packages.
# WARNING: If you're not a buildbot, DO NOT RUN!
@@ -67,7 +69,7 @@ function try_start_builder {
local BOT_DIR=$BOT_ROOT/b$N
local BOT_NAME=$BOT_ROOT_NAME$N
setup_numbered_bot $BOT_NAME $BOT_DIR
- /usr/bin/buildslave start $BOT_DIR
+ sudo -u buildbot /usr/bin/buildslave start $BOT_DIR
sleep 30
cat /tmp/twistd.log
@@ -82,8 +84,7 @@ function try_start_builder {
exit 1
}
-
-for N in 1 2 3 4 5
+for N in `shuf -i 1-5`
do
if try_start_builder $N; then
break
More information about the libcxx-commits
mailing list